Page 1 of 1

MySQL question using phpMySql

Posted: Mon 9. Feb 2004, 02:01
by Bijan Hemati
It was just a silly question. :wink:

Posted: Mon 9. Feb 2004, 13:28
by pSouper
can you not use phpmyAdimin for this?
it's all in the GUI. nice and easy.
not really answering your question though :oops:

Posted: Tue 10. Feb 2004, 09:03
by DeXXus
How does it handle this:

Code: Select all

CREATE TABLE `puusers` ( 
`id` BIGINT(20) NOT NULL auto_increment, 
`puUsername` VARCHAR(50) NOT NULL default '', 
`puPassword` VARCHAR(50) NOT NULL default '', 
`puScreenName` VARCHAR(200) NOT NULL default '', 
`puMail` VARCHAR(255) NOT NULL default '', 
`puAdmin` TINYINT(4) NOT NULL default '0', 
PRIMARY KEY  (`id`), 
KEY (`id`),
KEY (`puAdmin`), 
KEY (`puScreenName`) 
) TYPE=MyISAM AUTO_INCREMENT=2;
INSERT INTO `puusers` 
VALUES (1, 'demo', 'demo', 'Web Demo User', 'demo@demo.com' , 1);

Posted: Tue 10. Feb 2004, 17:38
by Bijan Hemati
:lol: How did you get that?

I thought I deleted it! :lol:

Posted: Tue 10. Feb 2004, 17:56
by DeXXus
Bijan Hemati wrote::lol: How did you get that?

I thought I deleted it! :lol:
I had "copied" earlier and was sitting on that page, although away from machine... didn't even check for your response until too late! LOL :lol:

Posted: Tue 10. Feb 2004, 18:07
by Bijan Hemati
I think earlier version of MySQL gave these result;

KEY (`id`),
KEY (`puAdmin`),
KEY (`puScreenName`)

The newer version says INDEX Instead of KEY (I'm just guessing :) )

INDEX (`id`),
INDEX (`puAdmin`),
INDEX (`puScreenName`)

Posted: Tue 10. Feb 2004, 18:09
by DeXXus
Bijan Hemati wrote:I think earlier version of MySQL gave these result;

KEY (`id`),
KEY (`puAdmin`),
KEY (`puScreenName`)

The newer version says INDEX Instead of KEY (I'm just guessing :) )

INDEX (`id`),
INDEX (`puAdmin`),
INDEX (`puScreenName`)
Ahhh! Well you must have it solved if you reetracted your original. Good for you 8)