help with php/sql
Posted: Thu Jun 12, 2008 5:25 am
Well I'd like to select values from fields that are in rows with other 2 values
Code:
$sql="SELECT * FROM forum_question WHERE id='$id', forums_id='$forums_id'";
$result=mysql_query($sql);
After WHERE I used two conditions (matching id and forums_id)
But I get an error
How can I solve the problem?
Code:
$sql="SELECT * FROM forum_question WHERE id='$id', forums_id='$forums_id'";
$result=mysql_query($sql);
After WHERE I used two conditions (matching id and forums_id)
But I get an error
How can I solve the problem?