suma237
Members-
Posts
282 -
Joined
-
Last visited
Never
Everything posted by suma237
-
[SOLVED] [Problem] Getting error msg when trying to submit form =(
suma237 replied to Evoke's topic in PHP Coding Help
the variable $drop_field is missing...pls check your code -
[SOLVED] [Problem] Getting error msg when trying to submit form =(
suma237 replied to Evoke's topic in PHP Coding Help
check the post values $other_field = $_POST['Other']; $dropdown=$_POST['select'];//missing -
$var should be an array $VAR[] = "example"; foreach($VAR as $key ){ echo $VAR; echo $key; } [code]
-
[SOLVED] [Problem] Getting error msg when trying to submit form =(
suma237 replied to Evoke's topic in PHP Coding Help
change submit to submit2(ie the name of the button ). if(isset($_POST['submit2'])) { [code] -
$s="file2.php"; $s2=substr($s,-3); echo $s2; [code]
-
$day1=date(l);//display day if($day1=='Monday') { $sql=mysql_query("SELECT SUBDATE('2009-03-20', INTERVAL 2 DAY)"); ........continue coding } [code]
-
[SOLVED] php code updates to '0' instead of 'yes'
suma237 replied to kendallkamikaze's topic in PHP Coding Help
use bracket when you apply conditions UPDATE horsedata SET retired='yes' , dead='yes' WHERE (id='$horseid' AND Owner='$id' AND DOB > 24) -
$today = date("F m Y"); $explode_date = explode(" ",$today); echo "Month:".$explode_date[0]; echo "<br>Date:".$explode_date[1]; [code] compare the array value with the mysql data
-
[SOLVED] php code updates to '0' instead of 'yes'
suma237 replied to kendallkamikaze's topic in PHP Coding Help
check the type(var char,enum..) of the field you defined -
[SOLVED] php code updates to '0' instead of 'yes'
suma237 replied to kendallkamikaze's topic in PHP Coding Help
replace with this code $query="UPDATE horsedata SET retired='yes' , dead='yes' WHERE id='$horseid' AND Owner='$id' AND DOB > 24"; -
$qry=mysql_query("select * from paper where applyid=$candaidateid");
-
$data = mysql_query("SELECT * FROM people"); while($info = mysql_fetch_array($data)) { echo $info['name']; echo "<br>" $info['level']; }
-
[SOLVED] populating select box with database values
suma237 replied to AdRock's topic in PHP Coding Help
use simple statement instead of function.check this sample code $sql = "SELECT * FROM state"; $results = mysql_query($sql); $numrows = mysql_numrows($results); if ($numrows > 0){ $x=0; while ($x < $numrows) { $id = mysql_result($results,$x,'state_id'); $articletitle = mysql_result($results,$x,'state_name'); echo "<option value=\"$id\">$articletitle</option>\n"; $x++; } } [code] -
[SOLVED] populating select box with database values
suma237 replied to AdRock's topic in PHP Coding Help
check the database connection .Find out it using die(mysql_error()) statement -
Use <input type='textbox' name='Fname' value=''>
-
Use post method . On the next page accept the agent name using $_POST['Delete_Agent'].ie the name used in the <select name='Delete_Agent'> option.
-
Use ajax, so that the page won't refresh.http://www.w3schools.com/PHP/php_ajax_database.asp
-
check this url http://www.bleepingcomputer.com/forums/topic55647.html ,may be this will help you.
-
check the connection is working properly or not? echo the select statement and check it with database.
-
check the url using alert statment
-
[SOLVED] how to retrieve image(BLOB) from mysql database
suma237 replied to suma237's topic in PHP Coding Help
ok.but the loop is not working.It will display only one record. why? -
[SOLVED] how to retrieve image(BLOB) from mysql database
suma237 replied to suma237's topic in PHP Coding Help
could you please check this code #connecting to mysql server $link = mysql_connect(MyHost,MyUser,MyPass) or die("Error while connecting".mysql_error()); mysql_select_db(MyDataBase); $fetch_id="select id from tbl_images"; $result_id=mysql_query($fetch_id); while($row_fetchid=mysql_fetch_array($result_id)) { $id1=$row_fetchid['id']; $fetch_query="select image,imagename from tbl_images where id=".$id1; $result=mysql_query($fetch_query); $row_fetch=mysql_fetch_assoc($result); print "Image Name:".$row_fetch['imagename']; $image_disp=$row_fetch['image']; header("Content-type:image/jpeg"); print $image_disp; } [code] -
how to retrieve image(BLOB) from mysql database?
-
How to print a particular area(Report) using print button
-
$row = mysql_fetch_array($result) @extract($row); print $feildname; ..$fieldname should be your column name of the table