如果选择了任一语句并显示它们,如何mysql_fetch_assoc
为任一语句排列?select
$query1= "SELECT name, email_id,mobile_number from tablename where `user_id='$id'"`
OR
"SELECT guser_name, guser_email from tablename1 where user_id='$id'";
if($q=mysql_query($query1))
{
$row = mysql_fetch_assoc($q);
$name = $row['guser_name'];
$name1 = $row1['name'];
$mail1 = $row1['email_id'];
$mail= $row['guser_email'] ;
$phone = $row1['mobile_number']