Hi all,
i tried this code but its giving error
fatal error: Call to undefined function equals() in D:\xampp\htdocs\demo\contractor_new.php on line 152
<?php
include 'database.php';
if(category.equals("sercategory"))
{
$result = mysql_query("SELECT * FROM service_category ");
while($row = mysql_fetch_array($result))
{
echo $row['servicec'];
echo "<br />";
}
}
else
{
echo 'error';
}
if(category.equals("servicetype"))
{
$result = mysql_query("SELECT * FROM service_type ");
while($row = mysql_fetch_array($result))
{
echo $row['servicet'];
echo "<br />";
}
}
else
{
echo 'error';
}
mysql_close();
?>