I have the following code:
http://www.nomorepasting.com/getpaste.php?pasteid=22615
Which is called by the javascript mentioned in this question:
My problem is that I do not seem to be able to pass $query, as in nothing seemingly happens when I call this file by itself.
I am unsure what the best way to control the flow of information is. Is my logic ok? Passing the query through javascript to the php file, and then returning it with the function?
I am also concerned about my use of $rows, as it does not seem to be required.
I think you want to replace this (line 36):
with this:
And for security concerns, the least you should do is the mysql_real_escape_string stuff from spelley’s post.