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.hostaddres s.com", "username", "password") or die(mysql_error ());
mysql_select_db ("support") or die(mysql_error ());
//Retrieves data from MySQL
$data = mysql_query("SE LECT * FROM profiles WHERE type_name = 'Patrons'") or die(mysql_error ());
//Puts it into an array
while($info = mysql_fetch_arr ay( $data ))
{
$text = $info['profile_detail '];
//Outputs the image and other data
Echo "<table width=100% class=table2><t r><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>Pr ofile:</b><b> ".$info['profile_name'] . "</b></td></tr><tr><td valign=top>".Sh ortenProfile($t ext)."</td>
<td valign=bottom>< a href=patrons_de tails.php?recor dID=".$info['id'] . " class=nav4>+Mor e</a></td></tr></table>";
}
?> </td>
</tr>
<tr>
<td align="right" valign="top" class="nav4"><a href="patrons_d etails.php?reco rdID=<?php echo $row_recordsetN ame['fieldName']; ?>" class="nav4">+M ore</a></td>
</tr>
</table></td>
</tr>
<tr>
<td align="right" valign="top"><a href="#" class="nav4">Ma ke Comment</a> | <a href="#" class="nav4">Su bmit Article</a> | <a href="#" class="nav4">Co ntact Us</a> </td>
</tr>
</table>
=============== =============== =============== =======
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.hostaddres s.com", "username", "password") or die(mysql_error ());
mysql_select_db ("support") or die(mysql_error ());
//Retrieves data from MySQL
$data = mysql_query("SE LECT * FROM profiles WHERE type_name = 'Patrons'") or die(mysql_error ());
//Puts it into an array
while($info = mysql_fetch_arr ay( $data ))
{
$text = $info['profile_detail '];
//Outputs the image and other data
Echo "<table width=100% class=table2><t r><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>Pr ofile:</b><b> ".$info['profile_name'] . "</b></td></tr><tr><td valign=top>".Sh ortenProfile($t ext)."</td>
<td valign=bottom>< a href=patrons_de tails.php?recor dID=".$info['id'] . " class=nav4>+Mor e</a></td></tr></table>";
}
?> </td>
</tr>
<tr>
<td align="right" valign="top" class="nav4"><a href="patrons_d etails.php?reco rdID=<?php echo $row_recordsetN ame['fieldName']; ?>" class="nav4">+M ore</a></td>
</tr>
</table></td>
</tr>
<tr>
<td align="right" valign="top"><a href="#" class="nav4">Ma ke Comment</a> | <a href="#" class="nav4">Su bmit Article</a> | <a href="#" class="nav4">Co ntact Us</a> </td>
</tr>
</table>
=============== =============== =============== =======
Comment