[PHP] Re: Traversing an appendable file

2002-07-22 Thread Chris Earle
I was thinking it was obvious because otherwise I'd have just been using that and not even posted about the "a/a+". Using "a" works in the way that it is supposed to (it starts at the end), but what I wanted was to use append and then just append to anywhere in the file. Currently to get that do

[PHP] Re: Looked at documentation, should be fine

2002-07-22 Thread Chris Earle
>>$MailToAddress = [EMAIL PROTECTED]; No quotes around the e-mail address. >> $Message .= "\n\n$HTTP_POST_VARS[Footer]"; You left out quotes from "Footer" "Dean Ouellette" <[EMAIL PROTECTED]> wrote in message 00b901c231e6$30300e10$9c89adac@yoda">news:00b901c231e6$30300e10$9c89adac@yoda... > I

Re: [PHP] Re: does this mean ....

2002-07-22 Thread Chris Earle
"r+" allows you to read and write... if that's what you wanted (I think it is). Note that it will write over any data that is behind the location of the file pointer (so write to the end of the file). "Peter" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > >

Re: [PHP] filling an array(2)

2002-07-26 Thread Chris Earle
> > > for($m=1;$m<=5;$m++){ > > > $div_idd[$m]=${'row->sub' . $m . 'd'}; > > > } I'm not sure if it will work, but you might try either using the mysql_fetch_array($result); function and then refer to them by $row["src1d"]; or try $div_idd[$m] = $row->$$name; where $name = "sub" . $m . "d"; I'm

[PHP] Re: Quotes getting screwed up in form fields

2002-07-26 Thread Chris Earle
http://www.php.net/manual/en/function.stripslashes.php Check that out, it might help. "Monty" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > If someone enters this into a field... > >New York "City" > > and I need to re-display it in the field (if an error

[PHP] Re: Table formatting

2002-07-26 Thread Chris Earle
You can do what he said or just put a separate loop inside the original loop. Depending on how you get the info, you can use either way (his would create less overhead if you are just using the same info every row, otherwise they're really the same because his way you'll have to create an array

[PHP] Re: problems with func_get_arg()

2002-07-26 Thread Chris Earle
It must simply be a bug (probably confusing the function doTitle by calling it, it might thinking you're requesting its info the second pass? Don't know why, but it's a possibility)... "James Nord" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hi, > > Using t

[PHP] Re: need help with unusual php/mysql/array manipulation script

2002-07-26 Thread Chris Earle
Ahhh, good old UO. I remember GMing my taming, crazy what they've done to the game since I've quit (120 skill, insane!). I'm not completely sure of a few things about your question and I think that I could help if you supply the answers to my questions. Does one tamer's taming of an animal incr

Re: [PHP] calling user-defined php functions from tag

2002-07-26 Thread Chris Earle
You can make the radio button submit the form... or you can actually make the link a form and make it an "onClick" scenario to submit data. You can simply do this like this (untested, but the idea works!):