( RossTheHoss69 )
The Goddamn Batman. Patron Tech Support Leader
Okay, anytime I create a PHP file to try and make a new MySQL database using the line:
Code:
<?php CREATE DATABASE testdb; ?>
I get: Parse error: syntax error, unexpected T_STRING in C:\xampp\htdocs\xampp\69.php on line 3. I'm using Apache. Help? Why am I getting this message?
------- I'm not changing this line until I get a girlfriend. [7-08-07; 1:26 a.m.] Shït. Piss. Fück. Cünt. Cocksucker. Motherfücker. And Tits. R.I.P George Carlin.
5:53 pm on Mar. 25, 2008 | Joined: Dec. 2005 | Days Active: 959 Join to learn more about RossTheHoss69Texas, United States | Male | Posts: 5,607 | Points: 30,482
------- When they leave me, they're all smiles. When they leave you, they're in tears.
9:17 am on Mar. 26, 2008 | Joined: Aug. 2007 | Days Active: 564 Join to learn more about allsmilesEngland, United Kingdom | Male | Posts: 8,800 | Points: 15,765
PiXiE
24.24.1.1358 Patron
mysql =/= php. That is why you need mysql_query().
9:21 am on Mar. 26, 2008 | Joined: July 2002 | Days Active: 1,663 Join to learn more about PiXiEAlberta, Canada | StraightFemale | Posts: 4,837 | Points: 34,868