Beheerder |
|
<?php
CREATE TABLE `leden` (
`userId` int(11) NOT NULL auto_increment,
`userName` varchar(255) NOT NULL default '',
`userPass` varchar(255) NOT NULL default '',
KEY `userId` (`userId`)
) TYPE=MyISAM
INSERT INTO `leden` ( `userId` , `userName` , `userPass` )
VALUES (
'', 'SickBoy', 'ab4f63f9ac65152575886860dde480a1'
);
?>
<?php CREATE TABLE `leden` ( `userId` int(11) NOT NULL auto_increment, `userName` varchar(255) NOT NULL default '', `userPass` varchar(255) NOT NULL default '', ) TYPE=MyISAM INSERT INTO `leden` ( `userId` , `userName` , `userPass` ) VALUES ( '', 'SickBoy', 'ab4f63f9ac65152575886860dde480a1' ); ?>
Hier twee aparte query's van maken
<?php
$sQuery1 = "CREATE TABLE `leden` (
`userId` int(11) NOT NULL auto_increment,
`userName` varchar(255) NOT NULL default '',
`userPass` varchar(255) NOT NULL default '',
PRIMARY KEY `userId` (`userId`)
) TYPE=MyISAM;";
$sQuery2 = "INSERT INTO `leden` ( `userId` , `userName` , `userPass` )
VALUES (
'', 'SickBoy', 'ab4f63f9ac65152575886860dde480a1'
);";
mysql_query($sQuery1) or die('Fout in query 1: ' . mysql_error());
mysql_query($sQuery2) or die('Fout in query 2: ' . mysql_error());
?>
<?php $sQuery1 = "CREATE TABLE `leden` ( `userId` int(11) NOT NULL auto_increment, `userName` varchar(255) NOT NULL default '', `userPass` varchar(255) NOT NULL default '', PRIMARY KEY `userId` (`userId`) ) TYPE=MyISAM;"; $sQuery2 = "INSERT INTO `leden` ( `userId` , `userName` , `userPass` ) VALUES ( '', 'SickBoy', 'ab4f63f9ac65152575886860dde480a1' );"; ?>
En bekijk de functies die ik gebruik ook ff |