[PHP-DB] Form Variables

2003-10-22 Thread Ng Hwee Hwee
Hi all, got an urgent problem.. it's regarding forms. my system works like this.. 1) user on page1 fills up form 2) upon clicking submit button, it will go to verify.php to verify if the entries are correct 3) if there is any errors, verify.php brings user back to page1 with all the errors listed

Re: [PHP-DB] Form Variables

2003-10-22 Thread Jason Wong
On Wednesday 22 October 2003 15:06, Ng Hwee Hwee wrote: > got an urgent problem.. it's regarding forms. > > my system works like this.. > 1) user on page1 fills up form > 2) upon clicking submit button, it will go to verify.php to verify if the > entries are correct > 3) if there is any errors, ve

Re: [PHP-DB] Wrong Parament count

2003-10-22 Thread Jason Wong
On Wednesday 22 October 2003 14:55, Tonya wrote: > MYSQL and PHP 4.3.3 > > *sigh* I hate eregs and I'm really bad with them :/ > > I have a form that has a field in which the user is supposed to enter an > IRC channel name. IRC channel names begin with a '#'. > > ereg("^#") does not work. I am g

Re: [PHP-DB] Wrong Parament count

2003-10-22 Thread Jason Wong
On Wednesday 22 October 2003 16:15, Jason Wong wrote: > $input_string = "#ircchannel"; > if (preg_match("/^#[a-zA-Z]+/", $input_string) { > echo "Looks like an irc channel"; } > else { > echo "Go check your input"; > } Sorry that regex should look like: if (preg_match("/^#[a-

RE: [PHP-DB] Re: using

2003-10-22 Thread lists
BECOMES: > This works only if it's within an echo statement: echo ""; and you must make sure to either use single quotes around the href link, or else escape the double quotes with a backslash: echo ""; Alternatively, you can do it this way: "> (ie embed the echo within a regular HTML ta

Re: [PHP-DB] Form Variables

2003-10-22 Thread Ng Hwee Hwee
hi jason. thank you for your reply. i am using sessions already. in fact, header("Cache-control: private"); worked in my other applications but not this one.. is it true that because page1.php is a https:// page so it can't cache my entries? thank you! rgds, hwee - Original Message -

RE: [PHP-DB] How do I get quotes around strings to display?

2003-10-22 Thread Ford, Mike [LSS]
On 22 October 2003 00:41, [EMAIL PROTECTED] wrote: > $fieldarray = array("one","Two", "three", "four"); > $line = "\"".implode("\",\"",$fieldarray) ."\""; Eck, eck, eck!! Definitely a construct crying out for single quotes rather than double: $line = '"'.implode('","',$fieldarray) .'"'; C

[PHP-DB] Oracle 9 and PHP 4.3.x

2003-10-22 Thread Johan Kruger-Haglert
I've been trying to get Linux+apache+php+oracle working here with no success, so I've to ask for some help. Versions: RedHat 9.0 PHP 4.3.4RC1 Oracle Enterprise Server 9.2.x Oracle client 8.1.7 The machine has to run RedHat, and newest version would be good. Oracle9.x doesn't seem to be certified

[PHP-DB] Backup from Online Database

2003-10-22 Thread news.php.net
Dear Sirs/Madame I have a database on the internet(hosted). I can conncet to my Database without using HostName(Blank hostname). Thus how can I make Backup from that database by mysqldump.exe. Regards, B.Majidi -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www

[PHP-DB] Multiple adds?

2003-10-22 Thread Jerry Artman
If you are looking to do list updates and changes by that I mean you display a recordset in a list with editable fields and then update changes to the records with a single procedure, you need to check out GoLive6. The standard record actions handle single record or list updates out of the box. The

Re: [PHP-DB] Oracle 9 and PHP 4.3.x

2003-10-22 Thread Christopher Jones
Johan Kruger-Haglert wrote: I've been trying to get Linux+apache+php+oracle working here with no success, so I've to ask for some help. Versions: RedHat 9.0 PHP 4.3.4RC1 Oracle Enterprise Server 9.2.x Oracle client 8.1.7 The machine has to run RedHat, and newest version would be good. Oracle9.x doe

[PHP-DB] RE: Error settings

2003-10-22 Thread Dillon, John
Thanks to those who helped on this. It helped to re-start the server. But the other problem I found out was that register_globals was turned off by default, so variables passed, as for instance ?ID=3 in the URL, were not recognised. I turned register_globals on in the Apache config file: php_fla

[PHP-DB] MySQL and multiple statements

2003-10-22 Thread Anton I. Sokolovsky
Hi ! Does anyone know if PHP already supports multiple statements specified in a single query string ? http://www.mysql.com/documentation/mysql/bychapter/manual_Clients.html#C_API_multiple_queries Anton. -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.

Re: [PHP-DB] MySQL and multiple statements

2003-10-22 Thread Miles Thompson
Crikey, try it! Miles At 04:33 PM 10/22/2003 +0300, Anton I. Sokolovsky wrote: Hi ! Does anyone know if PHP already supports multiple statements specified in a single query string ? http://www.mysql.com/documentation/mysql/bychapter/manual_Clients.html#C_API_multiple_queries Anton. -- PHP Data

RE: [PHP-DB] Re: using

2003-10-22 Thread Robert Sossomon
Right, sorry I left that part out because it basically depends on what you are doing.. /*** Test Page ***/ > "; $display_block .= " < "; ?> ~~~ I get mail I exist. ~~~

Re: [PHP-DB] Oracle 9 and PHP 4.3.x

2003-10-22 Thread Johan Kruger-Haglert
On Wed, Oct 22, 2003 at 10:44:36PM +1000, Christopher Jones wrote: > What errors does PHP give you? ORA-03117: two-task save area overflow ORA-12154: TNS:could not resolve service name among others, it seems to variate a little. I've tried with different configuration settings during the tests.

Re: [PHP-DB] Oracle 9 and PHP 4.3.x

2003-10-22 Thread Alberto Grájeda C.
Don't use setenv. Set the variables in apache init script. This should fix the problem. Good luck. Alberto. On Wed, 22 Oct 2003, Johan Kruger-Haglert wrote: > On Wed, Oct 22, 2003 at 10:44:36PM +1000, Christopher Jones wrote: > > What errors does PHP give you? > > ORA-03117: two-task s

[PHP-DB] Unique Format

2003-10-22 Thread Tonya
PHP 4.3.3 and MYSQL I am constructing a site for gamers that has a member registration form with field 'Game Handle'. Gamers are funny in that their game alias can include just about any character you can imagine. Setting up an ereg for this would be quite difficult. However, I *do* want t

Re: [PHP-DB] Unique Format

2003-10-22 Thread Jordan S. Jones
Tonya, If the handle is only for display purposes in Html, you should look into the htmlentities () or htmlspecialchars () functions. htmlentities: http://www.php.net/htmlentities htmlspecialchars: http://www.php.net/htmlspecialchars Jordan S. Jones Tonya wrote: PHP 4.3.3 and MYSQL I am const

Re: [PHP-DB] Unique Format

2003-10-22 Thread CPT John W. Holmes
Use htmlentities() or htmlspecialchars()... ---John Holmes... - Original Message - From: "Tonya" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, October 22, 2003 1:07 PM Subject: [PHP-DB] Unique Format PHP 4.3.3 and MYSQL I am constructing a site for gamers that has a mem