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 files to themselves?  I am slowly running out 
things to try...

Suggestions?

Thanks for everyone's help.
CH
__
Craig Hoffman - eClimb Media
v: (847) 644 - 8914
f: (847) 866 - 1946
e: [EMAIL PROTECTED]
w: www.eclimbmedia.com
_
On Apr 30, 2004, at 5:05 AM, Ford, Mike [LSS] wrote:
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.  What
am I missing?


Curly braces:

   echo ("
Cheers!

Mike

-
Mike Ford,  Electronic Information Services Adviser,
Learning Support Services, Learning & Information Services,
JG125, James Graham Building, Leeds Metropolitan University,
Beckett Park, LEEDS,  LS6 3QS,  United Kingdom
Email: [EMAIL PROTECTED]
Tel: +44 113 283 2600 extn 4730  Fax:  +44 113 283 3211


--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


RE: [PHP-DB] Re: Multiple SQL queries

2004-01-15 Thread Arthur Pelkey
Thanks ill check that out

-Original Message-
From: Justin Patrin [mailto:[EMAIL PROTECTED] 
Sent: Thursday, January 15, 2004 12:35 PM
To: [EMAIL PROTECTED]
Subject: [PHP-DB] Re: Multiple SQL queries

Arthur Pelkey wrote:

> I am new this.
>  
> I have a page that has multiple queries on it, I want to do doing the
> following:
>  
> Query a mysql db multiple times in the same page, but i must be
missing
> something, I keep getting these AFTER the first queryis successful:
>  
> Warning: mysql_fetch_array(): supplied argument is not a valid MySQL
> result resource in /path/php_file.php on line line_number
>  
> Can someone point in the right direction on how to do multiple
queries,
> some are not querying the same db btw.
>  
> -Art
>  
> 

You need to make sure that you use your statement handles and connection

handles so that the functions use the correct connection and such. Of 
course, that's a pain, so

You could try using a Database Abstraction class, such as PEAR's DB to 
help a bit with this. Even easier, though, is to use something like 
DB_DataObject which encapsulates all of this for you AND gives you a 
handy place to store all of the data.

PEAR::DB http://pear.php.net/package/DB
PEAR::DB_DataObject http://pear.php.net/package/DB_DataObject

-- 
paperCrane 
--
Question Everything, Reject Nothing

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP-DB] Multiple SQL queries

2004-01-15 Thread Arthur Pelkey
I am new this.
 
I have a page that has multiple queries on it, I want to do doing the
following:
 
Query a mysql db multiple times in the same page, but i must be missing
something, I keep getting these AFTER the first queryis successful:
 
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL
result resource in /path/php_file.php on line line_number
 
Can someone point in the right direction on how to do multiple queries,
some are not querying the same db btw.
 
-Art