Posted by Anonymous Sat 24th Mar 2007 03:43 - Syntax is PHP - 163 viewsRun this post in the PHP shell
Download | New Post | Modify | Hide line numbers
PHP parser reported no syntax errors in this post!
  1. if ( isset($_POST['add']) )
  2. {
  3.   $title = $_POST['title'];
  4.   $content_news = $_POST['content_news'];
  5.   $forward_link = $_POST['forward_link'];
  6.  
  7.   $res = mysql_query("INSERT INTO news (title, content_news, forward_link)
  8.     VALUES ('" . $title . "',  '". $content_news ."',  '". $forward_link ."')");
  9.  
  10.   if ( !$res )
  11.   {
  12.     echo("SQL Error: ". mysql_error());
  13.   }
  14. }

PermaLink to this entry https://pastebin.co.uk/12165
Posted by Anonymous Sat 24th Mar 2007 03:43 - Syntax is PHP - 163 viewsRun this post in the PHP shell
Download | New Post | Modify | Hide line numbers

 

Comments: 0