Re: [PHP-DB] Image / file uploader

2004-05-06 Thread Daniel Clark
I think you need the quotes: $_SERVER['PHP_SELF'] > Try using the following: > > $_SERVER[PHP_SELF] > > Mainly, get rid of the quotes inside the brackets. Usually this error > 'T_String' generally occurs when you have quotes (" or ') where they > shouldn`t be. > > Give it a try if that thing still

Re: [PHP-DB] Image / file uploader

2004-05-06 Thread PHPDiscuss - PHP Newsgroups and mailing lists
Try using the following: $_SERVER[PHP_SELF] Mainly, get rid of the quotes inside the brackets. Usually this error 'T_String' generally occurs when you have quotes (" or ') where they shouldn`t be. Give it a try if that thing still troubles you... Good luck Craig Hoffman wrote: > Sorry to be

Re: [PHP-DB] Image / file uploader

2004-04-30 Thread Daniel Clark
Still should be able to use the \" double quotes. echo (" does it puke when its not using _self? > > Craig Hoffman wrote: > >> This is really becoming an irritating small bug. I tried the curly >> brackets and the photo name still does not show up when I echo out the >> query. Everything else ab

Re: [PHP-DB] Image / file uploader

2004-04-30 Thread Arthur Pelkey
does it puke when its not using _self? Craig Hoffman wrote: This is really becoming an irritating small bug. I tried the curly brackets and the photo name still does not show up when I echo out the query. Everything else about the script works fine. Why does PHP choke on forms that submit f

RE: [PHP-DB] Image / file uploader

2004-04-30 Thread Hutchins, Richard
Jinkeys! I had a hunch the problem was with that upload script. Nice catch, Hans! Rich > -Original Message- > From: Craig Hoffman [mailto:[EMAIL PROTECTED] > Sent: Friday, April 30, 2004 10:41 AM > To: Hans Lellelid > Cc: [EMAIL PROTECTED] > Subject: Re: [PHP-DB] Ima

Re: [PHP-DB] Image / file uploader

2004-04-30 Thread Craig Hoffman
That worked! Han's and everyone else thank you very much. I owe everyone who helped out a beer. ;) Thanks CH __ Craig Hoffman - eClimb Media v: (847) 644 - 8914 f: (847) 866 - 1946 e: [EMAIL PROTECTED] w: www.eclimbmedia.com _ On

Re: [PHP-DB] Image / file uploader

2004-04-30 Thread Hans Lellelid
Errr $HTTP_POST_FILES is not superglobal (am I wrong?) $_FILES or specify global $HTTP_POST_FILES Hans Craig Hoffman wrote: function display_edit_bio($user_id) { if($_POST['postback_bio']) { include "include/dbadmin.php"; //image uploader $uploa

Re: [PHP-DB] Image / file uploader

2004-04-30 Thread Craig Hoffman
esult = mysql_query($query, $db) or ($msg); } ?> __ Craig Hoffman iChat: m0untaind0g __ On Apr 30, 2004, at 9:17 AM, Hutchins, Richard wrote: Craig, Where is the code that actually handles the image upload? Is it in /~

RE: [PHP-DB] Image / file uploader

2004-04-30 Thread Hutchins, Richard
ellelid > Cc: [EMAIL PROTECTED] > Subject: Re: [PHP-DB] Image / file uploader > > > No problem - Here you go. Thanks - CH > > "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";> > http://www.w3.org/1999/xhtml"; xml:lang="en&qu

Re: [PHP-DB] Image / file uploader

2004-04-30 Thread Craig Hoffman
No problem - Here you go. Thanks - CH "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";> http://www.w3.org/1999/xhtml"; xml:lang="en" lang="en"> eClimb Media and RaceLogix Traininglog Welcome to Training log Home Login Mailin

Re: [PHP-DB] Image / file uploader

2004-04-30 Thread Hans Lellelid
> Here you go: I mostly echo out the HTML. I have included the entire > form here. > Thanks - CH > > echo (" encType='multipart/form-data'>"); > echo (" ... If you could send the actual resulting HTML that is echoed by your script, that would be more helpful in diagnosin

Re: [PHP-DB] Image / file uploader

2004-04-30 Thread Craig Hoffman
Here you go: I mostly echo out the HTML. I have included the entire form here. Thanks - CH echo (""); echo (" Name: $row[name]"); echo (""); echo (""); if ($row["photo_name"] != '') { echo (" "); } else { $photo_na

Re: [PHP-DB] Image / file uploader

2004-04-30 Thread Chris Boget
> Thanks Hans. I tried what your suggested and still no luck. What does the actual HTML form look like? Chris -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DB] Image / file uploader

2004-04-30 Thread Craig Hoffman
Hans, Thanks Hans. I tried what your suggested and still no luck. __ Craig Hoffman - eClimb Media v: (847) 644 - 8914 f: (847) 866 - 1946 e: [EMAIL PROTECTED] w: www.eclimbmedia.com _ On Apr 30, 2004, at 7:57 AM, Hans Lellelid wrote:

Re: [PHP-DB] Image / file uploader

2004-04-30 Thread Hans Lellelid
Craig Hoffman wrote: > This is really becoming an irritating small bug. I tried the curly > brackets and the photo name still does not show up when I echo out the > query. Everything else about the script works fine. Why does PHP choke > on forms that submit files to themselves? I am slowly run

Re: [PHP-DB] Image / file uploader

2004-04-30 Thread Craig Hoffman
This is really becoming an irritating small bug. I tried the curly brackets and the photo name still does not show up when I echo out the query. Everything else about the script works fine. Why does PHP choke on forms that submit files to themselves? I am slowly running out things to try...

RE: [PHP-DB] Image / file uploader

2004-04-30 Thread Ford, Mike [LSS]
On 30 April 2004 01:10, Craig Hoffman wrote: > When I put single quotes in the PHP_SELF and I get this error: > Parse error: parse error, unexpected T_ENCAPSED_AND_WHITESPACE, > expecting T_STRING or T_VARIABLE or T_NUM_STRING > > and I can't use double quotes because its in an echo statement. W

Re: [PHP-DB] Image / file uploader

2004-04-29 Thread Craig Hoffman
Fellows, thanks for helping. But still no luck. The error is gone, but the image / file is still not showing up in the query. What else I can provide to help trouble shoot this? echo (""); __ Craig Hoffman - eClimb Media v: (847) 644 - 8914 f: (847) 866 - 1946

Re: [PHP-DB] Image / file uploader

2004-04-29 Thread Bruno Ferreira
Craig Hoffman wrote: Sorry to be a pest but I tried that. It giving me the same error. __ Change to double quotes for the HTML portion. action=\"$_SERVER['PHP_SELF']\" You'll find that the ultimate correct form is echo "etcetc action=\"$_SERVER[PHP_SELF]\" et

Re: [PHP-DB] Image / file uploader

2004-04-29 Thread Craig Hoffman
Sorry to be a pest but I tried that. It giving me the same error. __ Craig Hoffman - eClimb Media v: (847) 644 - 8914 f: (847) 866 - 1946 e: [EMAIL PROTECTED] w: www.eclimbmedia.com _ On Apr 29, 2004, at 7:10 PM, Daniel Clark wrote: C

Re: [PHP-DB] Image / file uploader

2004-04-29 Thread Micah Stevens
Do this: echo (" "); PHP doesn't handle array's well in echo statements, so you have to stop the echo, concat the array, and then continue the echo. -Micah On Thursday 29 April 2004 04:46 pm, Craig Hoffman wrote: > I have a script where it uploads a image to directory. I have used > the sc

Re: [PHP-DB] Image / file uploader

2004-04-29 Thread Daniel Clark
Change to double quotes for the HTML portion. action=\"$_SERVER['PHP_SELF']\" > When I put single quotes in the PHP_SELF and I get this error: > Parse error: parse error, unexpected T_ENCAPSED_AND_WHITESPACE, > expecting T_STRING or T_VARIABLE or T_NUM_STRING > > and I can't use double quotes bec

Re: [PHP-DB] Image / file uploader

2004-04-29 Thread Craig Hoffman
When I put single quotes in the PHP_SELF and I get this error: Parse error: parse error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING and I can't use double quotes because its in an echo statement. What am I missing? echo (" Any more thoughts? CH

Re: [PHP-DB] Image / file uploader

2004-04-29 Thread Daniel Clark
I think you want single quotes around PHP_SELF. "$_SERVER['PHP_SELF']" > I have a script where it uploads a image to directory. I have used > the script several times and it works when I send the form to another > page. The problem is I have changed the form to submit to itself and I > can't s