Free Web Hosting Forum
(#1 (permalink))
Old
Junior Member
duchaine is on a distinguished road
 
Posts: 14
Join Date: Apr 2011
Default createtables.php to sql file? - 09-25-2011, 08:53 PM

Hi!!

This file does not work


yadayada.com/createtables.php (goes on end of url)


BUT, can the file (a portion shone here) be made into a sql file that I can import?

That would solve my problem,
Thanks, duchaine

Code:
<html>
<head>
<title>Powerline Site - Creat Tables</title>
</head>
<body>
<center>
<HR>

<TABLE BORDER="1" CELLPADDING="0" CELLSPACING="0" WIDTH="85%">
 <tr>
  <td>
<font face="Verdana" size=2 color="navy">
<b>
<center>Creation of Tables for Powerline Site</center><HR>
<?php
  // CONNECTING TO DATABASE
 include "dbconfig.php";

$sql="create table users
(
   ID int unsigned not null auto_increment primary key,
   Name varchar(75),
   Address varchar(175),
   City varchar(75),
   State varchar(75),
   Zip varchar(15),
   Country varchar(75),
   Email varchar(75),
   Username varchar(75),
   Password varchar(75),
   active int unsigned not null,
   ref_by varchar(75),
   IP varchar(25),
   Date datetime,
   status int unsigned not null,
   Total float(8,2),
   Unpaid float(8,2),
   Paid float(8,2),
   RDate datetime
)";
if(mysql_query($sql))
{
 print " Table Created : users <br>";
}
else
there's more code.

Last edited by duchaine; 09-26-2011 at 02:14 AM.
Reply With Quote
Sponsored Links
(#2 (permalink))
Old
Zentharus's Avatar
Senior Member
Zentharus is on a distinguished road
 
Posts: 296
Join Date: Sep 2011
Default 09-26-2011, 01:43 AM

Duchaine
Use
<CODE>
</CODE> but instead of <> use []



if you would like to talk to me about pretty much anything please message me

Reply With Quote
(#3 (permalink))
Old
Junior Member
duchaine is on a distinguished road
 
Posts: 14
Join Date: Apr 2011
Default 09-26-2011, 02:04 AM

Zentharus,

Like so?

Thanks,
duchaine
Reply With Quote
(#4 (permalink))
Old
Zentharus's Avatar
Senior Member
Zentharus is on a distinguished road
 
Posts: 296
Join Date: Sep 2011
Default 09-26-2011, 02:05 AM

Yea And then paste he entire code in the box and remove the part that says it's too long to post etc



if you would like to talk to me about pretty much anything please message me

Reply With Quote
(#5 (permalink))
Old
Junior Member
duchaine is on a distinguished road
 
Posts: 14
Join Date: Apr 2011
Default 09-26-2011, 02:17 AM

...gotta say there is more to it.

I eventually catch on. :/

duchaine
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Forum Jump



Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.5.2
vBulletin Skin developed by: vBStyles.com