[PHP] array question

2001-07-19 Thread James W Greene

Hi All,
I am trying to pull info out of a table and assign a var name to each
field...  I seem to be having trouble.  I have tried to do $var = $row[0]
but that does not seem to do it.  I have included what is working below.  I
would like to have each element of the array stored in a seperate variable
for use on a  web page. Thanks
JG

?php
$stmt = 'SELECT * FROM custdata WHERE UserName like fred';
mysql_connect($localhost,test,testme);
$result = mysql_db_query(test,$stmt) ;
while($row = mysql_fetch_object($result)) {
//** doing this now**//
printf(%s,
 $row-UserName) ;
// **Would like to do something like**//
// $user = $row[0]; //

}
mysql_free_result($result);
?


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] which php shopping cart is this?

2001-07-13 Thread James W Greene

Actually is is TEP at www.theexchangeproject.org
JG
- Original Message - 
From: Jerry Lake [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, July 13, 2001 2:02 PM
Subject: RE: [PHP] which php shopping cart is this?


 I think that is opencart, or openshop something
 like that. I ran across it at www.hotscripts.com
 a while back.
 
 Jerry Lake
 Interface Engineering Technician
 Europa Communications - http://www.europa.com
 Pacifier Online - http://www.pacifier.com
 
 
 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
 Sent: Friday, July 13, 2001 10:47 AM
 To: [EMAIL PROTECTED]
 Subject: [PHP] which php shopping cart is this?
 
 
 Greetings!
 
 Which php-based shopping cart is being used at this site?
 http://shop.t-shirtoutlet.com/catalog/
 
 
 Thanks!
 
 
 
 Max Pyziur BRAMA - Gateway Ukraine
 [EMAIL PROTECTED]  http://www.brama.com/
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]
 
 
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]
 
 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Question

2001-07-11 Thread James W Greene

Hi All,
I have an e-mail message stored in the var $message  How can I grep for
say the From lines and such in $message using PHP.  I tried using preg_grep,
but I could not seem to get it to work.  Thanks
Jim G


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Question

2001-07-06 Thread James W Greene

Hello,
I am in the need to do the following:
A web form in which A user clicks on a timer button.  The after a certian
amount of time the click a end timer button and the time is logged to a
mysql dbase.  ANyone know how I could go about this.  I was thinking I could
store the start time in a cookie, and then when end timer button is pressed
I could read the value from the cookie, write it, and then destroy the
cookie.  ANy ideas ?  Thanks
Jim


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]