link to another page
Posted: Sat Nov 11, 2006 8:55 am
ok, i have more info in my database i was just wondering when people click on the name of the business that match the criteria i want to take them to another page, if they want to know more about that business, for now i have a parser error i can't find the poblem and the second i am not that sure if i am doing the right thing
display
Parse error: parse error in c:\program files\easyphp1-8\home\townsfinder\business_display.php on line 165
line 165
Code: Select all
<?php
$host = "localhost";
$username = "localhost";
$password = "abc123";
$database = "contacts";
$Categories = addslashes ($_POST['Categories']);
$make = addslashes ($_POST['make']);
$type = addslashes ($_POST['type']);
if(!$Categories ||!$make||!$type)
{
echo "You have not enter all fields";
exit;
}
$db = mysql_connect($host, $username, $password);
mysql_select_db($database);
if(isset($_GET['Categories']))
{
$Categories = addslashes($_GET['Categories']);
}
else
{
echo("No Categories found.");
}
$query = "SELECT * FROM `business_info` WHERE `Categories` LIKE '%".$Categories."%'";
$result = mysql_query($query) or die (mysql_error());
$num_result = mysql_num_rows($result);
if($num_result <= 0)
{
echo("No Results found.");
exit;
}
echo "<p>Number of business found: ".$num_result."</p>";
while($row = mysql_fetch_array($result))
{
echo "<table>";
echo "<tr>";
echo "<td>";
echo ("<img src=\'{$Picture1}\' width=\'203\' height=\'152\'>");
echo "</td>";
echo "</tr>" ;
echo "<tr>";
echo "<td>";
echo "<hr>" ;
echo "<a href=" <?=$row ["includefiles/bizwebpage2.php"]?>"> <?= $row['BusinessName']?> </a> ";
<?
echo"</strong>";
echo "<br>";
echo ($row["Slogan"]);
echo "</strong><br>Address ";
echo (stripslashes($row["Business_Address"]));
echo "<br>State ";
echo (stripslashes($row["make"]));
echo "<br>City ";
echo (stripslashes($row["type"]));
echo "<br>Tel ";
echo (stripslashes($row["Tel"]));
echo "</p>";
echo "</td>";
echo "<td>";
echo "script here";
echo "</td>";
echo "</tr>";
echo "</table>";
}
?>Parse error: parse error in c:\program files\easyphp1-8\home\townsfinder\business_display.php on line 165
line 165
Code: Select all
echo "<a href=" <?=$row ["includefiles/bizwebpage2.php"]?>"> <?= $row['BusinessName']?> </a> ";