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
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
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.
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
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
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]
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: <
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,
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
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
10 matches
Mail list logo