★ wanayoo — archive 1999 http://www.devshed.com/Talk/Forums/Forum5/HTML/001741.htmlNouvelle recherche | Portail wanayoo
DevShed Menu
* DevShed Home
* Developer News
* DevShed Brain Dump




UBBFriend: Email This Page to Someone!
  DevShed Discussion Forums
  PHP
  How to create a MySQL table with PHP?

Post New Topic  Post A Reply
profile | register | preferences | faq | search

next newest topic | next oldest topic
Author Topic:   How to create a MySQL table with PHP?
phil0
Junior Member
posted July 03, 2000 01:51 PM     Click Here to See the Profile for phil0   Click Here to Email phil0     Edit/Delete Message Reply w/Quote
How to create a MySQL table with PHP?

Shiju Rajan
Member
posted July 03, 2000 11:48 PM     Click Here to See the Profile for Shiju Rajan   Click Here to Email Shiju Rajan     Edit/Delete Message Reply w/Quote
that is very simple..

see an example...

<?php
$con=mysql_connect('localhost','yourusername','yourpassword');

mysql_select_db('yourdatabasename',$con);

$query="create table emp(ename varchar(30))";
mysql_query($query,$con);

echo "ok!! Table has created now \n";
?>

------------------
SR -
webshiju.com

"The fear of the LORD is the beginning of knowledge..."

[This message has been edited by Shiju Rajan (edited July 03, 2000).]

All times are MST (US)

next newest topic | next oldest topic

Administrative Options: Close Topic | Archive/Move | Delete Topic
Post New Topic  Post A Reply
Hop to:

Contact Us | DevShed.com

Copyright © 1997-2000 ngenuity. All rights reserved.

Powered by: Ultimate Bulletin Board, Version 5.41a
© Infopop Corporation (formerly Madrona Park, Inc.), 1998 - 1999.