Ahsan Mani wrote:
<?
$link=mysql_connect("localhost");
@mysql_select_db(DBASE Name);
$query=mysql_query("--SQL Query goes here--");
$row= mysql_fetch_array($query);
?>
This code will only give you the first row returned. To read multiple returned rows use this:
<?php
$link=mysql_connect("localhost");
@mysql_select_db(DBASE Name);
$query=mysql_query("--SQL Query goes here--");
while ($row= mysql_fetch_array($query)) {
// do something with the returned $row
}
?>