One variable row inside another variable row

前端 未结 3 1841
庸人自扰
庸人自扰 2021-01-28 16:09

I have following script:

$sql = \"SELECT * FROM `users`\"
$q = mysql_query($sql) or die(mysql_error());
$row = mysql_fetch_array($q);
$sql1 = \"SELECT * FROM `ot         


        
3条回答
  •  迷失自我
    2021-01-28 16:48

    Guess you want something like

    SELECT * FROM table1 t1, table2 t2 WHERE t1.user_name = t2.user_name?
    

    Think about using JOIN

提交回复
热议问题