320 Posted Topics
Re: refer this for retrieve data from mysql to google map [url]http://code.google.com/apis/maps/articles/phpsqlsearch.html[/url] | |
Re: Html in php [CODE=php] <?php print '<select name="speriod"> <option value="'.$cval.'">'.$cval.'</option> </select>'; ?> [/CODE] | |
Re: Try this [CODE] <?php $month = 'JANUARY'; echo $mon = date('m',strtotime($month)); ?> [/CODE] | |
Re: below this post under the heading of "Has this thread been answered?" click on the "Mark this threasd as solved" Link. | |
Re: Undefined variable: account_number means the value is not posted or you use wrong variable $_POST['account_number']. Post your html code here. And instead of youe line 6 try this. [CODE=php] if(isset($_POST['account_number'])) $account_number=$_POST['account_number']; else $account_number=''; [/CODE] | |
Re: just echo out your qry [CODE=php] echo $sql="INSERT INTO table_name (id, city, state, zip, address_no_street, unit_no, price, beds, baths, sqft, property_type, date) VALUES ('$id', '$city', '$state', '$zip', '$address', '$unit', '$price', '$beds', '$baths', '$sqft', '$propType', NOW())"; [/CODE] copy this query and execute it in the SQl section of your phpmyadmin and … | |
Re: you can use multiple file input to select files and upload them using for loop.... | |
Hi Frendz, I'm using the following code for generating the alert message. [CODE=php]echo '<script>alert("Your project has timed out. Contact your project Manager")</script>';[/CODE] Its working fine in my local server. But in online server its not working. whats going wrong with this? ![]() | |
Re: Replace your 25th line [CODE=php] $message = "E-mail:".$_POST['email']."<br>Color:".$_POST['FavColour']."<br>Message:".$_POST['message'] ; [/CODE] | |
![]() | |
Re: I cant able to understand your queries. Can you explain with some more details? | |
Re: if you wnat to get the id value from the address bar, try this [CODE]$id=$_GET['id'][/CODE] | |
Re: No need to buy domain. Just download XAMPP(free download) and install in your system. It act as your local server. ![]() | |
Re: where did you enter your text? in text editor? ![]() | |
Re: [url]http://www.webcheatsheet.com/PHP/multidimensional_arrays.php[/url] [url]http://www.liamdelahunty.com/tips/php_multi_dimensional_arrays.php[/url] [url]http://www.php-learn-it.com/php_arrays.html[/url] This what is got in google search? Why dont you try google? | |
Re: You can use mysql_insert_id() function. refer [url]http://php.net/manual/en/function.mysql-insert-id.php[/url] | |
Re: [CODE=php] <?php function dateDiff($start, $end) { $start_ts = strtotime($start); $end_ts = strtotime($end); $diff = $end_ts - $start_ts; return round($diff / 86400); } echo dateDiff("2006-04-05", "2006-04-01"); ?> [/CODE] $start--------- dob $end----------- current date | |
Re: [url]http://www.phpjunkyard.com/php-graphical-hit-counter.php[/url] | |
Re: [url]http://www.daniweb.com/web-development/php/threads/368118[/url] | |
Re: I think no way to add query string in include. for what purpose you need like this? | |
Re: try this code [url]http://www.daniweb.com/web-development/php/threads/371050[/url] with csv file | |
Re: [url]http://www.daniweb.com/web-development/php/threads/368118[/url] | |
Re: $_POST[betalingsbetingelser] is not defined. try this [CODE=php] if(isset($_POST[betalingsbetingelser])) $beta=$_POST[betalingsbetingelser]; else $beta=""; $_SESSION["betalingsbetingelser"] = $beta; [/CODE] | |
Re: Where do you want to print? use code tags to post your code | |
Re: For admin and users have you used same table in your database? | |
Re: check out this query [CODE]select userid,count(rate_type) as cnt from tbl_name where cnt>1000 and rate_type='+ve' group by userid limit 0,10[/CODE] Note:Query is not tested | |
Re: I think you has infinite loop iteration. echo your line 7 as [CODE=php]echo $pin=mt_rand(1000000,9999999999);[/CODE] and check what happens? | |
Re: try this code [CODE=php] <html> <body style="background-color:#E0FFFF;"> <?php $con = mysql_connect("localhost","root",""); if (!$con) { die('Could not connect: ' . mysql_error()); } mysql_select_db("my_course", $con); $result = mysql_query("SELECT * FROM Courses ORDER BY Year, Sem, CourseCode"); echo "<table border='1' cellpadding='2' cellspacing='0'> <tr> <th>CourseCode</th> <th>CourseName</th> <th>Year</th> <th>Sem</th> <th>Grade</th> <th>Option</th> </tr>"; ?> <?php while($row … | |
Re: [url]http://www.daniweb.com/web-development/php/threads/370694[/url] ![]() | |
Re: refer this [url]http://www.phpf1.com/tutorial/php-date-difference.html[/url] | |
Re: what is $term1 in your query(line 5)? Where did you define $term1? | |
Re: if php, [url]http://www.w3schools.com/php/php_file_upload.asp[/url] | |
Re: where du you execute your query? I think you missed it. and at the end og your 12th line you missed semicolon. | |
Re: Try this; [CODE=php] $date1 = $rs['created_date'];//field from db $date2 = date("Y-m-d"); $diff = abs(strtotime($date2) - strtotime($date1)); $years = floor($diff / (365*60*60*24)); $months = floor(($diff - $years * 365*60*60*24) / (30*60*60*24)); $days = floor(($diff - $years * 365*60*60*24 - $months*30*60*60*24)/ (60*60*24)); printf("%d Years %d Months %d days\n",$years $months, $days); [/CODE] | |
Re: refer this [url]http://www.w3schools.com/php/php_file_upload.asp[/url] | |
Re: refer this [url]http://www.macronimous.com/resources/Converting_HTML2PDF_using_PHP.asp[/url] | |
Re: [CODE=php] <?php for ($a=1; $a<=10; $a++) { if($a!=10) echo $a . ", "; else echo $a."."; } ?>[/CODE] | |
Re: your $count1 value is always less than 2 because its not incremented anywhere... I think in your inner for loop you should increment $count1++ instead of $count++ | |
| |
Re: You have missed a semicolon on 512 [CODE=php] <form action="<?php echo wp_specialchars( $_SERVER['REQUEST_URI'] ); ?>" method="post"> [/CODE] | |
Re: [CODE=html] <meta http-equiv="refresh" content="15;pagename.html" /> [/CODE] put this code in your <head> section. This will help to refresh your page every 15 seconds. | |
Re: post your code here | |
Re: replace ur line 2 with [CODE=javascript] <select name='preset' onchange='preset(this.value);'> [/CODE] and line 9 with [CODE=javascript] document.form.big[0].value = action1; [/CODE] | |
Re: your SQL is not meet your requirement.. Post the structure of hotspot table here... | |
The End.