I am trying to connect to mysql in php? [closed]

0

Good afternoon

I am trying to connect mysql to php, as it is generating the following error "Call to undefined function mysql_conect ()", someone please help me

    
asked by anonymous 01.07.2014 / 22:16

1 answer

1

I have missed an n, instead of connect it would be connect mysql_connect(blabla); , besides I should warn you in future versions of PHP < in> your code will no longer work, and if you are working for a client, this will be bad, since mysql_connect has been discontinued (it will be removed in the future), in addition it is more insecure.

I suggest that you start using mysqli or PDO , basic tutorial links:

  

link (mysqli)

     

link (PDO)

I hope I have helped.

    
01.07.2014 / 22:23