Code: Select all
<?php
$id = $_POST["id"];
include("includes/dbs.php");
$lk = mysql_connect($serv,$user,$pass) or die (mysql_error());
$namd = mysql_select_db($dbname,$lk);
$qur = "select * from News where id = '" .$id . "'";
$res = mysql_query($qur);
$row = mysql_fetch_array($res,MYSQL_ASSOC); #here to line of the prob
?>Code: Select all
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/virtual/site13/fst/var/www/html/staff/upch.php on line 8