[PHP-WIN] Connecting to a database

2004-08-09 Thread PHP MySQL
hi list, I am given a task to connect to a database and display the info there onto the Web. So that whatever changes are made in the database...my web page will also show the newly changed data. I am planning to try doing this using PHP but as i am new to php...i don't know how to go about

Re: [PHP-WIN] file self check

2004-08-09 Thread Ragnar
If you put that in the file itself, there is not much point though? If I do say: if (md5($_SERVER['PHP_SELF'])<>'asda8sd6asd7'){ ... Anyone with access to the file could just comment that out and the script self check wouldn't work. I have honestly no idea how that pearl file did it, but y

[PHP-WIN] optional function parameters

2004-08-09 Thread Ragnar
Hi guys, another quick one. I was wondering what you'd have to do with a function, so it would be able to have 'optional' parameters when calling it. much like: string substr ( string string, int start [, int length]) where you can just omit the [, in length] part if you want. What do you hav

[PHP-WIN] T_VARIABLE???

2004-08-09 Thread Dylan Barber
I get a parse error and maybe its just me but I cant see what I am doing wrong maybe someone could cut through my c**p and tell me error: Parse error: parse error, unexpected T_VARIABLE in /hsphere/local/home/dancing/dancingdivaz.net/development_side/layout/code/fu nctions_video.php on line 41

RE: [PHP-WIN] T_VARIABLE???

2004-08-09 Thread Dylan Barber
Nevermind I found it Dylan Barber www.codegalaxy.com - A webservices company DotNetNuke Portal Specialists Simple Affordable & Reliable - Web Design, and Programming > -Original Message- > From: Dylan Barber [mailto:[EMAIL PROTECTED] > Sent: Monday, August 09, 2004 4:24 AM > To:

SV: [PHP-WIN] optional function parameters

2004-08-09 Thread Henrik Hornemann
Very easy, check out http://www.php.net/manual/en/functions.arguments.php#functions.variable-arg-list Regards Henrik Hornemann -Oprindelig meddelelse- Fra: Ragnar [mailto:[EMAIL PROTECTED] Sendt: 9. august 2004 10:59 Til: [EMAIL PROTECTED] Emne: [PHP-WIN] optional function parameters

[PHP-WIN] Re: Connecting to a database

2004-08-09 Thread Nadim Attari
http://www.hkvstore.com/phpmaker/ -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-WIN] Re: optional function parameters

2004-08-09 Thread Nadim Attari
> another quick one. I was wondering what you'd have to do > with a function, so it would be able to have 'optional' parameters > when calling it. > > much like: > > string substr ( string string, int start [, int length]) > > where you can just omit the [, in length] part if you want. > What do yo

[PHP-WIN] Passing arrays by reference

2004-08-09 Thread Jim MacDiarmid
Hi everyone, I've seen several examples of passing arrays by reference such as the following: $a = array(); function foo(&a) { for ($i=0; $i < 10; i++) { $a[$i] = $i; } } foo($a); echo ""; print_r($a); echo ""; However, when I try this on my setup, it

[PHP-WIN] Variables not passed through form

2004-08-09 Thread Anne Shroeder
I've always used PHP on *Nix platforms. So I'm assuming that this is a windows issue. Here is identical code (1) on an MS server: http://www.cgapdirect.org/annes/ProductCosting/contribute.php (2) on a Linux sever: http://www.language-works.com/cgap/contribute.php The form variable values are dis

Re: [PHP-WIN] Passing arrays by reference

2004-08-09 Thread Justin Patrin
On Mon, 9 Aug 2004 17:28:40 -0400, Jim MacDiarmid <[EMAIL PROTECTED]> wrote: > > Hi everyone, > > I've seen several examples of passing arrays by reference such as the > following: > > $a = array(); > > function foo(&a) function foo(&$a) > { > for ($i=0; $i < 10; i++) > { >

[PHP-WIN] thanks

2004-08-09 Thread Ragnar
Thanks everyone for the help with this issue ! > > another quick one. I was wondering what you'd have to do > > with a function, so it would be able to have 'optional' parameters > > when calling it. > > > > much like: > > > > string substr ( string string, int start [, int length]) > > > > where