RE: [PHP] strings and \n

2002-01-25 Thread Greg Sidelinger
: Friday, January 25, 2002 3:56 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] strings and \n -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 * and then Greg Sidelinger blurted > Ok I'm having a problem with the new line char \n in strings. I'm > trying to contrast an email that ge

[PHP] strings and \n

2002-01-25 Thread Greg Sidelinger
Ok I'm having a problem with the new line char \n in strings. I'm trying to contrast an email that gets sent with the mail() function. Here is what I'm doing. $message = "line1\n"; $message .= "line2\n\n"; $message .= "line3\n"; ... $message = "lne99"; mail ("email", "subject", $message);

[PHP] mysql_fetch_array

2001-12-30 Thread Greg Sidelinger
Ok I have use mysql_fetch_array to dump the results of a select query with a join in it. if my tables contain a column with the same name how can I distinguish from them. I'm used to table_name.value method in other languages but when I tried $row['table_name.value'] I don't get any values. can a

[PHP] mysql update query

2001-12-04 Thread Greg Sidelinger
I'm having trouble getting an update query to work Here is what I'm doing $result = mysql_query("update table set value1='$value1', value2='$value2' where id='$id'"); It is not updating the database. All the $vars have values and I'm using the correct columns names. Could someone please po

[PHP] Objects and sessions

2001-11-26 Thread Greg Sidelinger
Can someone tell me how to store a class in a session var. I want to test to see if it has been defined and if not create it. I'm having problems with it right now. This is what I'm trying currently temp=1; } } session_start(); if ( !isset( $c )

[PHP] Ojects and sessions

2001-11-25 Thread Greg Sidelinger
s the object I get an error. Here is what I am trying right now. This is from an example in the Docs. Can some one please point me in the right direction on how to get objects stored in my session vars. Greg Sidelinger