320 Posted Topics
Re: [QUOTE=vlowe;1641982]lovely cheers[/QUOTE] Mark this thread as solved if your problem solved | |
Re: Now what error you have got? Please post your codes with code tag. | |
Re: Try this [CODE=php]$rs_file = mysql_query("select flddefaultphoto from tblcardetail where fldmodelid=".$_REQUEST["delid"]); while($file=@mysql_fetch_array($rs_file)) { @unlink("../upload/".$file["flddefaultphoto"]); } [/CODE] | |
Re: [CODE]$ref1 = $_REQUEST['$ref1'];[/CODE] Where did you pass value for ref1? I think through query string. If so replace your above line with this [CODE]$ref1 = $_REQUEST['ref1'];[/CODE] | |
Re: Pass the database values to array and use that array | |
| |
Re: try this [CODE=php] if(isset($_SESSION['something_else'])) $req=$_SESSION['something_else']; else $req='a default value'; public $myArray = array ( 'key1' => 'something', 'key2' => $req ) [/CODE] | |
Re: [URL="http://paypal.com"]paypal[/URL] | |
Re: Post the code that you have used to display the video... | |
Re: try with line-height to 40. Use code tags to post your code. | |
Re: better make your date picker code to show the date in YYYY-MM-DD forma | |
Hi frendz, Can we set a value for a session variable through javascript onclick event? (or) How can we set a global variable for the whole website using javascript? | |
Re: Try this [CODE=php] if($row[scr1]!="") { echo "<div class='posterdecoration'><img src='$row[scr1]' width='640' alt='$row[name]' /></div>"; } if($row[scr2]!="") { echo "<div class='posterdecoration'><img src='$row[scr2]' width='640' alt='$row[name]' /></div>"; } [/CODE] | |
Re: That error is not with update query. Its because of the select query. try this [CODE=php] $query = "SELECT * FROM `ue-xxx` WHERE id = '$imageid' AND userid = '$userid'"; [/CODE] | |
Re: [CODE=php]for($i=0;$i<$count;$i++){[/CODE] where did you define $count? | |
Re: [CODE=php]<head> ---- ---- <meta http-equiv="refresh" content="<?php echo $secs; ?>"> --- --- </head>[/CODE] you can dynamically give the value for the $secs variable too? | |
Re: Try this [CODE=php] $rs_stud=mysql_query("select * from student where regno='$regno'"); $count=mysql_num_rows($rs_stud); if($count>0) { $sql="INSERT INTO member (fname,lname,regno,dept,valid,dob,address,emailid) VALUES('$fname','$lname','$regno','$dept','$valid','$dob','$address','$emailid')"; mysql_query($sql) or die(mysql_error()); } else { echo "Sorry! You Can't Register.There is no student found with this register no $regno"; } [/CODE] | |
Re: [CODE=html]<head> ---- ---- <script type="text/javascript"> function report() { var WinPrint = window.open('', '', 'left=0,top=0,width=1024,height=768,toolbar=0,scrollbars=0,status=0'); var id=document.getElementById('report'); var str='<html><body><table width="100%">'+id.innerHTML+'</table></body></html>'; WinPrint.document.write(str); WinPrint.document.close(); WinPrint.focus(); WinPrint.print(); WinPrint.close(); } </script> ---- ---- </head> ---- ---- <div id="report"> //Your grid view result here </div> <a href="javascript:void(0)" onclick="javascript:report();">Print</a>[/CODE] | |
Re: [url]http://www.geekinterview.com/question_details/22645[/url] | |
Re: [CODE]$X = mysql_real_escape_string($_GET['X']);[/CODE] | |
Re: try this [CODE] $delete_temp_query="DELETE FROM temporary where contactemail='".$emailcheck."'"; $delete_temp=mysql_query($delete_temp_query) or die(mysql_error()); [/CODE] | |
Re: [CODE=php]$catsel=$_POST["catsel$i"];[/CODE] where did you define the variable $i that you used in the above line? | |
Hi Frendz, Can we merge two images into a single image using PHP? | |
Re: Session concept is the best way for your need. [CODE] ---- ---- if (mysql_fetch_array($querySQL)>0) //validate the log-in { session_start(); $_SESSION["user"]=$username; ?> <head> <meta http-equiv="Refresh" content="5;url=http://localhost:6824/index.php" /> ----- ----- [/CODE] Now you can use $_SESSION["user"] as user name in all pages by starting the session using session_start(). | |
Re: [CODE=php] $Q = mysql_query("Select count(*) from tableA",$connection); $count=mysql_result($Q,0,0); [/CODE] | |
Re: [CODE=php] $test1=array(1,2,3,4); $test2=array(); $test2=$test1; [/CODE] | |
Hi Frendz, How to find the javascript is enabled in the browser or not? | |
Re: [QUOTE=cormee;379110]I ended up doing something completely different and it seems to work so the problem is solved hopefully - thanks for everyones suggestions :)[/QUOTE] How did you solve? I'm also having the same problem... | |
Re: Go through the "Read Me: FAQ:" post on the top of the php posts and follow the steps mentioned in that post. | |
![]() | Re: better storing the id of the user instead of name while rating or use the = operator instead of LIKE as Urtrivedi said. |
Re: [url]http://www.daniweb.com/web-development/php/threads/368118[/url] | |
Re: [QUOTE=urtrivedi;1615021]change your main form file like this [CODE] <div><?php echo $_GET['message']?> </div> <form action='mail.php' > . . . </form>[/CODE][/QUOTE] [B]<?php echo $_GET['message']?>[/B] How can we use php in html form? ![]() | |
Re: Replace your line 5 [CODE=php]$datebirth = $y . $m . $d;[/CODE] with this [CODE=php]$datebirth = $y."-".$m."-".$d;[/CODE] | |
Hi Frendz, I have datetime field in database. now i want to filter out the record which are in today date using mysql query? | |
Hi Frendz, How to get the id of an element using onClick Event in <body> tag using javascript? | |
Re: [url]http://www.w3schools.com/php/default.asp[/url] refer this site its very useful for the beginners. | |
Re: After changing the max_execution_time in php.ini save and restart your XAMPP. Then Run your file | |
Re: mysql_real_escape_string() is very useful for this type of SQL injection. Refer this [url]http://www.w3schools.com/php/func_mysql_real_escape_string.asp[/url] | |
Re: You can combine both queries using 'in' Keyword as follows [CODE] $get_swork = "select servicearea, date, customerid, clientID from servicesrendered where servicearea=' Oil Change ' and clientID in (SELECT clientID FROM additional_cars group by clientID) order by id desc limit 1"; [/CODE] | |
Re: Hi mbarandao, Didn't this prolem solve? [url]http://www.daniweb.com/web-development/php/threads/372282[/url] | |
Re: Post your html code of checkbox and radiobutton... | |
Re: Try what faroukmuhammad suggested. and Remove the semicolon; from your line 35. | |
Re: Always Post your code with code tags. Mark this thread as solved if your problem solved. | |
Re: Yes vishesh is correct. Try with vishesh suggestion or Replace your line from 8 to 13 [CODE=php] $view = mysql_query("SELECT * FROM bulletin ORDER BY pro_no DESC"); if (!mysql_query ($view, $con)) { die ('Error Sir' . mysql_error()); } [/CODE] with [CODE=php] $view = mysql_query("SELECT * FROM bulletin ORDER BY pro_no … | |
Re: Post your code from while($item=mysql_fetch_array($rs)) | |
Re: Your code is not a good way to check login page. try with as per Pro2000 suggested. | |
Can we use 'min-height' property in <table> tag? I used but its not working any suggestion? | |
Re: post your code here.. It'll be more helpful to solve your problem | |
Re: you need to write your database query and design the second select box in rediger.php. | |
Re: try this [CODE] $result = $db->getall(lmonth); $i=0; foreach($result as $item) { if($i<1) { show_record($item); exit; } $i++; } [/CODE] |
The End.