I would think that they are 16 key/value pairs when the MySQL (TEXT) fields
are null thus the session variables are NOT set thus NOT present.
Hypothsis: I believe that your are using mysql_fetch_array($query_resource),
try using the second parameter as well ie.
mysql_fetch_array($query_resource,
I don't know of any script that does this, but thats not saying
that one doesn't exist. I don't know what software your using, but all
passwords should be stored in encrypted format to help deter the use of
scripts like this. They may be able to view the contents of the
password field
I want to use the following function the test the array elements,
if all element is number return true, otherwise false;
but the command marked, it print out only the first char of every strings in
the array;
can help?
ie: ++0++ for 0.234
function check_int_float($array){
$result=true;
Thanks for your input Bobby
I was using mysql_fetch_array() but changed to mysql_fetch_assoc()
The funny thing is, I have a page that does the var_dump() and all
I'm doing is refreshing the page and sometimes I get 18 other times
16 variables
Gavin
Auckland, New Zealand
-Original
Quick question... when saving a file using the fwrite() function in a Unix
enviroment as a text file does it get saved as ASCII???
Thanks.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
- Original Message -
From: pei_world [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, March 20, 2003 4:30 PM
Subject: [PHP] function for $array
I want to use the following function the test the array elements,
if all element is number return true, otherwise false;
but the
Jay --
Quick chastisement: don't hijack threads. This has nothing to do with
sessions. When starting a new topic and asking a fresh question, please
start a fresh email rather than replying to any old thing in your
mailbox.
...and then Jay Paulson said...
%
% Quick question... when saving a
Hello List,
Having some serious headaches trying to fix XML integration into
a PHP class. Am new to XML, but have been comfortable with PHP
for quite a while so please reply accordingly.
Here is the problem :
* Data handing functions are being called multiple
Hi there
Is there anything I'm doing wrong in the following:
$Database = mysql_connect( host, user, password ) or
die(Could not connect to database);
mysql_select_db( dbname, $Database ) or die(Database does not
exist);
$Login = strtolower($_POST[Person]);
I had the same problem a week ago, so i wrote a little function to
convert xml files into usable objects (the dom_xmltree function sucks a
lot),
Basicly it converts the XML data into a object and make arrays for multi
nodes, i also have done another function to write the object on disk,
may be
Thank you very much.
Jack
André cupini wrote:
Part 1.1Type: Plain Text (text/plain)
Encoding: quoted-printable
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Another thing, very cool that site, weather thru XML, i'll make some
scripts myself for it ;P
If you want to open it directly from the web, use fopen() and
domxml_open_mem, instaed of domxml_open_file, it will make you use the
web service without downloading any stumb file.
Just do $obj =
Mike/Matt,
thanks for the promp response
for reference
our system: Slackware 8.1, mySQL 3.23.51, apache 1.37
all the passwords look like they are kept in the mysql.users table and the
passwords are encrypted (at least in phpMyAdmin 2.4)
Steve
- Original Message -
From: Mike [EMAIL
Hello all, I am Orlando Pozo
How could I verify if a variable is a Numeric string? , I need help in this; for
example when I submit a form, all texts fields are sent in strings, if you need to
verify that the string is all numeric, How could I verify?, thanks for your help.
is_numeric(yoursting);
this returns true if string is a number
On Thursday, March 20, 2003, at 08:32 PM, Orlando Pozo wrote:
Hello all, I am Orlando Pozo
How could I verify if a variable is a Numeric string? , I need help
in this; for example when I submit a form, all texts fields are sent
So ask the administrator to install it, without it kidding with XML will
be a hell!
Piero
-Mensagem original-
De: Burhan Khalid [mailto:[EMAIL PROTECTED]
Enviada em: quinta-feira, 20 de março de 2003 22:15
Para: Piero B. Contezini
Assunto: Re: RES: [PHP] XML Problems
Hello Piero,
www.php.net/is-numeric
Orlando Pozo wrote:
Hello all, I am Orlando Pozo
How could I verify if a variable is a Numeric string? , I need help in this; for example when I submit a form, all texts fields are sent in strings, if you need to verify that the string is all numeric, How could I verify?,
Maybe someone can see what I'm trying to do with this:
foreach($charge as $c){
foreach($size_id as $s){$sql = UPDATE products_to_sizes SET surcharge = '$c'
WHERE product_id = '$products_id' AND size_id = '$s';
mysql_query($sql) or die (Couldn't update rows.MYSQL_ERROR());
print $sql.'br';}
}
I
Hello
any idea how can i fix this problem when I compile php with informix
ERROR:
/opt/informix/lib/esql/libifos.so: the use of `mktemp' is dangerous, better
use `mkstemp'
Foong
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
try this...
for ($i = 0; $i count($charge); $i++)
{
$c = $charge[$i];
$s = $size[$i];
$sql = UPDATE products_to_sizes SET surcharge = '$c'
WHERE product_id = '$products_id' AND size_id = '$s';
mysql_query($sql) or die (Couldn't update rows.MYSQL_ERROR());
print $sql.'br';
}
Hello,
On 03/20/2003 03:50 PM, Edward Peloke wrote:
The owner of the php site I am working on just told me he want to do credit
card validations on the site. Currently, we aren't doing anything with
credit cards. I have no idea as to where to even start with this. Should I
simply go the paypal
I still fail to see how BB code helps in any way, since you have to
make
these
same considerations. But, like I said, maybe I'm missing something.
:-)
I agree pretty much. The only way it helps is that it's easier for
people to pick up, however slightly. Instead of explaining to people to
use
i have a table that contains articles. i have another table which
contains the order 1 - 9 that i would like to display them in.
this part is done, and is not a problem. here is where I am not sure
how to proceed.
1. tbl_display_order - can only have 9 records in it (or do i just
ignore
Thank you, Martin - you're a certifiable genius!
It's just that $size needed to be $size_id - I fixed that, though.
Thanks!
Richard
Quoting Martin Towell [EMAIL PROTECTED]:
### try this...
###
### for ($i = 0; $i count($charge); $i++)
### {
### $c = $charge[$i];
### $s = $size[$i];
###
Hello,
On 03/20/2003 10:32 PM, Orlando pozo wrote:
How could I verify if a variable is a Numeric string? , I need help
in this; for example when I submit a form, all texts fields are sent
in strings, if you need to verify that the string is all numeric, How
could I verify?, thanks for your help.
For this exact instance (ie, trying to get the current month, and next
month) then all you need is:
?
$thisMonth = date(F,strtotime('today'));
$nextMonth = date(F,strtotime('next month'));
?
Justin
on 21/03/03 1:00 AM, shaun ([EMAIL PROTECTED]) wrote:
Hi,
could someone tell me why this:
Are the queries the exact same every time you refresh them? This seems just
to be programming logic (I guess). Post some code and maybe someone (or I)
will be able to help you out.
Gavin Jackson [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Thanks for your input Bobby
I was using
Hi,
A session is meant to exist on one domain... You could pass the session to
another domain to *hold* for you:
a href='https://secure.com/enter?oldSID=?=session_id();?'secure
checkout/a
Then the secure domain would be responsible for remembering the old session
id, and passing it back to
Hi Bobby
The following is a copy and paste of the page I'm using to
generate the problem. I have 18 keys in the $_SESSION
variable and just by simply refreshing the page with the
following code, it returns either array(0){} or session info and
array(18){ will all the correct variables }. I must
MY ERROR:
Warning: mkdir(/home/newmanpj/public_html/galleries/philip/20030320223553)
[function.mkdir]: Permission denied in
/home/crushme/public_html/siteadmin/upload_set_step3.php on line 72
MY PROBLEM:
$siteGalleryUserPath when it is made by PHP dose not give 0777 access for $destination
hello all,
is it possible to delay an echo say by 5 seconds after the page loads?
cheers,
- Sebastian
Hello,
I installed Apache/PHP in my local machine for testing purposes, but I'm
trying to run a script that uses super global vars
($_SERVER['QUERY_STRING'], etc) and for some reason it does not seem to
be working.. Can super globals be off like register_global on php.ini?
if so what is the
is this what you're after ?
flush();
wait(5); // I think wait() is in seconds
echo blah;
-Original Message-
From: Sebastian [mailto:[EMAIL PROTECTED]
Sent: Friday, March 21, 2003 2:54 PM
To: php list
Subject: [PHP] echo
hello all,
is it possible to delay an echo say by 5 seconds
Hello,
Yep, I just upgraded to 4.3.2-RC1 and now it works fine, thanks!.
#Of.
Adrian Portsmouth wrote:
Hi Oscar,
The super globals don't exist in the version of PHP you are using, they
were only introduced PHP = 4.1.0
Kind Regards
Ade
www.phpscriptsearch.com
--
PHP General Mailing List
php has a wait function? I didn't know that... But i get:
Fatal error: Call to undefined function: wait()
I just want to delay some text from loading too quick.
i am sure is can be done in java but i don't have any experience in it :s
cheers,
- Sebastian
- Original Message -
From:
If you it's either ALL or Nothing then I would think it has something to do
with retrieving sessions from the client (in the form of the cookie) or on
the server (in the form of the session file, default is /tmp on *nix
systems). I ran your script on my server where I have session varaibles and
I
What about IIS. This is what the customer is usingand I know d***
about
IIS. I would assume that there is a similar thing for IIS, but have no
idea
where to even look.
If you are using IIS 3.0 Check out install.txt file which comes with PHP
Win32 Binary. It says:
Run Regedit.
Navigate
--- Sebastian [EMAIL PROTECTED] wrote:
is it possible to delay an echo say by 5 seconds after the page loads?
This sounds similar to a little script I wrote a while back to demonstrate
flush() for someone. Maybe it will help you:
http://shiflett.org/tutorials/php_flush.php
Chris
=
Become
sorry - sleep(5);
-Original Message-
From: Sebastian [mailto:[EMAIL PROTECTED]
Sent: Friday, March 21, 2003 3:58 PM
To: Martin Towell; php list
Subject: Re: [PHP] echo
php has a wait function? I didn't know that... But i get:
Fatal error: Call to undefined function: wait()
I just
This articles in PHPBuilder are really good starts on the topic:
http://phpbuilder.com/columns/wiesendanger20001218.php3
http://phpbuilder.com/columns/allan2830.php3
http://phpbuilder.com/columns/nasser20030219.php3
Regards,
Nikunj Virani
--
PHP General Mailing List
I have read some posts to this list on sessions and have read as much as I
can find on them, but one problem still exists which I can't figure out. How
do I kill the session when the user leaves my site. So if a user is on
www.mine.com and logs in successfully, then goes to www.hers.com - the
On Friday 21 March 2003 13:57, Beauford.2002 wrote:
I have read some posts to this list on sessions and have read as much as I
can find on them, but one problem still exists which I can't figure out.
How do I kill the session when the user leaves my site.
There is simply no way to tell when
thank you. now we're talking, Works great :)
cheers,
- Sebastian
- Original Message -
From: Martin Towell [EMAIL PROTECTED]
| sorry - sleep(5);
|
| -Original Message-
| From: Sebastian [mailto:[EMAIL PROTECTED]
|
| php has a wait function? I didn't know that... But i get:
|
Hi,
A few days ago I posted a question about sending mass emails through PHP -
the good news is I've got my script sending an email to each address stored
in my MySQL database. Now my client would like the ability to individually
select the email addresses that are sent out.
Has anyone done
What about HTTP_REFERER - is there someway I could incorporate it to so if
the user didn't come from xxx (a page on my site) then kill the session and
redirect him to the login page...
- Original Message -
From: Jason Wong [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, March 21,
on 21/03/03 4:57 PM, Beauford.2002 ([EMAIL PROTECTED]) wrote:
I have read some posts to this list on sessions and have read as much as I
can find on them, but one problem still exists which I can't figure out. How
do I kill the session when the user leaves my site. So if a user is on
Hello,
I have a form and I have to check the username and password on my DB. If
all is ok, then, I have to send by another form this usernma and
password to a CGI on a gateway. But this second part I would want to be
automatically, I mean, I want to create the structure of the form that
the CGI
on 21/03/03 6:20 PM, Beauford.2002 ([EMAIL PROTECTED]) wrote:
What about HTTP_REFERER - is there someway I could incorporate it to so if
the user didn't come from xxx (a page on my site) then kill the session and
redirect him to the login page...
The referrer can maybe *help* (not sure how
i would like to know what good ones out there, fast template uses ereg and
is slow , itx screws with the source layout and the output looks shit ,
smarty wants control of the code , is there anything better than these guys
?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe,
There are two ways that I know of the adjacency model
and nested sets.
adjacency model uses a table structure like
category_id | parent_id | category_name
so if i want to see all categories belonging to
category 12
- SELECT * FROM cat_table WHERE parent_id=12;
there are a few articles out
101 - 150 of 150 matches
Mail list logo