[PHP-DB] Interacting with server without a refresh?

2006-07-17 Thread Jeffrey
This veers a bit from PHP, but is relevant. I am building an interactive workshop tool using php and mysql. I want the facilitator to be able to control which pages the participants see and to be able to control the data that appears on the page. The obvious way to do this would be to have reg

Re: [PHP-DB] Interacting with server without a refresh?

2006-07-17 Thread Chris
Jeffrey wrote: This veers a bit from PHP, but is relevant. I am building an interactive workshop tool using php and mysql. I want the facilitator to be able to control which pages the participants see and to be able to control the data that appears on the page. The obvious way to do this woul

RE: [PHP-DB] detecting negative numbers

2006-07-17 Thread Ford, Mike
On 17 July 2006 01:07, Dave W wrote: > No, I get it. I just thought that there might have been some built in > function like if(neg_num($quant - $amount)) > or something like that. I know how to do it, but I thought > that there might > have been an alternate method. Just because I asked a simple

[PHP-DB] Remote DDTS server connection

2006-07-17 Thread Muthukumar
Dear All, I am having an requirement as, Connect to remote machine and execute ddtssql binary to query DDTS oracle database and return data to local client using php. Machine 2 # ddtssql -f file where, file is having queries. machine1 php --> machine2 (DDTS server) I was trying with ex

Re: [PHP-DB] detecting negative numbers

2006-07-17 Thread John Meyer
Dave W wrote: No, I get it. I just thought that there might have been some built in function like if(neg_num($quant - $amount)) or something like that. I know how to do it, but I thought that there might have been an alternate method. Just because I asked a simple question doesn't mean I'm stup

RE: [PHP-DB] Submitting form from

2006-07-17 Thread Sean Mumford
Couldn't you achieve the same effect without javascript by simply using GET values instead of post? As in each hyperlink would say something like A B, although perhaps you're trying to intentionally avoid using GET as to not clutter up their browser history. .. -Original Message- From: And

Re: [PHP-DB] Submitting form from

2006-07-17 Thread Dave W
The problem with GET is that a user that looks at the source code of the html can easily just input what they want for the argument. Can you say SQL injection? On 7/17/06, Sean Mumford <[EMAIL PROTECTED]> wrote: Couldn't you achieve the same effect without javascript by simply using GET values

RE: [PHP-DB] Submitting form from

2006-07-17 Thread Dwight Altman
I don't think so, because the OP needs other form fields submitted as well. Regards, Dwight > -Original Message- > From: Sean Mumford [mailto:[EMAIL PROTECTED] > Sent: Monday, July 17, 2006 9:24 AM > To: 'Php-Db' > Subject: RE: [PHP-DB] Submitting form from > Couldn't you achieve the sa

Re: [PHP-DB] Submitting form from

2006-07-17 Thread Skip Evans
If you use a GET and submit through the link you don't carry the check box through with the POST. Here is the code that I used after help from the list: First, the JS function function submitForm(letter) { document.search.letter.value=letter;// put the letter in t

Re: [PHP-DB] Submitting form from

Dave W wrote: The problem with GET is that a user that looks at the source code of the html can easily just input what they want for the argument. Can you say SQL injection? Can you say input validation? Regardless of where user input comes from, whether it's in the URL, in POST vars or in c

[PHP-DB] DB2 - wrong number of parameters

Hi! I´m working with PHP 5 and using the DB2 database. I´m trying to update a jpg file, that´s save on the database. here´s the code: $fp = @fopen("$caminho/$nome_arquivo", 'r'); $content = fread($fp, filesize("$caminho/$nome_arquivo")); $content = bin2hex($content);

Re: [PHP-DB] DB2 - wrong number of parameters

Pablo Garay wrote: Hi! I´m working with PHP 5 and using the DB2 database. I´m trying to update a jpg file, that´s save on the database. here´s the code: $fp = @fopen("$caminho/$nome_arquivo", 'r'); $content = fread($fp, filesize("$caminho/$nome_arquivo")); $content

Re: [PHP-DB] Remote DDTS server connection

Muthukumar wrote: Dear All, I am having an requirement as, Connect to remote machine and execute ddtssql binary to query DDTS oracle database and return data to local client using php. Why not use the native oracle libraries (http://www.php.net/manual/en/ref.oci8.php) or at least use an odbc