
March 28th, 2000, 12:53 PM
|
|
Junior Member
|
|
Join Date: Mar 2000
Posts: 2
Time spent in forums: < 1 sec
Reputation 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 URLrogram 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.
|