View Single Post
  #17 (permalink)  
Old 27-02-2008, 23:23
MortimerJazz MortimerJazz is offline
Member
 
Join Date: Nov 2007
Posts: 49
Default

Ok, I've got rid of the error message which suggests that the query's now running through fine.

I've got one last question then I promise I'll leave you alone!

I'm trying to use a while loop to cycle through the database and populate various variables.

This is the entire code:

PHP Code:
$recent_sql "SELECT type, price, description, hire, age, adults, requirements, overnight, picture, dim, gallerypics FROM range WHERE type='$choice'";


while (
$recent mysql_fetch_array($recent_sql)){
$type=$recent['type']; 

Now the wierd thing is that without changing the MySQL call, suddenly I'm getting error messages again saying that it's not a valid resource.

I dont' get it ...
Reply With Quote