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!
I didn't realize this, but you need to pass $cid to the function. This is whats causing your query to return 0 rows.. assuming there are actually rows in your table.
it helps to have error_reporting(E_ALL); to catch uninitialized variables.
I use $cid=$_GET['cid'] in the beginning but as you said - I wasn't using it in the function. That was the first problem. The second problem was using reversing my use of semicolons and quotes in the SQL query. Now it works!