|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
AT&T devCentral & BlackBerry(r) Webcast Series: BlackBerry and GPS -Build Location Awareness into your BlackBerry Applications, July 10th-1:00PM EST. Register Today!
|
|
#1
|
|||
|
|||
|
Creating tables, if no errors display X message.. help!
Well, how do i do what i said in the topic title, here is the code i wrote. i have an idea of how to do what i have in mind but i dont want to mess it up. Can someone help me as i am still a n00b... :-/
CODE: <b> <? //DO NOT EDIT BELOW THIS LINE!!! include_once("db_connect.php"); $create_rtable = mysql_query(" create table reviews ( reviewID int(4) NOT NULL auto_increment, reviewmenut varchar(255) NOT NULL, review text , reviewtitle varchar(250) , PRIMARY KEY (reviewID), KEY contenttitle (reviewtitle) ) "); $create_ptable = mysql_query(" create table previews ( previewID int(4) NOT NULL auto_increment, previewmenut varchar(255) NOT NULL, preview text , previewtitle varchar(250) , PRIMARY KEY (previewID), KEY contenttitle (previewtitle) ) "); $create_atable = mysql_query(" create table previews ( articleID int(4) NOT NULL auto_increment, articlemenut varchar(255) NOT NULL, article text , articletitle varchar(250) , PRIMARY KEY (articleID), KEY contenttitle (articletitle) ) "); $create_itable = mysql_query(" create table previews ( iID int(4) NOT NULL auto_increment, imenut varchar(255) NOT NULL, i text , ititle varchar(250) , PRIMARY KEY (iID), KEY contenttitle (ititle) ) "); ?> <B> |
|
#2
|
|||
|
|||
|
RE: Creating tables, if no errors display X message.. help!
Forget the b, i wanted it to be bold, oh well.
|
|
#3
|
|||
|
|||
|
RE: Creating tables, if no errors display X message.. help!
mysql_query() returns TRUE on success. Check the manual.
|
|
#4
|
|||||
|
|||||
|
RE: Creating tables, if no errors display X message.. help!
something like:
php Code:
Cheers, Keith. |
![]() |
| Viewing: Codewalkers Forums > PHP Related > PHP Coding > Creating tables, if no errors display X message.. help! |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|
|
|