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
Guess you want something like
SELECT * FROM table1 t1, table2 t2 WHERE t1.user_name = t2.user_name?
Think about using JOIN