i'm having a problem with my script ... anybody pls help. i'm new in php
i want to use following url
http://www.sanha.org.z a/view1.php?id=1
the id=number part to search in database for its values and display online. i have the following script for view1.php
<?php
include(connect .php)
$id = $_GET['id'];
$search1 = "SELECT * FROM certified WHERE $id = 'certified.id'" ;
$result = mysql_query($se arch1);
while ($row = mysql_fetch_arr ay($result))
{
echo $row["CompanyNam e"];
echo "<br>";
}
?>
the script returns empty. what wrong am i doing ????
i want to use following url
http://www.sanha.org.z a/view1.php?id=1
the id=number part to search in database for its values and display online. i have the following script for view1.php
<?php
include(connect .php)
$id = $_GET['id'];
$search1 = "SELECT * FROM certified WHERE $id = 'certified.id'" ;
$result = mysql_query($se arch1);
while ($row = mysql_fetch_arr ay($result))
{
echo $row["CompanyNam e"];
echo "<br>";
}
?>
the script returns empty. what wrong am i doing ????
Comment