I had to create a database with a customer table table etc and then insert and retrieve data - I have that all working OK with the output showing correctly on the php page, but I have been asked to generate a HTML page to display the automatically generated orderid…?
I have used a HTML page to build the form and then a separate php page. My HTML page has: and I am using this php for the output:-
//fetch and display results
while ($row = mysql_fetch_array($results)) {
echo “
Given Name: $row[gname]
”;echo “
Family Name: $row[fname]
”;echo “
Email: $row[email]
”;echo “
Order no: $row[orderid]
”;echo “
You ordered $row[quantity] $row[item].
”;echo “
Thank you for ordering from Art Supplies!
”;}
Can anyone please tell me how I am suppose to generate a HTML page to view the orderid thanks.