$query1 = "SELECT * FROM idevaff_affiliates";
$affiliateID = mysql_query($query1) or die(mysql_error());
This is my query above - I would like to use it for two WHILE loops
The first one is in the header section - setting up jquery
while($row = mysql_fetch_assoc($affiliateID)){
}
The second is used in a while loop in the body
while($row = mysql_fetch_assoc($affiliateID)){
}
Why can't I get it to work? - I did get it working but had to make two queries using the same SELECT info using two different variables.