Hi and thanks for looking at this with me. I am COMPLETELY new to using PHP to run MySQL select statements. That being said, I have managed to run a SELECT statement to populate a drop down list...and another SELECT statement to populate an HTML table. (this is for a roleplaying game)
But this is where3 I get stuck...
I would like for the dropdown selected value to be the "WHERE racename = " value in the second select statement that populates the table so that only one row is returned instead of all the data.
Here's my code so far:
// Make a MySQL Connection
mysql_connect("localhost", "db_username", "password") or die(mysql_error()); mysql_select_db("db_name") or die(mysql_error());
Hello GameHermit and a belated welcome to WebmasterWorld.
Your link didn't offer much in the way of direction and we tend to ask folks to explain the issue rather than link to a page. Written issues will remain in this forum indefinitely whereas personal page links change or go 404 more often than not, which render future readers helpless to fully understand the problem.
First, are you getting errors when you attempt to build the select list? You can find out by looking at your php error log.