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 k...@designdrumm.comwrote: On Jul 12, 2011, at 7:28 AM, Taco Mathijs

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 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 h1bla/h1 then i built function h1($s)

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

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

2011-07-12 Thread Taco Mathijs Hillenaar-Meerveld
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 clear and to put them into maps so i have a clear overview. the same thing i

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

[PHP-DB] Functions

2004-11-23 Thread Yemi Obembe
Hi wizs, Anybody knows any fuction that can count occurence of a character in a string (not in a array). - A passion till tomorrow, www.opeyemi.tk - Do you Yahoo!? Discover all thatÂ’s new in My Yahoo!

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]
-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 call php pages basically redirects

[PHP-DB] functions via event handlers

2004-09-06 Thread Yemi Obembe
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. - A passion till tomorrow, www.opeyemi.tk

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.

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:

Re: [PHP-DB] functions via event handlers

2004-09-06 Thread zareef ahmed
Hi, A small example script language=javascript function call_me() { window.location=script.php; } /script div onmouseover=call_me() click me/div 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

[PHP-DB] Functions

2004-02-02 Thread Chris Payne
Hi there everyone, I need to write a function (New to them but starting to get the hang of it) that will take the field from a form and then do operations on it (To remove bad characters, any entered mysql commands etc ) now that's not a problem, what I want to do though is write a generic

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

2004-02-02 Thread Jochem Maas
elaborating (?spelling) on Micahs loop: funcs.php: ? function sanitize($glob = null) { if (is_null($glob) || !is_array($$glob)) { // set name of the global var we care about // if no valid name was passed to the function $glob = '_REQUEST'; } // using a

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: foreach

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] Functions

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;

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);

[PHP-DB] functions IN the database.

2003-05-31 Thread Rolf Brusletto
*This message was transferred with a trial version of CommuniGate(tm) Pro* Hey all - I'm curious if anybody has ever setup the logic to put php functions into a database here is my thinkin on it, hopefully I can get some suggestions on the benefits, downsides, etc. (in mysql) CREATE TABLE

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 database

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

2003-05-31 Thread Rolf Brusletto
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 database. Hey all - I'm curious

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

2001-03-28 Thread olinux
I am wondering how to use a variable that is generated by a function ($query) If you would please look at: http://phpbuilder.net/columns/laflamme20001016.php3?page=5 for an example of what i am trying to do. the function will generate the query... but how do i make use of this? i see that i will