and i though i found a great code for displaying random photo from MySQL database...
it works perfect in a separate file
but when i put it into file.php
it always sais i have a parse error in line 34!
the code of my concern starts with "mysql_connect('localhost'..."
<?
require ("page.inc");
$homepage = new Page();
$homepage -> SetContent(
"<table width=\"100%\" align=\"center\" background color=\"white\" border=0 cellspacing=0 cellpadding=20>
<tr valign=\"top\"><td>
<table width=\"65%\" border=\"0\" cellspacing=0 cellpadding=0 valign=\"top\">
<tr valign=\"top\">
<td><p valign=\"top\"> <br>Welcome!</p></td>
</tr>
<tr><td><br><form action=\"\" method=\"post\">
<p class=\"header\">Search</p>
From:<input type=text size=\"5\">
To:<input type=text size=\"5\">
<br><br>
<INPUT TYPE=\"button\" VALUE=\"Search\"
style=\"font-family:Georgia, Times New Roman, Times, serif; font-size:12pt; background:99cc99;\">
</form>
</td></tr>
</table>
</td>
<td>
<table width=\"35%\" border=0 cellspacing=0 cellpadding=0 align=\"right\">
<tr valign=\"top\">
<td>".
mysql_connect('localhost', 'photo_database', 'password');
mysql_select_db('bride');
// Edit this number to however many links you want displaying
$num_displayed = 1;
// Select random rows from the database
$result = mysql_query ("SELECT * FROM photos ORDER BY RAND() LIMIT $num_displayed");
// For all the rows that you selected
while ($row = mysql_fetch_array($result))
{
echo ("<img src='.$row["photo"].' border=0 alt='.$row["brideid"].'></a>");
}
."</td></tr>
</td>
</tr>
</table>
</td>
</tr>
</table>");
$homepage -> Display();
?>