I'm lost, how can I add a href to one of my selection results in php5. Here is part of my code along with what I think it should be. I'm getting a parse error, unexpected T_STRING:
if($stmt = $mysqli->prepare($sql))
{
/ execute our SQL query /
$stmt->execute();
/ bind the results /
$stmt->bind_result($id, $comp_name, $comp_address, $comp_city);
/ loop over the result set /
while ($stmt->fetch())
{
/ echo our table rows /
echo '<tr><td>echo("<A HREF='view_company_project.php?comp_id=.$id.'>")</td><td>'.$comp_name.'</td><td>'.$comp_address.'</td><td>'.$comp_city.'</td></tr>';
}
}
thanks for any help you can provide.
A