07-25-2011, 12:30 AM
PHP Code:
<?php
session_start();
if(!is_numeric($_GET['id']))
{
die("If i am vuln on this, i will not be a coder !");
}[/color]
$result = mysql_query("SELECT * FROM notifications WHERE id='$id'");
while($row = mysql_fetch_array($result))
{
$text = $row['text'];
echo $text;
}
?>