/    Sign up×
Community /Pin to ProfileBookmark

how can i create table in my sql through php?

have not installed mysql in my pc , i install only xampp, i want to create table

like the following code

CREATE TABLE customer
(lastName VARCHAR(30)
,firstName VARCHAR(30)
,emailAddress VARCHAR(100)
);

plz give me the codinig in php for creating the above table

to post a comment
PHP

3 Comments(s)

Copy linkTweet thisAlerts:
@Stephen_PhilbinOct 13.2005 — [code=php]
mysql_query("CREATE TABLE customer
(lastName VARCHAR(30)
,firstName VARCHAR(30)
,emailAddress VARCHAR(100)
)");
[/code]
Copy linkTweet thisAlerts:
@cwrathOct 13.2005 — nile, XAMPP will install MySQL for you

go to http://127.0.0.1/xampp/

and click on phpMyAdmin

a program which makes creating stuff in mysql a lot easier.
Copy linkTweet thisAlerts:
@nile1483authorOct 13.2005 — thanku for replyin to all friends
×

Success!

Help @nile1483 spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.16,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @nearjob,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,
)...