I'm having trouple viewing my emial address that have been saved in to mysql database how can i sort this here is my code there is no error showing in this code.
http://www.prksoft.com/testview.php
mysql info
PHP Code:<?php
$dbhost='localhost';
$dbuser='USERNAME';
$dbpass='PASSWORD';
$conn=mysql_connect($dbhost, $dbuser, $dbpass)
or die('Could not connect to mysql');
$dbname='prksoft_newsletter';
mysql_select_db($dbname);
?>
This is the textview code
PHP Code:<?php
include "db_connect.php";
$conn=mysql_connect($dbhost, $dbuser, $dbpass)
or die('Could not connect to mysql');
$sql = "select * from $newsletter";
$result = mysql_query($sql);
while($row=mysql_fetch_array($result)){
?>
<table width="400" border="1" align="center">
<tr>
<td width="63"><strong>Email Address</strong></td>
<td width="8"><strong>:</strong></td>
<td width="307"><? echo $rows['address']; ?></td>
</tr>
</table>
<p> </p>




Reply With Quote