PHP Classes

Mysql Script

Recommend this page to a friend!

      PHP MySQL Authentication Class  >  All threads  >  Mysql Script  >  (Un) Subscribe thread alerts  
Subject:Mysql Script
Summary:I want to know where is the mysql script
Messages:2
Author:Alejandro
Date:2011-04-27 19:37:51
Update:2011-04-29 08:21:44
 

  1. Mysql Script   Reply   Report abuse  
Picture of Alejandro Alejandro - 2011-04-27 19:37:51
Hello Saquib,
I was tryng to use your PHP MySQL authentication Class but when I tried to connect to mysql i get an error, i'm using the port 3307, and I write in DB_HOST the value localhost:3307, but still get the same error.

Also, I was wondering where can i get the script to have the database you called "login" in DB_NAME and the DB_TABLE?

Thanks a lot for your help!.

  2. Re: Mysql Script   Reply   Report abuse  
Picture of Saquib Anwar Saquib Anwar - 2011-04-29 08:21:44 - In reply to message 1 from Alejandro
I think you should try the local server's ip address with the port.

e.g: 127.0.0.1:3307 in the DB_HOST.

and the script to generate the database table is:


CREATE TABLE `login` (
`username` VARCHAR( 30 ) NOT NULL ,
`password` TEXT NOT NULL
) ENGINE = InnoDB;

And thanks for asking. :)