320 Posted Topics
Re: Mark this thread as solved if your problem solved | |
Re: 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] | |
Re: 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] | |
Re: Post full code or a block of your code that contains the above line. | |
Re: 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. | |
Re: Mark this thread as solved if your problem solved | |
Re: Which echo is not displaying? "helo" or "something? ![]() | |
Re: Did the code return any error message? | |
Re: Refer this and change your code [url]http://www.plus2net.com/php_tutorial/php_change_password.php[/url] | |
Re: [url]http://www.daniweb.com/web-development/php/threads/413317[/url] | |
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.. | |
Re: 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] | |
Re: [CODE] $index = array_search($remove_item,$_SESSION["product_id"]); unset($_SESSION["product_id"][$index]); [/CODE] | |
Re: <? - Its not a good practice of using this. Instead of that use <?php | |
Re: 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. | |
Re: 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 | |
Re: use <table> or <div> to position your image... | |
Re: 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 … | |
Re: [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] | |
Re: In line 31 the allottee name should be like this `allottee name` or remove the space between allottee and name. | |
Hi Frendz, I need a solution to stop an embed youtube video at a particular timestamp. Any possible way to do this? | |
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? | |
| |
Re: 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> … | |
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. | |
Re: 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 | |
Hi Frendz, How to send free SMS to mobiles using php? I'm trying lot of codes but all is going to vein. | |
Re: [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] | |
Re: [url]http://www.daniweb.com/web-development/php/threads/367896[/url] | |
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. | |
| |
Hi Frendz, How to set opacity for background images? | |
Re: 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. | |
| |
Re: 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 … | |
Re: 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] | |
Re: 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 | |
Re: 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. | |
Re: 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. | |
Re: [url]http://www.java-samples.com/showtutorial.php?tutorialid=998[/url] | |
Re: Your code is working fine here. What is the result you got? | |
Re: in which line you got this error? [CODE]Parse error: syntax error, unexpected T_LNUMBER in blabla...[/CODE] | |
Re: Mark this as solved if your problem is solved | |
|
The End.