Thread: Fatal Error :(

    #1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Mar 2000
    Posts
    2
    Rep Power
    0
    PHP General

    --------------------------------------------------------------------------------

    Subject: Fatal Error
    Author: Scott (209.0.198.2)
    Date: 28/03/2000 01:10

    ok, I got the input working. But now when I try and export the data from the database, I get this Fatal Error...

    Fatal error: Unable to open c rogram filesapache groupapachehtdocsoutput2.php3 in Unknown on line 0


    Here is the code that I wrote up, Its my first real script so I imagine the problem lays within. Here it is.

    <?
    /* script to output to screen all users preferring Apples to Oranges */

    /* declare some relevant variables */
    $hostname = "localhost";
    $username = "root";
    /*$password = "mypassword";*/
    $userstable = "table01";
    $dbName = "troubleticket";

    /* make connection to database */
    MYSQL_CONNECT($hostname, $username) OR DIE("Unable to connect to database");

    @mysql_select_db( "$dbName") or die( "Unable to select database");

    /* Select all users with the preference Apples */
    $query = "SELECT * FROM $userstable WHERE choice = '$Login'";

    $result = MYSQL_QUERY($query);

    /* How many of these users are there? */
    $number = MYSQL_NUMROWS($result);

    IF ($number == 0) :
    Print "No Users Found";
    ELSEIF ($number > 0) :
    Print "Users Found: $number";
    Print "Login ID: <input type="text" size="20" value="$Login">";
    Print "Password: <input type="text" size="20" value="$Password">";
    Print "Discription: <TEXTAREA NAME="comments" ROWS="4" COLS="40" Value="$Discription">";

    ENDIF;
    ?>


    If anyone has any recommendations please email me! Thanx in advance.
  2. #2
  3. Contributing User
    Devshed Novice (500 - 999 posts)

    Join Date
    Feb 2000
    Location
    Perth West Australia
    Posts
    757
    Rep Power
    15
    Is your code cut and pasted from your file?
  4. #3
  5. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Mar 2000
    Posts
    2
    Rep Power
    0
    Yea, That is the exact script that I used. Its my very first script of my own, so I suspect its just bad code. I basicly need someone who knows more of what there doing to take a gander at it.
  6. #4
  7. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Mar 2000
    Location
    Vienna, Austria
    Posts
    3
    Rep Power
    0
    That strange filename "filesapache groupapachehtdocsoutput2.php3" is maybe the reason. Apparently the slashes are missing and the whole expression should look like "files/apache group/apache/htdocs/output2.php3", right?

    Did you use backslashes () or normal ones (/) as separator. It's just an idea, but maybe it helps ...

    Bernhard

Similar Threads

  1. Replies: 4
    Last Post: March 4th, 2004, 09:44 AM
  2. PHP Error
    By xellos16 in forum PHP Development
    Replies: 3
    Last Post: February 17th, 2004, 03:38 AM
  3. Codepupil
    By Adachic in forum C Programming
    Replies: 3
    Last Post: February 6th, 2004, 06:50 PM
  4. I don't know what this error message means
    By lcham02 in forum Java Help
    Replies: 2
    Last Post: January 13th, 2004, 11:57 AM
  5. [php error] parse error | fatal error
    By xeoHosting in forum PHP Development
    Replies: 2
    Last Post: January 4th, 2004, 01:13 AM

IMN logo majestic logo threadwatch logo seochat tools logo