767 users online
223498 members
1211 active today
Advertise Here
Photos
|
Quizzes
|
LiveSecret
|
Memberlist
|
Dictionary
|
News
|
FAQ
Member Spotlight
Eye Of The Storm
Cool Things:
flames
Mood:
Sleepy
You have 1 new
message
.
Emergency Help
Until you sign up you can't do much. Yes, it's free.
Sign Up Now
Membername:
Password:
Already have an account?
►
Invite Friends
►
Active Members
►
Groups
►
Contests
Moderators
4 online / 41 MPM
World AIDS Day
Fresh Topics
I dont get what he sees lol
Procrastination is like masturbation
I have been freaking out about pregnancy tests all day.
My friend saluted at my nipples
GWB "shoe thrower" gets a taste of his own medicine.....
La Rage
I wish we could only half block someone
Erection during french kissing... normal???
Honestly...I totally didn't get it at first.
37 minutes.
Kodak printer problem
Point for me!
true or false?
i'm scared..
Favorite drink when your feeling a little "Fruuuuity"
I fuck mermaid penises
What grade did you start puberty in?
Twilight: New Moon
1999 was a good year for film
Skittles or m&m's
How can I tell my...
More Fresh Topics
LiveWire
/
Technical Forums
/
Web Design & Search Engine Optimization
/ Adding Reply
Quoting Post
Archived Topic:
It will not be bumped to the top of the forum.
Topic
PHP/MySQL Help.
Membername
Not a member?
Sign Up Free
(takes 20 seconds)
Password
Forgotten your password?
Post
Font:
Verdana
Arial Black
Georgia
Comic Sans
Impact
Size:
Tiny
Normal
Big
Huge
Color:
Default
Dark Red
Red
Orange
Brown
Green
Olive
Cyan
Blue
Dark Blue
Indigo
Black
[
Check Spelling
] [
Post Preview
] [
LiveTags
]
Quote: from [m]allsmiles[/m] at 9:17 am on Mar. 26, 2008[quote]It needs to be [code] <?php mysql_connect('serveraddress','username','password'); mysql_query("CREATE DATABASE testdb"); ?> [/code][/quote]
FAQ Keyword Search:
Post Options
Favorites Manager
Notify me of new replies to this topic
by email
Notify me of new replies to this topic
by private message
Original Post
RossTheHoss69
Posted at 5:53 pm on Mar. 25, 2008
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?
Replies
PiXiE
Posted at 9:21 am on Mar. 26, 2008
mysql =/= php. That is why you need mysql_query().
allsmiles
Posted at 9:17 am on Mar. 26, 2008
It needs to be
Code:
<?php
mysql_connect('serveraddress','username','password');
mysql_query("CREATE DATABASE testdb");
?>
All 2 previous replies displayed.
Tooltip