Re: [PHP-DB] functions, the best way to implement and arrange them..

2011-07-13 Thread Tamara Temple
On Jul 12, 2011, at 7:28 AM, Taco Mathijs Hillenaar-Meerveld wrote: It might be a simple question for the local die-hards among here, but i'm really wondering about how developers arrange their scripts and keep their map structures. today i was looking for the best way to keep my scripts cle

Re: [PHP-DB] functions, the best way to implement and arrange them..

2011-07-13 Thread Gunawan Wibisono
using function is good.. I like to use it in my script.. but I do think about you should use Class because Class make your script more structure.. and you can hide your setting to make everyone unable to see or hack you system.. example.. I always like to use bla then i built function h1($s) actu

Re: [PHP-DB] functions, the best way to implement and arrange them..

2011-07-13 Thread Karl DeSaulniers
On Jul 13, 2011, at 3:09 AM, Taco Mathijs Hillenaar-Meerveld wrote: yes, it was a structure like that i was looking for. so a class is a group of functions? i have heard about 'wrappers' to and from what i've heard it is the same thing? On Tue, Jul 12, 2011 at 11:36 PM, Karl DeSaulniers

Re: [PHP-DB] functions, the best way to implement and arrange them..

2011-07-13 Thread Taco Mathijs Hillenaar-Meerveld
yes, it was a structure like that i was looking for. so a class is a group of functions? i have heard about 'wrappers' to and from what i've heard it is the same thing? On Tue, Jul 12, 2011 at 11:36 PM, Karl DeSaulniers wrote: > > On Jul 12, 2011, at 7:28 AM, Taco Mathijs Hillenaar-Meerveld wrot

Re: [PHP-DB] functions, the best way to implement and arrange them..

2011-07-12 Thread Karl DeSaulniers
On Jul 12, 2011, at 7:28 AM, Taco Mathijs Hillenaar-Meerveld wrote: It might be a simple question for the local die-hards among here, but i'm really wondering about how developers arrange their scripts and keep their map structures. today i was looking for the best way to keep my scripts cle

RE: [PHP-DB] Functions

2004-11-23 Thread Bastien Koert
http://ca.php.net/manual/en/function.substr-count.php From: Yemi Obembe <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] Subject: [PHP-DB] Functions Date: Tue, 23 Nov 2004 00:59:11 -0800 (PST) Hi wizs, Anybody knows any fuction that can count occurence of a character in a string (not in a array). -

Re: [PHP-DB] functions via event handlers

2004-09-07 Thread Neil Smith [MVP, Digital media]
MAIL PROTECTED]> Reply-To: Joseph Crawford <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DB] functions via event handlers the closest you could come is to make javascript functions c

Re: [PHP-DB] functions via event handlers

2004-09-06 Thread zareef ahmed
Hi, A small example function call_me() { window.location="script.php"; } click me If you are thinking about some live experience like javascirpt with PHP you can go for flash and php. In Flash Event calls php scripts and get the value without reloading the flash movie. Zareef Ahmed -

Re: [PHP-DB] functions via event handlers

2004-09-06 Thread Joseph Crawford
the closest you could come is to make javascript functions call php pages basically redirects that would call the php functions. -- Joseph Crawford Jr. Codebowl Solutions [EMAIL PROTECTED] 802-558-5247 -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/

Re: [PHP-DB] functions via event handlers

2004-09-06 Thread Philip Thompson
Yemi, On Sep 6, 2004, at 7:14 AM, Yemi Obembe wrote: i'd just luv to ask if it is possibble to call a function in PHP by using event handlers (like onmouseover, onload) as done in javascript? if its possible, i'd appreciate someone to tutor me on it. As far as I know, this is not possible. Since

Re: [PHP-DB] Functions

2004-02-02 Thread Denzo
Easier is using their value, eg $email = email(replacement(functions($_POST['email']))); // or _GET $address = address(replacement(functions($_POST['email']))); ... "Micah Stevens" <[EMAIL PROTECTED]> schreef in bericht news:[EMAIL PROTECTED] > Chis, > > I think this might do what you want: > >

Re: [PHP-DB] Functions

2004-02-02 Thread Jochem Maas
elaborating (?spelling) on Micahs loop: funcs.php: // using a variable variable name: $$glob now refers to $_REQUEST // assuming no arguments were passed to the function. // doing this allows sanitizing just $_POST, $_GET or $_COOKIE // in case foreach ($$glob as $key => $valu

Re: [PHP-DB] Functions

2004-02-02 Thread Micah Stevens
Chis, I think this might do what you want: foreach ($_REQUEST as $key => $value) { switch ($key) { case "email": // do email stuff break; case "address": // do address stuff

RE: [PHP-DB] Functions - scope of returned result

2003-08-14 Thread Dillon, John
One more bite on this code. function queries(){ //code.. $piv_result=mysql_db_query($db, $query, $connection) or die ("Query9 failed: $query"); return $piv_result; } function print(){ global $piv_result; $count_fields=mysql_num_fields($piv_result); /

Re: [PHP-DB] Functions - scope of returned result

2003-08-14 Thread John W. Holmes
Dillon, John wrote: One more bite on this code. function queries(){ //code.. $piv_result=mysql_db_query($db, $query, $connection) or die ("Query9 failed: $query"); return $piv_result; } function print(){ global $piv_result; $count_fields=mysql_num_fields($piv_result

RE: [PHP-DB] Functions - scope of returned result

2003-08-14 Thread Dillon, John
To answer my own question again, I didn't assign the returned value from the function call to a variable: $piv_result=queries(); All OK. -Original Message- From: Dillon, John [mailto:[EMAIL PROTECTED] Sent: 14 August 2003 17:54 To: [EMAIL PROTECTED] Subject: RE: [PHP-DB] Func

Re: [PHP-DB] functions IN the database.

2003-05-31 Thread Rolf Brusletto
*This message was transferred with a trial version of CommuniGate(tm) Pro* the sites will reside on different boxes. Thus needing a way to share the functions. I'm trying to get away from having two sets of code that do exactly the same thing. Becoming Digital wrote: Forgive me if I'm overlooki

Re: [PHP-DB] functions IN the database.

2003-05-31 Thread Becoming Digital
Forgive me if I'm overlooking something, but why not just use a class? Edward Dudlik Becoming Digital www.becomingdigital.com - Original Message - From: "Rolf Brusletto" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, 30 May, 2003 17:10 Subject: [PHP-DB] functions IN the datab

Re: [PHP-DB] functions and using vars outside of them

2001-03-30 Thread Yasuo Ohgaki
I think it's time to read the manual. http://jp.php.net/manual/en/langref.php http://jp.php.net/manual/en/language.variables.scope.php http://jp.php.net/manual/en/functions.php -- Yasuo Ohgaki ""olinux"" <[EMAIL PROTECTED]> wrote in message 000f01c0b838$e332a3c0$6401a8c0@amdk7">news:000f01c0b83