Re: [PHP] looking for newbie help in solving logic problem

2002-01-23 Thread Anton Stroganov
perhaps $[connit.$i] would to it? - Original Message - From: "Larry Brown" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, January 18, 2002 20:24 Subject: [PHP] looking for newbie help in solving logic problem > The following is an over simplified description. With additiona

Re: [PHP] Re: What tools do you use to develop PHP?

2001-07-31 Thread Anton Stroganov
all, with a little work it can be made work with PHP quite well. Anton Stroganov webmaster www.artwithin.com - Original Message - From: Matt Rogers <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, July 31, 2001 10:40 Subject: Re: [PHP] Re: What tools do you use to

Re: [PHP] mysql escape character \'

2001-08-07 Thread Anton Stroganov
eld FROM table WHERE id = '1'"; ... db query ...; echo stripslashes($textfield); for more info see the appropriate manual pages: http://www.php.net/manual/en/function.htmlspecialchars.php http://www.php.net/manual/en/function.addslashes.php http://www.php.net/manual/en/function.stripslashes.

Re: [PHP] fwrite????

2001-08-20 Thread Anton Stroganov
when you open the file with fopen(), use the 'a' (writing only) or 'a+' (reading and writing) arguments ie: int fopen ("somefile.txt", "a"); "... *'a' - Open for writing only; place the file pointer at the end of the file. If the file does not exist, attempt to create it. *'a+' - Op

Re: [PHP] two dimensional array or two arrays?

2001-08-28 Thread Anton Stroganov
this should do it for you. $categoryarry = array(array("","none"),array("1","John"),array("2","Jim")); foreach($categoryarray as $value) { if($value[0] == $srch_cat) { $cat_option .= "$value[1]\n"; } else { $cat_option .= "$value[1]\n"; } } - Original Message - From: Tom Be

[PHP] Writing to file with user as owner

2001-08-28 Thread Anton Stroganov
Any way of doing this in php? Any advice will be greatly appreciated. Anton Stroganov webmaster www.artwithin.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]

Re: [PHP] text editing (parsing)

2001-09-19 Thread Anton Stroganov
split() function will do what you require. $string = "News, Bla, Blabla"; $textarray = split(", ", $string); for more info see http://us.php.net/manual/en/function.split.php (the main php.net site seems to be down) good luck a. - Original Message - From: Jonas K <[EMAIL PROTECTED]> To: <

Re: [PHP] Still no solution...can anyone help?

2001-09-19 Thread Anton Stroganov
I would suggest keeping one single image field, 'full size', and having the thumbnails use the same name as the full image, with a prefix (ie, large image: image1.jpg; thumbnail: tmb_image1.jpg). this way you would give a. less work to your user and b. avoid unnecessary clutter. and on your pages,

Re: [PHP] PHP Email Handler

2001-09-19 Thread Anton Stroganov
My friend. I'm not quite sure I understand you correctly. Are you asking _us_ to do _your_ work for you? Do you want us to give you a complete script on a silver platter? This is a place where people like to see that you've done a little bit of preliminary work, and ask specific questions. Keepin

Re: [PHP] Still no solution...can anyone help?

2001-09-19 Thread Anton Stroganov
Oh, I'm sorry, I thought you were having users choose from already uploaded files, not uploading their own. To answer this question, you can either a. code the image resizing script, creating the thumbnail dynamically and leaving one field to users, to upload the large image. or b. change your i