Hi!

thanks for reviewing this email.

I have wrote this script and I have checked it but for some reasons (I
don't know what) it doesn't work.

Could any body please check and give some feedback please?

<?PHP

include("heading.inc");

echo "Result :\n";   ------------------------->>> THIS DOESN'T GIVE ME A
NEW LINE- WHY ?????


//CONNECT TO SERVER
include("connect.inc");

//CONNECT DATABASE
include("select_db.inc");

$query = "select * from main_table where item_type = '$type' and class =
'$class' ";
$result = mysql_query($query);

$row = mysql_fetch_array($result);

echo ("$row[item_id]\n"); ------------------------->>>> THIS DOESN'T
GIVE ME A NEW LINE EITHER, WHY ??????

while ($row = mysql_fetch_array($result))
 {
 echo "$row[item_type]" , "$row[class]";
 }

?>


Any reply is greatly appriciated

Regards,
Dani


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to