Results 1 to 2 of 2

Thread: shell access

  1. #1
    Join Date
    Apr 2004
    Posts
    2

    Unanswered: 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?!

  2. #2
    Join Date
    Mar 2004
    Posts
    480
    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •