public query (mixed $sqlStatement, [mixed $bindParams], [mixed $bindTypes])
Sends SQL statements to the database server returning the success state. Use this method only when the SQL statement sent to the server is returning rows
1 2 3 | //Querying data $resultset = $connection ->query( "SELECT * FROM robots WHERE type='mechanical'" ); $resultset = $connection ->query( "SELECT * FROM robots WHERE type=?" , array ( "mechanical" )); |
Please login to continue.