Howtofetchdatafrommysqltableusingmysql_fetch_associ_MySQL
來源:懂視網
責編:小采
時間:2020-11-09 19:31:06
Howtofetchdatafrommysqltableusingmysql_fetch_associ_MySQL
Howtofetchdatafrommysqltableusingmysql_fetch_associ_MySQL: Game_IDCategoryTitle php mysql_connect('localhost','root','') or die(mysql_error()); mysql_select_db('new') or die(mysql_error()); $query=mysql_query('select * from table1') or die(mysql_error()); while($res=mysql_fetch_assoc($query
導讀Howtofetchdatafrommysqltableusingmysql_fetch_associ_MySQL: Game_IDCategoryTitle php mysql_connect('localhost','root','') or die(mysql_error()); mysql_select_db('new') or die(mysql_error()); $query=mysql_query('select * from table1') or die(mysql_error()); while($res=mysql_fetch_assoc($query
Game_ID | Category | Title | php mysql_connect('localhost','root','') or die(mysql_error());
mysql_select_db('new') or die(mysql_error());
$query=mysql_query('select * from table1') or die(mysql_error());
while($res=mysql_fetch_assoc($query))
{
echo'
'.$res['game_ID'].' | '.$res['category_Name'].' | '.$res['game_Title'].' |
'; }
echo'