MySQL question using phpMySql

Post non-phpwcms related topics here - but I don't want to see "hey check this or that other cms". Post if you have a point or worthwhile comment, don't post just to increase you post count!
Post Reply
Bijan Hemati
Posts: 191
Joined: Sun 9. Nov 2003, 00:18
Location: Austin, TX

MySQL question using phpMySql

Post by Bijan Hemati »

It was just a silly question. :wink:
Last edited by Bijan Hemati on Tue 10. Feb 2004, 06:18, edited 2 times in total.
User avatar
pSouper
Posts: 1552
Joined: Tue 11. Nov 2003, 15:45
Location: London
Contact:

Post 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:
User avatar
DeXXus
Posts: 2168
Joined: Fri 28. Nov 2003, 06:20
Location: USA - Florida

Post 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);
Bijan Hemati
Posts: 191
Joined: Sun 9. Nov 2003, 00:18
Location: Austin, TX

Post by Bijan Hemati »

:lol: How did you get that?

I thought I deleted it! :lol:
User avatar
DeXXus
Posts: 2168
Joined: Fri 28. Nov 2003, 06:20
Location: USA - Florida

Post 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:
Bijan Hemati
Posts: 191
Joined: Sun 9. Nov 2003, 00:18
Location: Austin, TX

Post 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`)
User avatar
DeXXus
Posts: 2168
Joined: Fri 28. Nov 2003, 06:20
Location: USA - Florida

Post 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)
Post Reply