380 users online
225521 members
299 active today
Advertise Here
Photos
|
Quizzes
|
LiveSecret
|
Memberlist
|
Dictionary
|
News
|
FAQ
Member Spotlight
sugarandspice1997
Favs:
movies= AVATAR!! and the proposal and st...
Mood:
Flirty
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
1 online / 69 MPM
Fresh Topics
recurring nightmare
There is only 1 way to live.
Lewd/Lascivious Acts
How to?!?!!??
EEG and I'm tired
The chipmunks
how do you get anon credits?
what can i do?
Is this REALLY liking me for who I am?
My sister is refusing to get out of bed...
if i install windows
Is it bad
feeling like you'll love the boy you had all your firsts with forever.
Has this ever happened...(Orgasm)
Legallizing Pot
wet, fingering
I just got turned on hardcore
guys who are hot
Weird things
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]RossTheHoss69[/m] at 5:53 pm on Mar. 25, 2008[quote]Okay, anytime I create a PHP file to try and make a new MySQL database using the line: [code] <?php CREATE DATABASE testdb; ?> [/code] I get: [b]Parse error[/b]: syntax error, unexpected T_STRING in [b]C:\xampp\htdocs\xampp\69.php[/b] on line [b]3[/b]. I'm using Apache. Help? Why am I getting this message?[/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