Search results

  1. R

    my life, it's ****ed.

    how about change your code like this // Get the current value of likes from articles with a match id of $_GET['id'] if(!$result = mysql_query('SELECT `likes` FROM `articles` WHERE `id` = "'.mysql_real_escape_string($_GET['id']).'"')) die('Invalid query: ' . mysql_error()); $row =...
  2. R

    PHP inserting

    How about testing your code first if its reaching the insertion by modifying some line temporarily like this. $res_array = $memberQuery->fetchColumn(4); if ($res_array<'2') { //header("location:main.php"); die('Cant reach insert because ($res_array<\'2\') is true'); } if...
Top