On 12/07/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
Hi,
How can i destroy an array?
I mean i have a loop and for each new value in the loop i want to destroy the
array. Something like that:
while($row = mysql_fetch_array($result))
{
$product[] = $product_id;
On 15/05/05, blackwater dev [EMAIL PROTECTED] wrote:
Hello,
this works fine:
$name=fido;
$string=my dog's name is $name;
echo $string;//prints my dog's name is fido
but when I store the string my dog's name is $name in the db and pull it
out:
//do the query
$row=$datab-fetch();
None input type=radio checked name=radio_test value=None /
And if you didn't want it to show to the user (because they have to
make a choice anyway) . . . you can use this css:
input[value=None]
{
display: none;
}
You should then always have a value to play with in PHP, and the user
On 4/16/05, Dasmeet Singh [EMAIL PROTECTED] wrote:
I have a form on my website that allows users to upload photographs..
1. How to find out the file type they are uploading..like jpeg or png or
gif?
2. Also is there any way to find out size and resolution of the image?
On Apr 3, 2005 3:32 PM, p80 [EMAIL PROTECTED] wrote:
I have a folder let's call it /rep and would like to list all files in it
and for each file $f I would like to check if $f == $some_value and if it
does echo $f any idea how to do that?
thanx in advance
Pat
See the directory functions:
Curt Zirzow wrote:
* Thus wrote zavaboy ([EMAIL PROTECTED]):
I have the following numbers:
12.400
666.75
23
369.2
3.234
How can I make them have at least 2 decimal places?
So, they will output:
12.40
666.75
23.00
269.20
3.234
Thanks in advance!
What I dont understand is that your examples
Steve B. wrote:
How would you get PHP to download a file such as a web page and put it in a string?
What keywords would relate to this (besides php download)
I need a user to be able to put in a name and pass and have PHP go to a cetain site.
The site can take the user/pass in the url so I do
Jeff Schwartz wrote:
The PHP site (under Servers-Apache 2.0) says Do not use Apache 2.0 and PHP in a production environment neither on Unix nor on Windows but isn't clear whether Linux is included or whether it applies to all Apache 2 releases (such as 2.0.46) or just the original 2.0.
And, Red
Sharat Hegde wrote:
Hello,
I need to be able to communicate from a Java Applet to a PHP program on the
server to enable Live Connect for data. This is what I intend to do:
In my web application, a Java Script program will call a Java Applet which
then calls the PHP program on the server. The PHP
what is the diffirent between :
//
session_start ();
$_SESSION['eventid'] = 'arma2';
///
and
/
session_start ();
session_register('arama2');
///
Regards
Nabil
Both accomplish the same thing, except how you are using it might not be
what you expect.
Nothing appears blatently wrong in the code you provided, but it's 4am
here, so I might be off.
This comes to my mind:
1. $_REQUEST was available from PHP 4.1.0 and later, are you using
somthing before that?
2. I assume you're doing somthing with $e_id within your loop, or else
you're just
yy.php should contain
?php
header(Content-type: image/jpeg); /* or gif or whatever... you can
also take a look at getimagesize() to get the type of the image
automatically */
readfile(THE FILE);
?
it's extremely important that there is no whitespace before the ?php
tag and after the ? tag.
12 matches
Mail list logo