wrote:
dont mean to be padantic, but 5.7 is not an integer :p
lol
-Original Message-
From: graeme <[EMAIL PROTECTED]>
To: Louis Young <[EMAIL PROTECTED]>
Date: Mon, 17 Jan 2005 13:47:49 +0600
Subject: Re: [PHP-WIN] Newbie question: convert string to int
If you are holding a s
On Mon, 17 Jan 2005, Louis Young wrote:
> What's the function to convert a string to an int.
echo (int) "123abc";
-Rasmus
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
If you are holding a string with a valid number in it e.g. "5.7" then
the conversion is done automatically. See the manual section Language
Reference / Types / Strings / String conversion to numbers. If you are
holding a string with the number in words e.g. "Five" then you'll need
to write your
When you click "submit" on a POST method form, it'll go to whatever file
is specified in the "action=" part of the FORM and send the POST data to
it for processing. PHP scripts are executed when called, they're never
"already running" although you could probably have a case where you
could (and mi
Better yet:
if (!isset($a)) {
$a = "";
}
echo $a;
?>
If the user passes something in the form, you will see it in the page,
if not, it will show a empty string (which is equal to nothing in web,
but avoids the warning).
Always take note to the warnings... they can be just warn
EMAIL PROTECTED]
Subject: Re: [PHP-WIN] newbie question (forms)
Its just a warning. It tells you that you are using a variable which has no
value. Just ignore the notice, or turn down error reporting to exclude
notices.
All it means is that the variable of $test which you have included in your
scrip
This probably has to do with one/both of two things:
1. register_globals is off (not a bad thing - just requires a tidbit more
code. see http://php.net/register_globals)
2. A variable is being called before it has been initialized.
Example PHP script:
First you will get the undefined variable
Its just a warning. It tells you that you are using a variable which has no
value. Just ignore the notice, or turn down error reporting to exclude
notices.
All it means is that the variable of $test which you have included in your
script HAS NO VALUE. If you were to write something like
$test = "I
Actually it's the "windows way". One of those valuable innovations that
makes windows software a leader in technology. Figuring out which is which,
keeps many people employed... hope you don't mind sarcasm...
Warren Vail
Tools, Metrics & Quality Processes
-Original Message-
From: Kit
Thanks for your help, but i've found what was wrong, it was in the code, but
in the data file
I wrote the picture name with first letter uppercase and unix server doesn(t
like it
Thanks again
Hubert
Lyon, France
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://
At 03:31 PM 4/8/2002 +0200, Alberto. Sartori wrote:
>You should do the cicle and get the datas until you reach the end of file
>aka feof($fp) or better, try to use fread()
Yup, good point. Here's the modified code.. not using fread() though. For
non-binary data I think this should work ok tho
Give this a shot...
");
print("$vignette");
print("");
print("$marque");
print("$nom");
print("$pdfproduit");
print("$commprod");
print("");
}
?>
At 08:54 AM 4/8/2002 +0200, Hubert DAUL wrote:
>Hi ,
>
>Here's my problem :
>
>I read a data file (no sql file)
Actually I think I'm beginning to understand it. In the Mysql database is a
USER table. In that table contains all the users and privileges...is this
correct? Is there anyway of specifiying a certain user to a certain
databasethat is only user A is allowed to access database B?
Thanks again
I think it will suit you well, to get (and install) the 'phpMyAdmin'
package. It will simplify the aspect of creating and maintaining the
database, while you learn the ins-and-outs of MySQL.
You may want to invest some time in reading and learning the MySQL
documentation. Especially the part wh
thanks for the speedy reply
your not wrong about phpinfo
ill go tinker with it now :)
- Original Message -
From: Tomasz Abramowicz <[EMAIL PROTECTED]>
To: Dane Carlsson <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Tuesday, May 01, 2001 4:53 AM
Subject: Re: [PHP-WI
> Hi,
>
> Is there a function to get the current path?
make a file with
in it. You will get all the variables you can dream of includeing
$DOCUMENT_ROOT and $PHP_SELF which you might find
interesting.
> I haven't be able to locate one in a quick browse over the documentation.
if you know mor
It is slower. Maybe not REEAALLY slower if you don't have much
traffic, but when it comes to kicks, you're losing quite some
performance. I would suggest that you have a look at some of the DB
abstraction layer classes available un phpclasses.upperdesign.com or
at www.hotscripts.com; they could co
t; Cc: [EMAIL PROTECTED]
> Subject: Re: [PHP-WIN] Newbie question...
>
> don't like being picky, but you may be thinking of MySQL where
> % is the multiple character wildcard (eg select 'David!' LIKE '%D%v%';)
> _ is the single character wildcard (e
don't like being picky, but you may be thinking of MySQL where
% is the multiple character wildcard (eg select 'David!' LIKE '%D%v%';)
_ is the single character wildcard (eg select 'David' LIKE 'Davi_';
Tom
Ben Cairns wrote:
> The wildcard in PHP is a %
>
> E.G.
> select * from YOUR_TABLE where
The wildcard in PHP is a %
E.G.
select * from YOUR_TABLE where SOME_FIELD like '%$dan%'";
Hope this helps
-- Ben Cairns - Head Of Technical Operations
intasept.COM
Tel: 01332 365333
Fax: 01332 346010
E-Mail: [EMAIL PROTECTED]
Web: http://www.intasept.com
"MAKING sense of
the INFORMATION
TECHNO
20 matches
Mail list logo