Sql ergens uit halen

Installatie lukt niet? Plotseling een foutmelding. Of weet je niet hoe iets werkt. Problemen met phpBB2 kun je in dit archief opzoeken.
Forumregels

Sinds 1 januari 2009 wordt phpBB2 niet meer ondersteund.
Onderstaande informatie is verouderd en dient uitsluitend als archief.
phpBB2.0.x
Gesloten
Mandrake Linux
Berichten: 521
Lid geworden op: 29 jan 2004, 22:41
Contacteer:

Sql ergens uit halen

Bericht door Mandrake Linux » 05 sep 2004, 18:07

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

MCA[90]
Berichten: 8
Lid geworden op: 05 sep 2004, 17:28
Locatie: Alphen
Contacteer:

Bericht door MCA[90] » 05 sep 2004, 18:10

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

Mandrake Linux
Berichten: 521
Lid geworden op: 29 jan 2004, 22:41
Contacteer:

Bericht door Mandrake Linux » 05 sep 2004, 18:13

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`)
);

Gebruikersavatar
mosymuis
Berichten: 6940
Lid geworden op: 05 feb 2003, 14:00
Locatie: Amsterdam
Contacteer:

Bericht door mosymuis » 06 sep 2004, 01:56

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.

Gesloten