hi forum
i was working with odbc and used odbc_exec(). but when i used this in mysql this is not working i also used mysql_query() but this is not working too
here is the code
$id;
$sr;
$cs='fa';
$q2="SELECT MAX(ser) AS mxid FROM (SELECT * FROM Table1 AS T2 where subject='".$cs. "')";
if(!($result = mysql_query($q2))){
echo "whoooooooooooooooooooooops";
}// or die();
else{
while(mysql_fetch_row($result)){
$sr=mysql_result($result, "mxid");
echo "MAX IS ".$sr;
}