If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > MySQL > shell access

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 04-11-04, 11:45
shrinky shrinky is offline
Registered User
 
Join Date: Apr 2004
Posts: 2
shell access

Im trying to make it so i can hae shell access and at my hosting help place it said to use this

CODE :

$link = mysql_connect("localhost", "shrinky_shrinky", "shrinky_******") or die(mysql_error());
mysql_select_db("shrinky_shell", $link) or die(mysql_error());
$query = mysql_query("CREATE TABLE 'user' ( 'name' VARCHAR (20), 'password' VARCHAR (20), 'ID' INT NOT NULL AUTO_INCREMENT, PRIMARY KEY (ID))", $link) or die(mysql_error());
if ($query) echo "Table Created";
?>

Well is there ne thing wrong with what i am doing??? because i when i go to the php site with that code in it its supposed to say Tabe Created, but i jsut see all that code there.

Any suggestions?!
Reply With Quote
  #2 (permalink)  
Old 04-12-04, 13:13
guelphdad guelphdad is offline
Registered User
 
Join Date: Mar 2004
Posts: 440
Silly question but you did begin your code with

<?php

right? I'm asking just in case you forgot it.

If you didn't do you know that your host has php enabled? If they don't that is one reason you will see your code as plain text.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On