Hi gitosh and everyone!
Thank you for trying to help this aspiriing php noobie. lol
I finally got the states to list from a dropmenu and I was so happy late last night! Now I am trying to figure out how I can fix the errors that are coming up.
So there are many states but I will list a couple just so you can see what I did.
while ($stateArr = mysql_fetch_array($statesRsc))
print "<select name=\"".$result." \">";
{
$dropMenu = dropmenu;
print "<option value=\"1\">AK</option>";
print "<option value=\"2\">AL</option>";
}
print "</select>";
}
The first error that I noticed happend when I viewed the source from the browser after the page loaded. I noticed in the source of the loaded page towards the bottom it said,"Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource on line 43
So then I went to line 43 and it reads as, "while ($stateArr = mysql_fetch_array($statesRsc))" like the 1st line of code above.
The second error I came upon was when I actually tried to select a state from the drop menu. I selected AK and as the page loaded it said, "Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource on line 120".
Line 120 reads as, "while ($cityArr = mysql_fetch_array($citiesRsc)) {"
Question1 - What do I do to even begin to fix these errors? What does it mean? I have spent so many hours/days working on this that I dont know what else to do. My idea is once I get this thing working then I can make sense of each and every line of code and hopefully that will give me a clue.
Question2 - Why does one error show when the page is loaded and why does one error show only if you view the source?
Question3 - What do you recommend is the best way to jump in the huge ocean of knowledge on php? Get a tutor? Anyone live in the Bay Area? haha
Question4 - Do you think I will ever get this thing looking like this example? lol http://75.32.150.185/~david/ps7_8.dogfood.php (right now - questionable)
I hope I am posting somewhat intelligent posts with just enough information so that you guys can understand what I am trying to achieve. If not tell me what you need.
Thank you for the help!