Home » » mysql_query

mysql_query

Written By 1 on Sunday, September 30, 2012 | 7:20 PM

resource mysql_query ( string $query [, resource $link_identifier = NULL ] )

Send a MySQL query

mysql_query() sends a unique query (multiple queries are not supported) to the currently active database on the server that's associated with the specified link_identifier.


<?php
$result 
mysql_query('SELECT * WHERE 1=1');
if (!
$result) {
    die(
'Invalid query: ' mysql_error());
}

?>


PHP - Basic MySQL Injection

0 Comment:

Post a Comment