Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

php - Basic SQL Injections?

$site = mysql_real_escape_string($_GET['site']);
$start_date = mysql_real_escape_string($start_date);
$end_date = mysql_real_escape_string($end_date);

get_stats = mysql_query("SELECT * FROM visitors WHERE site='$site' AND date >= '$start_date' AND date <= '$end_date' ");
Source by sqlerrors.com #
 
PREVIOUS NEXT
Tagged: #php #Basic #SQL
ADD COMMENT
Topic
Name
6+9 =