Jump to content

help with php and database


Go to solution Solved by Jacques1,

Recommended Posts

i am haveing issues i am creating a sing up form and when i try and test it it gives this a error   

 

       
Fatal error: Uncaught Error: Call to undefined function mysql_connect() in C:\xampp\htdocs\website\includes\dbh.inc.php:8 Stack trace: #0 C:\xampp\htdocs\website\includes\signup.inc.php(5): include_once() #1 {main} thrown in C:\xampp\htdocs\website\includes\dbh.inc.php on line 8

file in question

https://drive.google.com/open?id=0B0plHoklub_Aemx1b2hLei12dkE

Link to comment
https://forums.phpfreaks.com/topic/304724-help-with-php-and-database/
Share on other sites

  • Solution

Read the manual. Can you see the big red warning sign which says that the function has been removed? This is not a joke. All mysql_* functions are absolete since almost 15(!) years. Whatever tutorial or book told you got this from, throw it away and look for recent information. We're using PDO now.

Edited by Jacques1
This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.