i have a script that works fine for years and suddenly i face this problem : please check the code and mend any solutionplease. any kind of help willbe appreciated.
Notice: Undefined variable: ids in /home/content/a/t/a/ataasaid1/html/category.php on line 4
Notice: Undefined variable: id in /home/content/a/t/a/ataasaid1/html/category.php on line 5
Notice: Use of undefined constant image - assumed 'image' in /home/content/a/t/a/ataasaid1/html/category.php on line 11
Notice: Use of undefined constant video - assumed 'video' in /home/content/a/t/a/ataasaid1/html/category.php on line 15
Notice: Use of undefined constant sound - assumed 'sound' in /home/content/a/t/a/ataasaid1/html/category.php on line 19
the code in file category.php is :
<?
error_reporting(E_ALL | E_STRICT);
ini_set("display_errors", 1);
$id1=$ids;
$id2=$id;
include('config.php');
$result= mysql_query("SELECT * FROM products where id like '$id1' ;");
$row=mysql_fetch_array ($result);
$type=$row['type'];
if($type==image)
{
include('categories.php');
}
else if($type==video)
{
include('categories2.php');
}
else if($type==sound)
{
include('categories3.php');
}
?>
i use the url like:
/category.php?id=64&ids=305
thank you in advanced