Forum Moderators: coopster

Message Too Old, No Replies

php error - merry xmas

         

adamnichols45

1:06 pm on Dec 24, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Can someone take the time out of wraping presents and help with this error please.

im using this code

if(mysql_num_rows($sql) == 0){

print 'message';

} else {

while ($row = mysql_fetch_array($sql)){

Display results

}

}

supplyed by birdman (thanks alot)

only problem is it does what i want it todo but displays + everytime its used. Can any one tell me why please and how i can get rif of it. cheers

adamnichols45

1:12 pm on Dec 24, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



also the var $sql is a s follows:

$sql = mysql_query("SELECT make, model, price, year2, app, reg, photodesc, id, size FROM cars WHERE make ='$carrymake' and model = '$carrymodal' LIMIT $from, $max_results");

Birdman

3:02 pm on Dec 24, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hi again,

I'm not sure I understand. You mean it displays an actual plus sign(+)?

Show us the real code, especially what's in the while() loop, in place of "Display results".

Birdman

adamnichols45

1:51 pm on Dec 25, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Yeah it was displaying an actual + sign - I just started from scratch and it got rid of the sign! I have no idea why it did that. Its all looking great now tho, time to move on to the next page lol. Merry christmas and thanks.