[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); but when

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 gets sent

[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

[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

[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 ? Class a { var $temp; function a() {

[PHP] Ojects and sessions

2001-11-25 Thread Greg Sidelinger
vars. Greg Sidelinger