PHP Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsProgramming LanguagesPHP Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old March 28th, 2000, 12:53 PM
ScottC ScottC is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2000
Posts: 2 ScottC User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via ICQ to ScottC
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.

Reply With Quote
  #2  
Old March 29th, 2000, 07:15 AM
firepages's Avatar
firepages firepages is offline
Contributing User
Dev Shed Novice (500 - 999 posts)
 
Join Date: Feb 2000
Location: Perth West Australia
Posts: 757 firepages User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 4 h 18 m 32 sec
Reputation Power: 14
Is your code cut and pasted from your file?

Reply With Quote
  #3  
Old March 29th, 2000, 11:07 AM
ScottC ScottC is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2000
Posts: 2 ScottC User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via ICQ to ScottC
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.

Reply With Quote
  #4  
Old April 7th, 2000, 08:00 AM
BMager BMager is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2000
Location: Vienna, Austria
Posts: 3 BMager User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation 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


Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming LanguagesPHP Development > Fatal Error :(

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap