Jump to content

jje

Moderators
  • Posts

    2,755
  • Joined

  • Last visited

  • Days Won

    10

Posts posted by jje

  1. 1. Although I do not have access to Internet Explorer at the moment, I have noticed an error with your code. In your HTML you start lots of <p> tags, but never end them with </p>. This could be the reason.

     

    2. Basically, you first need to create a MySQL Table in your database to store the information. To do this, go into your cPanel and click on phpMyAdmin. After selecting your database from the list on the left sidebar, click on the SQL tab at the top of the screen and enter the following code. Change it to suit your preferences.

    CREATE TABLE `movies` (
    `id` int(4) NOT NULL auto_increment,
    `name` varchar(65) NOT NULL default '',
    `director` varchar(65) NOT NULL default '',
    PRIMARY KEY (`id`)
    ) TYPE=MyISAM AUTO_INCREMENT=2;

     

    This will create the table with the column 'id' which is required and two more columns, 'name' and 'director'. Now, to insert a row, you will need to use a PHP script. Create a HTML form like this one where users can input the details:

    <form method=post action=add.php>
    Name: <input type=text name=name>
    Director: <input type=text name=director>
    <input type=submit name=Add Movie>
    </form>

     

    The above code will make a simple form. Feel free to style it in any way you can. Now create a new file called add.php with this code (fill in the gaps)

    <?php
    
    // Connect to the database
    mysql_connect('localhost', 'cmpadmin_user', 'password') or die('<h1>Cannot connect to database!</h1>');
    mysql_select_db('cmpadmin_dbname') or die('<h1>Cannot select database!</h1>');
    
    // Get the input and assign to variables
    $name = $_POST['name'];
    $director = $_POST['director'];
    
    // Randomly select an id
    $id = rand();
    
    // Insert the record into the database
    mysql_query("INSERT INTO `members` VALUES (".$id.", '".$name."', '".$director."')");
    ?>
    
    <html>
    <head>
    <title>Crazy Moon Pictures</title>
    </head>
    <body>
    <h1>Done.</h1>
    </body>
    </html>

     

    Now you can retrieve the records from the MySQL Database. ;)

  2. It as come to our attention that the signups for Johnny have been halted for an unknown reason. We are working as hard as we can to solve the matter quickly, but in the meantime all Queued accounts will remain in the Queued state until this issue has been resolved.

     

    For now, the status script will be displaying the same position number until this issue is resolved when you enter your details into the script, but the estimated dates of completion will increase over time.

     

    This issue has been identified and escalated:

    http://www.helionet.org/index/index.php?showtopic=9884

    Please keep all discussion related to the matter in that topic.

     

    Thank you for your cooperation :)

     

    -HelioHost Staff

     

     

    (closing topic since discussion should take place in the escalated topic mentioned above)

  3. I can still see your site:

    Deprecated: Assigning the return value of new by reference is deprecated in /home1/bob077/public_html/system/core/System.php on line 71

     

    Deprecated: Assigning the return value of new by reference is deprecated in /home1/bob077/public_html/system/core/System.php on line 131

     

    Notice: Undefined variable: system_settings in /home1/bob077/public_html/system/core/System.php on line 22

     

    Warning: array_merge() [function.array-merge]: Argument #1 is not an array in /home1/bob077/public_html/system/core/System.php on line 22

     

    Notice: Undefined variable: system_settings in /home1/bob077/public_html/system/core/System.php on line 22

     

    Warning: array_merge() [function.array-merge]: Argument #1 is not an array in /home1/bob077/public_html/system/core/System.php on line 22

     

    Warning: Cannot modify header information - headers already sent by (output started at /home1/bob077/public_html/system/core/System.php:71) in /home1/bob077/public_html/index.php on line 53

     

    Please clear your cache and flush your DNS if you still can't see your site.

  4. Oh yes, your site seems to be working now since I accessed it before. ;)

     

    If you still don't see it please clear your cache and flush your DNS.

     

    Follow these instructions based on your operating system to flush your DNS. Disregard the 'quotes'.

     

    On Windows XP:

    1. Click 'Start'

    2. Click 'Run'

    3. Type 'cmd.exe'

    4. Press ENTER or the OK button

    5. Type 'ipconfig /flushdns'

    6. Press ENTER

     

    On Windows 7/Vista:

    1. Click 'Start'

    2. Type in the search box 'cmd.exe'

    3. Click on the application that appears

    4. Type 'ipconfig /flushdns'

    5. Press ENTER

     

    On Mac OS X Leopard/Snow Leopard/Lion:

    1. Open your 'Applications' folder

    2. Open the 'Utilities' folder

    3. Open the 'Terminal' application

    4. Type 'lookupd -flushcache'

    5. Press ENTER

     

    On earlier versions of Mac OS X:

    1. Open your 'Applications' folder

    2. Open the 'Utilities' folder

    3. Open the 'Terminal' application

    4. Type 'dscacheutil -flushcache'

    5. Press ENTER

  5. I wonder if there is any possibility of extending storage limits ?

    Discussion on this topic is already taking place:

    http://www.helionet.org/index/index.php?showtopic=9751

     

    I would like to use SSH for unning perl and DRUSH scripts, creating symlinks, and general file management, And now specifically for the recreation of subdmains and URL aliasing, though I don't know the ins and outs of this.

    We do not offer SSH access to our users because of security risks. In order to offer SSH we would need to carry out lots and lots of security audits and patch up lots of holes. We do not want a repeat of the hacking of Johnny.

     

    P.S. I wonder if there is a place on the forum for users to compare notes and show off their efforts ?

    It would be good to browse the range of stuff put up on Heliohost.

    We have a topic for posting and commenting on websites here:

    http://www.helionet.org/index/index.php?showtopic=58

×
×
  • Create New...