SELECT FROM tab_girls res mysql_query or die inf mysql_fetch_array res

1
2
3
4
5
6
$q = "SELECT * FROM `tab_girls`";
$res = mysql_query($q)
or die($q);
$inf = mysql_fetch_array($res);
$g_name = $inf['g_name'];
$g_img = $inf['g_img'];