PHP Dummy code help.

Hey!
I’m a newbie to PHP/MySQL, but im learning :slight_smile:
I’ve created a form that submits data to a table and now i want a way to show ALL of the results on a webpage. I’m thinking that I might be able to use some forearch or while loop as the table posts all get an id. The code for the form can be found here (http://www.phphelp.com/forum/index.php/topic,12176.0.html).

Ive looked through the website but i havent found anything that matches my needs.
Please Help!

try this :

[php]<?php
$query = "SELECT * from order";
$query_execute = mysql_query($query);
?>

<?php while($rows = mysql_fetch_assoc($query_execute)){ ?> <?php } ?>
First Name Last Name Email Telephone Job Mobile
<?php echo $rowd['firstname'];?> <?php echo $rowd['lastname'];?> <?php echo $rowd['email'];?> <?php echo $rowd['telenr'];?> <?php echo $rowd['jobb'];?> <?php echo $rowd['antal'];?>
[/php]
Sponsor our Newsletter | Privacy Policy | Terms of Service