320 Posted Topics

Member Avatar for DaveyMoyes
Member Avatar for gilanib

In this line [CODE=php]<a href="franchiseDetails.php?city=<?php echo $row3['city'];?>">[/CODE] pass your record id instead of city as follows [CODE=php]<a href="franchiseDetails.php?id=<?php echo $row3['id'];?>">[/CODE]

Member Avatar for scarcella
0
197
Member Avatar for subrata_ushasi

try this [url]http://roshanbh.com.np/2008/01/populate-triple-drop-down-list-change-options-value-from-database-using-ajax-and-php.html[/url]

Member Avatar for subrata_ushasi
0
268
Member Avatar for Persi
Member Avatar for Persi
0
4K
Member Avatar for arihantphp

put [CODE=php]echo $file['name'];[/CODE] before that if statement [CODE=php]if (!in_array(end(explode(".", strtolower($file['name']))), $allowedExtensions))[/CODE] and see the result.

Member Avatar for arihantphp
0
451
Member Avatar for martymaven
Member Avatar for yanwick
Member Avatar for klemme
Member Avatar for Poonam Jadav
Member Avatar for Sorcher
0
300
Member Avatar for shielaolid
Member Avatar for pabzzmike
Member Avatar for karthik_ppts
0
150
Member Avatar for gopi17
Member Avatar for karthik_ppts

Hi Frendz, How to create family tree chart using php/javascript/jquery? I googled that but :(. If any one know the link then help me..

Member Avatar for subrata_ushasi
0
3K
Member Avatar for mynameisfish.22

simplypixie is correct. You need to pass resultset as the argument not query. And also check whether the view is keyword of Mysql. We can't use keyword as column name. otherwise change your query as [CODE=php]$sql3="SELECT `view` FROM $tbl_name2 WHERE id='40'";[/CODE]

Member Avatar for karthik_ppts
0
198
Member Avatar for anthonyjpv

[CODE] $index = array_search($remove_item,$_SESSION["product_id"]); unset($_SESSION["product_id"][$index]); [/CODE]

Member Avatar for karthik_ppts
0
5K
Member Avatar for filipgothic
Member Avatar for filipgothic
0
1K
Member Avatar for Valkyrian

You should pass the query_string values to detail.php as [CODE=php]detail.php?pageNum_Recordset1=49&totalRows_Recordset1=2548&recordID =248[/CODE] and get the values using $_GET in your previous page.

Member Avatar for Valkyrian
0
343
Member Avatar for emidevil

Echo your query as follows [CODE=php] class Core { <some declaration of attributes>.... function Execute($query) { echo $query; $this->result = mysql_query($query) or die('Error, query failed!!!'); $this->num_rows = mysql_num_rows( $this->result ); } } [/CODE] and check the query with phpmyadmin's SQL section

Member Avatar for cossay
0
575
Member Avatar for navp
Member Avatar for cskinittest
Member Avatar for sujan.dasmahapa
Member Avatar for demon8

Echo out your query as follows [CODE=php] if(!empty($_POST["update"])) { echo "UPDATE students SET firstname='".$_POST["firstname"]."' WHERE student_id ='".$_POST["student_id"]."'"; mysql_query("UPDATE students SET firstname='".$_POST["firstname"]."' WHERE student_id ='".$_POST["student_id"]."'"); $msg = "Record # ".$_POST["student_id"]." has been successfully updated."; } [/CODE] Copy the printed query and paste it in the sql sectin of phpmyadmin and see …

Member Avatar for demon8
0
91
Member Avatar for fire eaters

[CODE=php] $date = $_POST['date']; $criteria = $_POST['criteria']; $join=""; if($criteria=="PASS" || $criteria=="FAIL" ) { $join=" AND bft.`status` = '".$criteria."'"; } $sql=" SELECT frsemployees.`name`, bft.`date`,bft.`dpush`,bft.`push`, bft.`dsit`,bft.`sit`,bft.`drun`,bft.`run`,bft.`status` FROM `bft` INNER JOIN frsemployees ON frsemployees .empid = bft.empid WHERE bft.`date`= '".$date." $join"; [/CODE]

Member Avatar for karthik_ppts
0
119
Member Avatar for shielaolid

In line 31 the allottee name should be like this `allottee name` or remove the space between allottee and name.

Member Avatar for kk.fasil
0
426
Member Avatar for karthik_ppts

Hi Frendz, I need a solution to stop an embed youtube video at a particular timestamp. Any possible way to do this?

Member Avatar for karthik_ppts
0
406
Member Avatar for karthik_ppts

Hi frendz In my website somebody changes the content as [B]"hacked by phantom"[/B]. Anybody heard about this word "hacked by phantom" and what is the issue? Any virus? or Hackers?

Member Avatar for karthik_ppts
0
232
Member Avatar for xiiopao
Member Avatar for dipusubhasis

I think you need javascript. If I'm correct, try this [CODE=html] <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Untitled Document</title> <script type="text/javascript"> function goto() { if(reasons=="Internal") { window.location.href="cart1.php?form=tmrfForm&field="+document.getElementById("reasons").value+"&field5="+document.getElementById("weekend").value,"","top=0,left=400,width=1000,height=1000,menubar=yes,toolbar=yes,scrollbars=yes,resizable=yes,status=yes"; return false; } else { window.location.href="cart.php?form=tmrfForm&field="+document.getElementById("reasons").value+"&field5="+document.getElementById("weekend").value,"","top=0,left=400,width=1000,height=1000,menubar=yes,toolbar=yes,scrollbars=yes,resizable=yes,status=yes"; return false; } } </script> </head> <body> …

Member Avatar for karthik_ppts
0
150
Member Avatar for karthik_ppts

How to do site search in a website? for example if we search a keyword in search box of the daniweb it will give the result from daniweb site only. like that i want to do in my website.

Member Avatar for karthik_ppts
0
123
Member Avatar for harsha.netpem

You have missed the single quote before AND [CODE]$buyer_query="select * from buyer_detail where company_id='".$row['c_id']. "' AND buyer_id='".$_GET['buyer_id']."'";[/CODE] Use code tags to post your code

Member Avatar for Fest3er
0
749
Member Avatar for karthik_ppts

Hi Frendz, How to send free SMS to mobiles using php? I'm trying lot of codes but all is going to vein.

Member Avatar for stoopkid
0
248
Member Avatar for ebanbury

[QUOTE=ebanbury;1641847]Hi THanks for getting back to me. I'll try this :-) My table colunm is date type. cheers liz[/QUOTE] if your column is date type then you can simply write as [CODE]echo $row_rs_propdetails['add_date'];[/CODE]

Member Avatar for mschroeder
0
217
Member Avatar for jemz

[url]http://www.daniweb.com/web-development/php/threads/367896[/url]

Member Avatar for jemz
0
257
Member Avatar for karthik_ppts

Hi Frendz, I have two text fields 'from time' and 'to time'. The time format of the two text fields are 11:30 am 01:30 pm. I want to give alert message in javascript when the users enter the to time less than the from time.

Member Avatar for karthik_ppts
0
218
Member Avatar for aecha
Member Avatar for karthik_ppts
Member Avatar for sibymary

replace your line 20 oh php as [CODE]echo $sql="INSERT INTO return (author1,title1,accessno1,name1,regno1,sdate1,ddate1) VALUES('$author1','$title1','$accessno1','$name1','$regno1','$sdate1','$ddate1')";[/CODE] copy the printed query and execute it in the sql section of your phpmyadmin ans see what happens.

Member Avatar for karthik_ppts
0
247
Member Avatar for kanchana Mala
Member Avatar for karthik_ppts
0
61
Member Avatar for davy_yg

I think your nedd is this [CODE=php] <?php // a) function fnTripple($a) { $a = $a * $a; return 3; } echo fnTripple(4); // b) $a = 5; $b = 5; // c) $b = $b + $a; // d) // $d=0; $d = $d + $b; $e = $e …

Member Avatar for karthik_ppts
0
167
Member Avatar for komanche

As pritaeas suggest, Your quotes in the query are the problem. so replace ' with ` in the field name and table name like this. [CODE=php]$query = "SELECT `id` FROM `users` WHERE username= '$username' AND password= '$pass'";[/CODE]

Member Avatar for karthik_ppts
0
788
Member Avatar for skylove

Replace your line 7 with [CODE=php]$p_now=0; if(isset($_GET['p']) && !empty($_GET['p']) $p_now = intval($_GET ['p']);[/CODE] Use code tags to post your code

Member Avatar for karthik_ppts
0
90
Member Avatar for Dante2

Just echo out your query [CODE=php] echo $commsql = "SELECT name FROM comments WHERE blog_id = " . $row['id'] . "ORDER BY dateposted;"; [/CODE] and put thr query in the SQL section of your phpmyadmin and see what is the error.

Member Avatar for Dante2
0
309
Member Avatar for eduard77

The very first post(FAQ) of the PHP forum deals about this warning. [url]http://www.daniweb.com/web-development/php/threads/191031[/url] If you cant find the solution with this post your code with code tags.

Member Avatar for eduard77
0
93
Member Avatar for binu_ds
Member Avatar for karthik_ppts
1
95
Member Avatar for zulfistyle
Member Avatar for GrinShady
Member Avatar for kaizokupuffball

in which line you got this error? [CODE]Parse error: syntax error, unexpected T_LNUMBER in blabla...[/CODE]

Member Avatar for karthik_ppts
0
491
Member Avatar for eduard77
Member Avatar for karthik_ppts
0
75
Member Avatar for Rhamises
Member Avatar for SolImages

The End.