"INSERT INTO tablename VALUES ('1', 'one')", "INSERT INTO tablename VALUES ('2', 'two')", "Batch execution prematurely ended on statement. ... You can specify more than one conditions using AND or OR operators. To execute your two statements, you have to run mysql_db_query repeatedly. Please note that there is no need for the semicolon after the last query. without knowing it. Please Sign up or sign in to vote. Oben gezeigte Beispiele erzeugen MySQL - Select Query - The SQL SELECT command is used to fetch data from the MySQL database. Summary. In this tutorial you will learn how to select the records from a MySQL database table based on specific conditions using PHP. I thought i might as well add how to do it the object oriented way. The while loop is used to loop through all the rows of the table “data”. Which tag is used to add lists into