Two related questions:
In the code below, I am trying to select specific fields from specific tables. I can't quite remember what the right format is for doing this (this is the photoStory1.story1head bit)
Also, I have a database field with a url e.g. http:www.domain.com/images/front.jpg
I am not clear on the format I should use in the php to incorporate an img src into the php.
Any help would be wonderful
<?php
$db->select_db(george);
$query = "SELECT * FROM photoStory1, development";
$result = $db->query($query);
$num_results = $result->num_rows;
/*echo"<br />Number of locations: ".$num_results."</p>";*/
for ($i=0; $i <$num_results; $i++) {
//process results
$row = $result->fetch_assoc();
echo "<tr>
<td>".($row['development.building'])."</td>
<td>".($row['photoStory1.story1head'])."</td>
<td>"."<img src=\"".($row['story1link'])."\"/></td>
</tr>";
}
?>