issue posting customer info to database
I was following along with the tutorial at https://www.inmotionhosting.com/support/edu/website-design/using-php-and-mysql
I've set up the database and table using MySQL Wizard and phpMyAdmin.
I've put together the following 4 php files as instructed:
1. formcode_2.php
2. manage_customer_info.php
3. page1_B.php
4. page2_B.php
When I go the mySite.com/page1_B.php URL I'm able to input my customer information into the fields, and when I click on Submit I get the Thank You message.
The problem that I'm having is that when I go back to phpMyAdmin to see if the information that I entered, the table isn't showing any results. All it says is "MySQL returned an empty result set (i.e. zero rows)."
In the $con = mysql_connect line of my "manage_customer_info.php" file I have "localhost" as the server.
Does anyone know why the information that I entered isn't getting posted on the database?
Thanks,
Alex
I've set up the database and table using MySQL Wizard and phpMyAdmin.
I've put together the following 4 php files as instructed:
1. formcode_2.php
2. manage_customer_info.php
3. page1_B.php
4. page2_B.php
When I go the mySite.com/page1_B.php URL I'm able to input my customer information into the fields, and when I click on Submit I get the Thank You message.
The problem that I'm having is that when I go back to phpMyAdmin to see if the information that I entered, the table isn't showing any results. All it says is "MySQL returned an empty result set (i.e. zero rows)."
In the $con = mysql_connect line of my "manage_customer_info.php" file I have "localhost" as the server.
Does anyone know why the information that I entered isn't getting posted on the database?
Thanks,
Alex