andy_b_1502 Posted May 12, 2012 Share Posted May 12, 2012 How do i get the page to echo a message after my user's have registered? i was thinking it goes under the query like this, am i correct?: $query ="INSERT INTO `companies` (company_name, what_services, website, contact_name, location, postcode, street1, street2, city, phone, email, premiumuser_description, username, password, salt, approved, upload) VALUES ('$company_name', '$what_services', '$website', '$contact_name', '$location', '$postcode', '$street1', '$street2', '$city', '$phone', '$email', '$premiumuser_description', '$username', '$password', '$salt', '$approved', '$upload')"; $result = mysql_query($query) or die(mysql_error()); if ($result) { echo('Thanks, your now registered'); using the if statement? any help would be appreciated, many thanks. Quote Link to comment Share on other sites More sharing options...
NLT Posted May 12, 2012 Share Posted May 12, 2012 $query ="INSERT INTO `companies` (company_name, what_services, website, contact_name, location, postcode, street1, street2, city, phone, email, premiumuser_description, username, password, salt, approved, upload) VALUES ('$company_name', '$what_services', '$website', '$contact_name', '$location', '$postcode', '$street1', '$street2', '$city', '$phone', '$email', '$premiumuser_description', '$username', '$password', '$salt', '$approved', '$upload')"; $result = mysql_query($query) or die(mysql_error()); if ($result) { echo "Thanks, you have now been registered"; } That should work fine. Quote Link to comment Share on other sites More sharing options...
andy_b_1502 Posted May 12, 2012 Author Share Posted May 12, 2012 thank you Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.