hi there ppl. i have this piece of code as i would like to get the data out of the database. <?php $dbhost = 'localhost'; $dbuser = '###'; $dbpass = '###'; $dbname = 'formresults'; $connection = mysql_connect($dbhost, $dbpass, $dbuser) or die(mysql_error()); $result = "select * from formflymetothemoon"; $row = mysql_query($result); ?> PHP: thing is this does not return anything <div class='namewidth'><?php echo $row['name']; ?></div> PHP: what am i idoing wrong here? when i try to use a while loop i get an error message <?php while($row = mysql_fetch_row($result)) { echo "<div class='namewidth'>"; echo $row['name']; echo "</div>"; } ?> PHP: this is the error i get: Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource in C:\wamp\www\formreview.php on line 105 PHP: do i need to have this located anywhere? <?php echo $row['id']?> PHP: