Pagina 1 van 1

Sql ergens uit halen

Geplaatst: 05 sep 2004, 18:07
door Mandrake Linux
hallo
$sql[] = "create table `phpbb_bank` (`id` INT UNSIGNED NOT NULL AUTO_INCREMENT, `name` CHAR (50) NOT NULL, `holding` INT (20) UNSIGNED DEFAULT '0', `totalwithdrew` INT (20) UNSIGNED DEFAULT '0', `totaldeposit` INT (20) UNSIGNED DEFAULT '0', `opentime` INT (20) UNSIGNED NOT NULL, `fees` CHAR (32) NOT NULL DEFAULT 'on', PRIMARY KEY(`id`), INDEX(`name`))";

kan iemand me hier de sql uit halen
ik kom steeds vast te zitten bij mun pre-mod 2

Alvast bedankt

Geplaatst: 05 sep 2004, 18:10
door MCA[90]
CREATE TABLE `phpbb_bank` (
`id` INT UNSIGNED NOT NULL AUTO_INCREMENT,
`name` CHAR (50) NOT NULL,
`holding` INT (20) UNSIGNED DEFAULT '0',
`totalwithdrew` INT (20) UNSIGNED DEFAULT '0',
`totaldeposit` INT (20) UNSIGNED DEFAULT '0',
`opentime` INT (20) UNSIGNED NOT NULL,
`fees` CHAR (32) NOT NULL DEFAULT 'on',
PRIMARY KEY(`id`),
INDEX(`name`))";

Zo iets?

(heb niet echt veel vstand van sql

Geplaatst: 05 sep 2004, 18:13
door Mandrake Linux
hmm

bedankt
ik zat vast met dat id
thnaks !!! :bier: :thumb:
CREATE TABLE phpbb_bank (
id INT UNSIGNED NOT NULL AUTO_INCREMENT,
name CHAR (50) NOT NULL,
holding INT (20) UNSIGNED DEFAULT '0',
totalwithdrew INT (20) UNSIGNED DEFAULT '0',
totaldeposit INT (20) UNSIGNED DEFAULT '0',
opentime INT (20) UNSIGNED NOT NULL,
fees CHAR (32) NOT NULL DEFAULT 'on',
PRIMARY KEY(`id`),
INDEX(`name`)
);

Geplaatst: 06 sep 2004, 01:56
door mosymuis
Tip: als je snel een query wilt krijgen uit een stuk code in phpBB moet je hem gewoon laten afdrukken op je scherm, zonder hem uit te voeren. Je plaatst dan dus iets als

Code: Selecteer alles

echo '<pre>';
print_r($sql);
echo '</pre>';
exit;
onder de query(s), net boven de mysql opdracht. Je kan hem dan gewoon van je scherm copiƫeren, inclusief de geplaatste variabelen.