Re: [PHP] mysql_fetch_array strangeness

2001-01-21 Thread Kristi Russell
each() assigns four elements... (0 = index), (1 = value), (key = index), (value = value) You are concerned with key and value. So: list ($fieldname, $value) = each($row) You may not be using $value but you still need to assign the data to a variable. Or list will only assign $fieldname the num

Re: [PHP] mysql_fetch_array strangeness

2001-01-21 Thread Kristi Russell
each() assigns four elements... (0 = index), (1 = value), (key = index), (value = value) You are concerned with key and value. So: list ($fieldname, $value) = each($row) You may not be using $value but you still need to assign the data to a variable. Or list will only assign $fieldname the num

Re: [PHP] Looking for a web host provider

2001-01-21 Thread Kristi Russell
Check out www.webintellects.com. To date, I haven't had any problems and the service is $18.95 a month. 200MB of diskspace, 50 user accounts, PHP4, MySQL, domain name hosting, etc. Kristi - Original Message - From: "Pascal Clerin" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Sunday

Re: [PHP] Cookies...

2001-01-20 Thread Kristi Russell
time()+86400? - Original Message - From: "WreckRman2" <[EMAIL PROTECTED]> To: "'Php-General@Lists. Php. Net'" <[EMAIL PROTECTED]> Sent: Saturday, January 20, 2001 4:56 PM Subject: [PHP] Cookies... > > Currently my cookie expires in 1 hour, How can I make it expire in 1 day? > > setco

Re: [PHP] Sending a mail in HTML format

2001-01-20 Thread Kristi Russell
Nothing special, just add at the beginning of what you're trying to send as HTML. Always worked for me? Kristi - Original Message - From: "Pascal Clerin" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Saturday, January 20, 2001 8:46 PM Subject: [PHP] Sending a mail in HTML format >

Re: [PHP] Please: XTemplate help?

2001-01-20 Thread Kristi Russell
while ( $rowData = mysql_fetch_array($result)) { list($fieldName, $fieldValue) = each($rowData); $template->assign("$fieldName", $fieldValue); } - Original Message - From: "Jaxon" <[EMAIL PROTECTED]> To: "Kristi Russell" <[EMAI

Re: [PHP] Please: XTemplate help?

2001-01-20 Thread Kristi Russell
require "xtpl.p"; //include XTemplate engine //don't need this - wrong. > require "html.xtpl"; //html layout file with field names e.g. {firstfield} You need to create a new instance of the Xtemplate class so: //assign the new instance to a variable name you'll use - I called it $template //and

Re: [PHP] Spell checker?

2001-01-20 Thread Kristi Russell
Plain Text Dictionary: http://www.mso.anu.edu.au/~ralph/OPTED/ Word list: http://www.antionline.com/archives/text/word-lists/ I just found these by searching through Google you may find better. Kristi - Original Message - From: "Nik Gare" <[EMAIL PROTECTED]> To: "PHP User Group

Re: [PHP] Array help needed

2001-01-18 Thread Kristi Russell
I wouldn't call it a php standard. I personally feel that readability is far more important than following anything that 'appears' to be standard. I use a format such as this for everything I name: If one word, lowercase, if more than one word: $userSelectedDate or displayCalendar(). So basica

Re: [PHP] Spell checker?

2001-01-18 Thread Kristi Russell
http://www.php.net/manual/en/ref.pspell.php There's also aspell which is deprecated. Kristi - Original Message - From: "Nik Gare" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, January 18, 2001 9:12 AM Subject: [PHP] Spell checker? > Hi, > I have a site which will be upd