shawnzabar
New member
I have an SQL table called "users" that has a row called "art styles" and I want to set a php echo that displays all records that contain a specific value from the art styles row.
I want to have a dropdown menu that has all possible values from the art styles row that will change what the query is pulling from for
$query = mysql_query("SELECT * FROM users WHERE artstyle = '[this would be the variable]' ORDER BY `id` DESC");
I am not sure how one would set a variable for that or if there is an easier way to accomplish this. I am relatively new to PHP and SQL .
Any ideas? Appreciated!
I want to have a dropdown menu that has all possible values from the art styles row that will change what the query is pulling from for
$query = mysql_query("SELECT * FROM users WHERE artstyle = '[this would be the variable]' ORDER BY `id` DESC");
I am not sure how one would set a variable for that or if there is an easier way to accomplish this. I am relatively new to PHP and SQL .
Any ideas? Appreciated!