RE: [PHP] mysql problems

2002-03-12 Thread Narvaez, Teresa
I agree with Hugh. I think it is always a good idea to check for return values of any function call. So, I'd replace this line: $result = mysql_query("select * from table"); with $result = mysql_query("select * from table"); or die("Unable to connect to SQL server

RE: [PHP] Re: Can't display PNG images

2002-03-12 Thread Narvaez, Teresa
Thank you so much for your responses. Thanks for any response! I now the GD libraries with PNG support. However, the image is still broken. I looked at the apache server error log and this is what showed up when I run zero.php(See below): libpng warning: Application was compiled with png.h f

[PHP] Can't display PNG images

2002-03-11 Thread Narvaez, Teresa
Hello, Background info: I'm running o PHP 4.1.1 on a linux server kernel(2.2.16). o Using Netscape Communicator 4.75 o Compiled and installed the gd(1.8.4) library Problem(2 problems): 1.- The following code won't display an image(I get an ic

RE: [PHP] Unable to display images on browser

2002-03-01 Thread Narvaez, Teresa
; echo $fileContent; } else { echo "Record does not exist"; } // else ?> -Original Message- From: Andrew Brampton [mailto:[EMAIL PROTECTED]] Sent: Friday, March 01, 2002 5:08 PM To: Narvaez, Teresa; [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Re: [PHP] Unable to display images on browser

RE: [PHP] Unable to display images on browser

2002-03-01 Thread Narvaez, Teresa
ot;); $im = ImageCreateFromString ($fileContent); ImageGif ($im); and then remove this line: echo $fileContent; That should do it. /Joakim -Original Message----- From: Narvaez, Teresa [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 27, 2002 8:32 PM To: '[EMAIL PROTECTED]'; [EMAIL PROTECTE

RE: [PHP] Unable to display images on browser

2002-02-27 Thread Narvaez, Teresa
ge.php (the ---end getimage.php Good Luck /Joakim > -Original Message- > From: Narvaez, Teresa [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, February 27, 2002 2:08 AM > To: 'Dean Householder'; [EMAIL PROTECTED] > Subject: [PHP] Unable to display images on

[PHP] Unable to display images on browser

2002-02-26 Thread Narvaez, Teresa
Hello, I do not understand why I can't display images retrieved from MySQL on my browser(IE 4.0). When I retrieve the image from MYSQL I set the Header function to change the type of content(image/gif) I am sending to the browser. However, the browser displays an box with an X in it. I

RE: [PHP] Re: NULL value for variable

2002-02-21 Thread Narvaez, Teresa
file.php > -Original Message- > From: Lars Torben Wilson [SMTP:[EMAIL PROTECTED]] > Sent: Thursday, February 21, 2002 1:52 PM > To: Andrey Hristov > Cc: Narvaez, Teresa; [EMAIL PROTECTED] > Subject: Re: [PHP] Re: NULL value for variable >

RE: [PHP] Re: NULL value for variable

2002-02-21 Thread Narvaez, Teresa
I comment it out but I got this error: Warning: Undefined variable: fileId in /home/narvaez/public_html/ddownloadfile.php on line 22 Could not get file list: You have an error in your SQL syntax near '' at line 1 Thanks for any help!. -Original Message- From: Sanduhr [mailto:[EMAIL PR

[PHP] NULL value for variable

2002-02-20 Thread Narvaez, Teresa
Hello, I am runnig php 4.1.1. In the configuration, register_globals is ON. I have two programs and I want to pass the value from fileId from one.php to downloadfile.php. However, in downloadfile.php $fileId is NULL. What am I missing? Thanks, -Teresa one.php

RE: [PHP] NULL Apache environment variables

2002-02-18 Thread Narvaez, Teresa
, February 18, 2002 6:45 PM To: Narvaez, Teresa Cc: [EMAIL PROTECTED] Subject: Re: [PHP] NULL Apache environment variables On Monday, February 18, 2002, at 06:11 PM, Narvaez, Teresa wrote: > The function call phpinfo() shows register_globals=off for master and > local > value on my s

RE: [PHP] NULL Apache environment variables

2002-02-18 Thread Narvaez, Teresa
[mailto:[EMAIL PROTECTED]] Sent: Monday, February 18, 2002 5:58 PM To: Lars Torben Wilson Cc: Narvaez, Teresa; [EMAIL PROTECTED] Subject: Re: [PHP] NULL Apache environment variables On Monday, February 18, 2002, at 05:44 PM, Lars Torben Wilson wrote: > On Mon, 2002-02-18 at 08:56, Narvaez, Ter

[PHP] PHP_SELF Undefined

2002-02-18 Thread Narvaez, Teresa
When I execute the code below, why is PHP_SELF undefined? I will appretiate any help on this. I can get its value by: echo $_SERVER["PHP_SELF"];Thanks in advance! -Teresa Feedback Your Name: Your E-Mail Address: Your Message: "; ?>

RE: [PHP] NULL Apache environment variables

2002-02-18 Thread Narvaez, Teresa
Thank you ... that worked! I did not know this because I looked at a sample in www.php.net and the sample fails to call getenv(). Thanks! -Teresa -Original Message- From: Neil Freeman [mailto:[EMAIL PROTECTED]] Sent: Monday, February 18, 2002 12:54 PM To: Narvaez, Teresa Cc: [EMAIL

[PHP] NULL Apache environment variables

2002-02-18 Thread Narvaez, Teresa
Hello, I'm running PHP version 4.1.1. When I invoke this function, , all variables are set. However, when I try to retrieve a value of a certain variable like this: It returns NULL. Is there a missing configuration on apache or php? Thanks, -Teresa

RE: [PHP] Functions

2002-02-13 Thread Narvaez, Teresa
Try the phpinfo() function: Example: PHP Test -Teresa -Original Message- From: Jason Whitaker [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 13, 2002 4:15 PM To: [EMAIL PROTECTED] Subject: [PHP] Functions Is there a website that lists all the default functions and variable