Helo, please is there anyone who can help out with this; I have a script that displays details from a MYSQL database and a File Server containing images.
Here is the code below:
My problem is: I want to display the details of $text = $info['profile_detail']; in a details page but its not coming up at all. It just displays an empty page. I have set the page record set. but it still not working.
================================================
<table width="100%" border="0" cellpadding="5" cellspacing="0" class="table2">
<tr valign="top">
<td><table width="100%">
<tr>
<td align="left" valign="top">
<?php
// Connects to your Database
//mysql_connect("your.hostaddress.com", "username", "password") or die(mysql_error());
mysql_select_db("support") or die(mysql_error());
//Retrieves data from MySQL
$data = mysql_query("SELECT * FROM profiles WHERE type_name = 'Patrons'") or die(mysql_error());
//Puts it into an array
while($info = mysql_fetch_array( $data ))
{
$text = $info['profile_detail'];
//Outputs the image and other data
Echo "<table width=100% class=table2><tr><td valign=top rowspan=2><img src=C:/Inetpub/wwwroot/sites/supportbridges/www/profile/".$info['profile_photo'] ."></td>";
Echo "<td valign=top colspan=2><b>Profile:</b><b> ".$info['profile_name'] . "</b></td></tr><tr><td valign=top>".ShortenProfile($text)."</td>
<td valign=bottom><a href=patrons_details.php?recordID=".$info['id'] . " class=nav4>+More</a></td></tr></table>";
}
?> </td>
</tr>
<tr>
<td align="right" valign="top" class="nav4"><a href="patrons_details.php?recordID=<?php echo $row_recordsetName['fieldName']; ?>" class="nav4">+More</a></td>
</tr>
</table></td>
</tr>
<tr>
<td align="right" valign="top"><a href="#" class="nav4">Make Comment</a> | <a href="#" class="nav4">Submit Article</a> | <a href="#" class="nav4">Contact Us</a> </td>
</tr>
</table>
================================================== ==