if u just want id from table1 then simply do this. global $sid; $r = mysql_query("select id from tbl1); while($id1 = mysql_fetch_array($r)) { $sid = $id1['Id']; } .//
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)