|
Posted by Dekka-x on 12/08/06 21:50
Your code worked perfect !!!!! No more MySQL-Link error. (and I
learned something about funtions).
function search_session_noret($conn,&$sthread,&$slevel){
$sql2 = "SELECT * from session limit 1";
$result_thread = mysql_query($sql2, $conn) or
die("Invalid query: " . mysql_error());
;
while ($row3 =
@mysql_fetch_array($result_thread)){
$sthread=$row3['thread'];
$slevel=$row3['level'];
return ;
}
}
search_session_noret($conn,$thread,$level);
echo "sthread: ".$thread ."\n";
echo "slevel: ".$level ."\n";
Navigation:
[Reply to this message]
|