PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
Hi there, I've got a question that is been bothering me for very long.
I have got a table on my database which contains a field called 'bpm'. On the script am creating I want to be able to retrieve the value of this 'bpm' so that I include it to my query such as...
What I want to do is to get the values of 2 fields in order to proceed to the next link. How can I put a second row on the same line? I tried this but it doesn't work...
This is how to pass multiple values via GET.
foo.php?var1=value1&var2=value2
$query5 = "SELECT * FROM uploads WHERE mood = {$_GET['mid']} AND BPM = '$bpm'";
Put quotes around the user submitted input. Before, check if the user input is valid (and not some db-hacking code). (Is the db field named 'bpm' or 'BPM'?)