When i add this code, the 1st result doesnt appear..
Heres the full code:PHP Code:if($dealsrow = mysql_fetch_array($dealsrs)==0)
anyone know how i could show the 1st result without removing that code? thanks..PHP Code:// Database Stuff
$dealsaddress = "localhost";
$dealsusername = "xxxxx";
$dealspassword = "xxxxx";
$dealsdb = "xxxxx";
$dealsconn = mysql_connect($dealsaddress, $dealsusername, $dealspassword);
$dealsrs = mysql_select_db($dealsdb, $dealsconn);
$dealssql="SELECT * FROM xxxxx WHERE handsetid='$handsetiddb' AND tariffid LIKE '$netsearch%' ORDER BY 'total' ASC";
$dealsrs = mysql_query($dealssql, $dealsconn);
$dealsj = 0;
if($dealsrow = mysql_fetch_array($dealsrs)==0)
{
echo ("there are no deals..");
}
else
{
echo("there are deals..");
}
while($dealsrow = mysql_fetch_array($dealsrs)) {
// Assigning names
$dealsdeals = $dealsrow[deals];
echo("here are the deals..$dealsdeals");
}
mysql_close();



Reply With Quote

Bookmarks