Jump to content

Error in this line of code !


june_c21

Recommended Posts

Can someone tell me what's wrong with this code .

can't execute , return no result ...

 

$query1 = "Select id,department from event order by id desc";
$result1 = mysql_query($query1,$dblink);
$myrow1 = mysql_fetch_row($result1);
$no = "R0" . $myrow1[0] . " / ";

$department =$myrow1[1] ;

if ($department=='GF1')
{


$query2 = "Select gf1,id from dept_no ";
$result2 = mysql_query($query2,$dblink);
$myrow2 = mysql_fetch_row($result2);
//echo "00"."$myrow2[0]"." / ";
$query3 ="update dept_no set id=id+1, gf1=gf1+1";
$result3 = mysql_query($query3,$dblink);
$no = $no . "GF1 / 0".$myrow2[0]. "/0".$myrow2[1];

}

Link to comment
https://forums.phpfreaks.com/topic/186773-error-in-this-line-of-code/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.