39,326 Topics
| |
how to count no. of hours and minutes in two set of time. having a start time to end time. ex: 1st time : 8:00 to 17:00 2nd time : 9:00 to 18:00 answer : 6hrs <- total number of time (-) number of hours (|) start/end |--------| = 8hrs … | |
hi, i have implemented a calendar in php and added contols to display the previous and next months. How will I enhance my code to add links to display the previous and next year calendars? My code is as follows: [CODE] <?php session_start(); $_SESSION['username']; $_SESSION['unique_id']; $username = $_SESSION['username']; $unique_id = … | |
Hi ppl... I have a piece of html code like this, to generate 10 radio button having values from 1 to 10. When the user selects a radio button, i want to print only that value. Any inputs on how i can achieve this is very much appreciated. [CODE] <!DOCTYPE … | |
I am trying to create a licensing system where you have a license key as a variable in a file. Then, it includes a file that's on an external server. The server then does all the validating, and returns whether the key is valid or not. The problem is, an … | |
hello all, after tried so much now posting here. i have two programs sql.php and form.jsp. i want to do insert values into mssql database from user input form. sql.php is able to insert the values into database. i have connected database using ODBC.form.jsp is able to give user input … | |
Dear all, I have php file which is returning result from server which are shown as group list, this result i want to pass to the dialog box as in drop-down selection, posting the code as below of group.php. I am getting php result correctly but need to integrate in … | |
Hi guys, Hope you can help (and hope I can explain my problem OK!) I am designing a sports site which takes three values from a user to input match details: a date (text input), a versus (text input), and if the match is home or away (radio buttons). Several … | |
Hi, I cannot figure out why it does not call my overriden function. The original function is in wp-include/comment-template.php file. In my theme there is file functions.php so I put this code to override the original function: [CODE] add_filter('get_comment_reply_link', 'mano_get_comment_reply_link', 1, 3); function mano_get_comment_reply_link($args = array(), $comment = null, $post … | |
Hi, I'm having some issues with checkboxes. When I submit the form and the email is sent, the check box area is empty. There is no information listed. When I tried to change the code, it would only show one of the options and not all that have been picked. … | |
Am trying to create a mail funciton from php. It showing error like [CODE]Mail() [Function.mail]: Failed To Connect To Mailserver At "localhost" Port 25, Verify Your "smtp" And "smtp_Port" Setting In Php.ini Or Use Ini_Set()[/CODE] i cheked my php.ini file also in directory C:\wamp\bin\apache\Apache2.2.17\bin\php.ini. I found [CODE] SMTP = localhost … | |
Hello Everyone, I want to transfer data in export from my php reports. it works also. but the problem is when i open that .xls file in notepad i can view all my data. i don't want this.my data will be unsecure.can anybody tell me solution?? code is as below: … | |
Dear respected senior php web developer i m new to php webdeveloping and hoping for a good coder one day inshaALLAH SIR i have problem with my image hosting script [url]http://pashtoaudio.com/tahir/upload.php[/url] is for uploading images and [url]http://pashtoaudio.com/tahir/photos.php[/url] is for displaying all uploaded images how ever i want to show there … | |
| |
Hey Guys, Ive got a MyBB forum and im looking at making a plugin to see what day had the most posts. In theory ive worked out how to do it, but I cant put it down in code. In the MyBB stats table (mybb_stats), I have a dateline (unix … | |
tampil_produk.php [CODE] //Langkah 2: Sesuaikan perintah SQL echo "<table>"; $tampil = "select * from produk order by id_produk desc LIMIT $posisi,$batas"; $hasil = mysql_query($tampil); $result=mysql_query("select * from produk order by id_produk desc LIMIT $posisi,$batas"); $no = $posisi+1; while ($data=mysql_fetch_array($result)){ $harga = number_format($data['harga'],0,",","."); $deskripsi = nl2br($data['deskripsi']); // membuat paragraf $isi = … | |
hye.. i have a problem to display only numbers of date according the month automatically. I want to display in the table like this date 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17............31 | |
Somebody can help me to learn wordpress customization by hard code.send me link of tutorial websites asap. | |
I have this code which takes data from an sqlite3 database and prints out the all the data from the data into an html table. Like so: 1 jake asdlfj lakdsjfl lkajsdgklj kafdlgjkalg 2011-12-04 2 Bill asdfohdf oijasdofij qoasjgfoiq oaisjdfae 2011-12-04 3 Tim lakdsfgaie aogoie ;lasjdlo asdfgae 2011-12-04 4 hello … | |
please help me...i need some help from you all....because i still new in writhing php code. thanks... actually right now im doing a vote list name member for the committee members. so, the name for the list Committee members i take from my database. After that, i want when the … | |
is there posible way to create a excel template and upload it again to your system? //==TO DOWNLOAD FILE (.xls) header("Content-type: application/octet-stream"); header("Content-Disposition: attachment; filename=excelfile.xls"); header("Pragma: no-cache"); header("Expires: 0"); //===TO upload the file (excelfile.xls) // include class file include 'reader.php'; // initialize reader object $excel = new Spreadsheet_Excel_Reader(); // read … | |
hello, I have written some code for it but it's not displaying date's in <td> where is the problem can any body tell me. [code=php] <?php //Get year 2008 $year = date('Y'); echo "Year $year</br>"; //get month $month = date('n'); echo "Month $month</br>"; //get day $day = date('j'); echo "Day … | |
Hi. I want to ask is it possible to do break statement first then to the continue statement? Like example, I want to do counting and have a break at the certain time then continue the counting back and stop back.Is it possible for me to do that? I already … | |
I'm trying ot query the same table twice, with different Name's for the values. [CODE]$query_rt_lmp ="(SELECT rt_lbmp.lbmp as nyc FROM rt_lbmp WHERE rt_lbmp.`date`='$date' and name='N.Y.C.') UNION ALL (SELECT rt_lbmp.lbmp as millwd FROM rt_lbmp WHERE rt_lbmp.`date`='$date' and rt_lbmp.name='MILLWD')";[/CODE] when i do [CODE]<?php echo $row_rt_lmp['nyc'];?> <?php echo $row_rt_lmp['millwd'];?>[/CODE] I get this: array … | |
what's wrong with my coding?please help. [CODE] <?php $a= $_POST['ques']; $sql="SELECT * FROM $question WHERE question=$a"; $query=mysql_fetch_array($sql); while($result=mysql_fetch_array($query)){ $result['id']; } ?> [/CODE] or this one [CODE] <?php $sql="SELECT * FROM $question WHERE question='".$_POST['ques']."'"; $query=mysql_fetch_array($sql); while($result=mysql_fetch_array($query)){ $result['id']; } ?> [/CODE] | |
Hi, I have a website that I'm trying to embed a blogger feed into. My client doesn't want the user to be taken to the blogger site, but to click a link in the left hand side bar, and the relevant post load in a new page. What is the … | |
I have a question secuirty. Is it safe enough to do: [CODE] $fname = mysql_real_escape_string(htmlentities($_POST['fname'])); $lname = .....($_POST['lname'])); etc [/CODE] and insert it into the table like: [CODE] mysql_query("INSERT INTO North_America (first_name, middle_name, last_name, email, phone, country) VALUES('$fname', '$mname', '$lname', '$email', '$phone', '$country') ") or die(mysql_error()); [/CODE] Or do I … | |
how do i rewrite the following code using the ternary operator [CODE] if ( isset( $page_title ) ) { echo $page_title; } else { echo 'Welcome to Auto-Zim'; } [/CODE] thanks in advance | |
Hello all. The problem: I have started a session. Now I would need to set an expiry time (24 hours) on the cookie it creates (if it creates it). How do I achieve this? Thanks to all, who anwsers. | |
hi i just started php, my code works on ie, bit when i open the webpage on firefox and chrome the image does not display?, can anyone help [CODE] $car = "C:\wamp\www\porche.jpg"; $banner = "<img src=\"$car\" "; $banner .= "width=\"380\" height=\"110\" border=\"0\" >"; echo($banner); [/CODE] | |
I am trying to send results to a new page.The results are fine. i.e. once the form is submitted and all input validated I want the result to appear on the results.html page. I have been able to display the results.html but no data displayed. I attach some relevant code: … |
The End.