Using hidden fields is not less secure than using visible fields - or
session variables which were filled out by end user input.
Hidden fields can be modified but so can any other field and you need
to check that the values you receive are expected and proper before you
process them. There are
I have a page where I need to access two different databases in mysql.
After accessing the first database I used mysql_close($connection);
and then code to access the other database. The first database access
works fine, the second gives me the following error message:
*Warning*: mysql_query(
Matthew,
Take a close look at Sybase 12.5.2 Express Edition -
http://www.sybase.com/linuxpromo
They have released the latest version of their flagship database as a
royalty free Linux implementation.
There are constraints being 1 CPU*, 2 Gb RAM and 5 Gb Data. If your
application can live within
sure, you can use a table set of values...if they change often its
worthwhile doing it that way. if they chang einfrequently, then why do
another db call? expensive in a high volume production environment...
you can create a simalar array...as long as you pass the array formated in
that particu
Guys can anyone explain why this is returning odd results?
function &getObject($class, $params=NULL) {
if (!is_array($_SESSION['objects'])) {
$_SESSION['objects'] = array();
}
if (!isset($_SESSION['objects'][$class])) {
if (is_array($params)
On Sun, 3 Oct 2004 13:11:00 -0700, Wendell Frohwein
<[EMAIL PROTECTED]> wrote:
> 10.) At wait.php, a cookie is set containing the user id, user name, and
> encrypted pass.
I don't know that I would set a cookie containing such easily
identifiable information, especially if the user name is clearte
I had a similar problem until I took MySQL out of the system's PATH;
this fixed my problem. PHP apparently needs its own client library and
will hork on the one from MySQL.
-FG
Quoth Alex Popescu on 10/4/2004 4:28 PM...
I sent this message to 3 lists just hoping I would get some help. I just
ho
Well, we are using firebird for about 3 year already, and they updated it a lot.
The 1.5 version is stable, reliable and fast. And it is still
compatible with the interbase extension, tough a firebird only
extension will be available soon.
They are still working on it, and words about the 2.0 versi
I sent this message to 3 lists just hoping I would get some help. I just
hope I am not upsetting anybody with it!
I have apache2, mysql 4.0.21 and php 5.0.2.on xp pro.
All works fine up to the point where I enable the php_mysql.dll module
in php.ini. I followed the instructions and copied libmy
> Not sure if I posted about this yesterday, anyway new
> question.
> I'm building a multi page form. So I"m using hidden
> fields and echoing them to the next page in the loop.
>
> Now someone tells me this is dangerous.
> "because someone can save the final page (with most
> of the hidden value
Not sure if I posted about this yesterday, anyway new
question.
I'm building a multi page form. So I"m using hidden
fields and echoing them to the next page in the loop.
Now someone tells me this is dangerous.
"because someone can save the final page (with most
of the hidden values) locally, e
I think this should be posted somewhere else. Maybe the php-general list ?!
This is no chemistry nor physics ! it's PHP-DB related issues right?
no arrays or strings probs. Plz keep the consistancy of our good lists
that are valuable for users who are us!
On Mon, 4 Oct 2004 12:51:52 -0700, Andr
On Fri, 1 Oct 2004 23:33:46 -0400, GH <[EMAIL PROTECTED]> wrote:
> I have a question along this line... is it possible to have PHP do
> more than one str_replace at the same time?
Have a look at the man page, it shows you how to use arrays to
accomplish what you're trying to do.
http://us2.php.ne
Okay, well a couple of questions. If you don't mind.
Right below is the code I have , and the multiple list
box is filled with values and labels from a table.
So may I ask:
1-Can I replace the array_list and match if I use a
table instead of manual values ?
2-Also - curious to know how people st
I created the below function which will handle both single choice and
multiple choice drop down values and mark them as selected when the user
views that drop down again.
bastien
function my_select($name,$rows,$multiple,$array_list,$match)
{
//this select box takes the above 5 arguements to cr
Write a small script that runs the sp, then create a cron job that fires off
that page/script at whatever your set time requirements are
bastien
From: "Norma Ramirez" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Subject: [PHP-DB] Postgres Trigger
Date: Mon, 4 Oct 2004 08:41:50 -0500
Hi!
Does any
I've used it sucessfully many times. It may the other person's unfamiliarity
with arrays and variables
I created the below function which will handle both single choice and
multiple choice drop down values and mark them as selected when the user
views that drop down again.
bastien
function my
Check to see if your register_globals is set to off in php.ini. If so
(likely, since it defaults to that value) you'll need to access your
POST and GET variables like this:
GET vars:
$var = $_GET['var'];
POST vars:
$var = $_POST['var'];
Gary Every
Sr. UNIX Administrator
Ingram Entertainment Inc
I was just told that having an array pulling multiple
selections from a user out of a list box is a bad
practice.
Can this be true ?
I was under the assumption it was perfectly effective.
Thank you,
Stuart
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.p
As I understand, you're trying to check if the passed value is an
integer or not and then check it's value right?
Use the TYPECASTING technique.
example:
$var = (int) $var;
In this case you're converting ur $var to integer before processing it.
Typecasting is a very well known technique in any p
The whole thing doesnt have to do anything with the DB. Because what
matters is the client or the gateway character-set ( browser in your
case ) so if ur on windows u're probably posting data through
charset=windows-1256 so if ur using HTML then use this encoding or if
ur using XHTML u could put th
Hi Roy,
- Yes the web server is on a different machine
- I think remote OS auth is allowed as when I login to the DB
from another host using / it works fine. (obviously logged in as userA
still)
My DBA suggested I might have to use SSH in some way but I have not
found
A couple notes / assumptions ..
(1) The web server is on a different machine then database
(2) The DB is not allowing remote OS authentication and only local OS
authentication
If these are not true then some of my comments will be invalid
(1) The above config will not work as the web-to-db conn
Hi,
My DBA's preferred authentication method is to set up a UNIX user
account (i.e. userA) and let them login without using plaintext password
authentication, ie. The user has to be logged in, they can then run (for
example) sqlplus / and that will log them into the correct database.
This
hi,
I am new to PHP and I am not sure if this is the right forum.
I am trying to run PHP thro webmin using CGI scripts. PHP runs fine except that when
I am trying to read variables coming thro' a form after hitting the submit button, I
get NULL values.
I can read and write to the database wi
Sorry, I meant BLOB, not BLOP.
Han.
- Original Message -
From: "Han" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>; "Dre" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Monday, October 04, 2004 3:24 PM
Subject: Re: [PHP-DB] Arabic characters displayed as garbage !!
Hi,
I might be able t
Hi,
I might be able to help. I've done a website that uses Chinese characters. I
have to store the data in a BLOP mysql field. Then use the correct ISO for
the webpage display.
Try that.
Han
- Original Message -
From: <[EMAIL PROTECTED]>
To: "Dre" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECT
Hi!
Does any one know the way to execute a Postgres trigger every day? I mean,
the event for the trigger execution must be a moment in time.
Thank's
Norma Ramirez
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I usually just add zero to a string to force a conversion.
eg. $x = '123'; $int = $x + 0;
You might also want to use the is_numeric() function to validate data first?
At 10:47 AM 3/10/2004, you wrote:
Try using the intval() function
intval('1000'); // will result in 1000
intval('1000ABC'); //
I can use some help here. I have page where a user can make updates to
a DB record. The user can then select items from a drop down list.
I'm trying to get my drop down list to pull from the MySQL and have the
value that is stored in MySQL be the one selected in the option
selected tag .
try using utf-8 character encoding, see
http://dev.mysql.com/doc/mysql/en/Charset-Unicode-sets.html
bastien
From: [EMAIL PROTECTED]
To: "Dre" <[EMAIL PROTECTED]>
CC: [EMAIL PROTECTED]
Subject: Re: [PHP-DB] Arabic characters displayed as garbage !!
Date: Mon, 4 Oct 2004 14:36:01 +1300 (NZDT)
By d
Have you talked to the dba to see if the Oracle DB will accept more than one
thread from the apache server?
Bastien
From: Christopher Jones <[EMAIL PROTECTED]>
To: Chris Back <[EMAIL PROTECTED]>
CC: [EMAIL PROTECTED]
Subject: Re: [PHP-DB] Multiple Oracle connections
Date: Mon, 04 Oct 2004 16:44:
Thanks I will take a look at it
BR
<[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> By default, MySQL uses the ISO-8859-1 (Latin1) character set. I guess you
> need to set this parameter to something suitable for Arabic (if it is
> supported by MySQL). I suggest you read "The Chara
33 matches
Mail list logo