Re: [PHP] Custom function for inserting values into MySQL

2009-11-02 Thread Phpster
I would take a look at some of the frameworks like codeignter to see how they do things. But like Davied mentioned a simpler way to handle the passing into the function would be Function save($table, $data) Where data is an array of key value pairs which takes your 22 parameters down to

RE: [PHP] Custom function for inserting values into MySQL

2009-11-02 Thread Daevid Vincent
> Do you see any major hangups or screwups on first glance? Yes. There is so much wrong with this I don't even know where to begin... > This function takes 22 parameters: #1 is the table name, > #2-21 are the row > names and the values, and #22 is the "integar string". Dude. Seriously? TWENTY

[PHP] Custom function for inserting values into MySQL

2009-11-02 Thread Allen McCabe
Okay friends, I have been wondering about writing a simple function that will help me with my MySQL inserting. Not because I need to save time and space, but because I wanted to. I wrote a function for inserting 10 values (I have not been able to come up with an idea how to make the number of valu

Re: [PHP] Re: What PHP version are you using?

2009-11-02 Thread Lester Caine
Israel Ekpo wrote: On Mon, Nov 2, 2009 at 2:15 PM, John Black wrote: Bob McConnell wrote: I just checked the Red Hat 5.4 manifest and it shows php-5.1.6-23.el5 - php-5.1.6-23.2.el5_3. CentOS simply repackages the Red Hat kit without the proprietary bits. I don't understand why they are so far

Re: [PHP] Re: What PHP version are you using?

2009-11-02 Thread John Black
Israel Ekpo wrote: That is not good. 5.1.6 was released in August 2006. More than 3 years ago. There are a lot of bug fixes since then http://www.php.net/ChangeLog-5.php It looks like the php libraries are not maintained in CentOS and Red Hat Repositories. I posted the current RHEL version beca

Re: [PHP] Re: What PHP version are you using?

2009-11-02 Thread Israel Ekpo
On Mon, Nov 2, 2009 at 2:15 PM, John Black wrote: > Bob McConnell wrote: > >> I just checked the Red Hat 5.4 manifest and it shows php-5.1.6-23.el5 - >> php-5.1.6-23.2.el5_3. CentOS simply repackages the Red Hat kit without >> the proprietary bits. I don't understand why they are so far behind on

Re: [PHP] Re: What PHP version are you using?

2009-11-02 Thread John Black
Bob McConnell wrote: I just checked the Red Hat 5.4 manifest and it shows php-5.1.6-23.el5 - php-5.1.6-23.2.el5_3. CentOS simply repackages the Red Hat kit without the proprietary bits. I don't understand why they are so far behind on a build that was just released last month, but our hosting ser

RE: [PHP] Re: What PHP version are you using?

2009-11-02 Thread Bob McConnell
From: John Black > Israel Ekpo wrote: >> I just finishing testing against 5.2.10 down to 5.2.4. I am not sure how >> many people are still using versions between 5.2.0 and 5.2.3 >> I would like to know those ones too > > Well anybody running CentOS 5 or RedHat Linux Enterprise 5 using the > offic

Re: [PHP] Re: What PHP version are you using?

2009-11-02 Thread John Black
Israel Ekpo wrote: I just finishing testing against 5.2.10 down to 5.2.4. I am not sure how many people are still using versions between 5.2.0 and 5.2.3 I would like to know those ones too Well anybody running CentOS 5 or RedHat Linux Enterprise 5 using the official repo will be using PHP 5.1.

Re: [PHP] Re: What PHP version are you using?

2009-11-02 Thread Martin Scotta
On Mon, Nov 2, 2009 at 2:29 PM, Israel Ekpo wrote: > On Mon, Nov 2, 2009 at 12:21 PM, O. Lavell wrote: > > > Israel Ekpo wrote: > > > > > Hi Guys, > > > > > > I just want to conduct a quick survey to find out what version of PHP > > > people are using in their production environments. > > > > A

Re: [PHP] Re: What PHP version are you using?

2009-11-02 Thread Israel Ekpo
On Mon, Nov 2, 2009 at 12:21 PM, O. Lavell wrote: > Israel Ekpo wrote: > > > Hi Guys, > > > > I just want to conduct a quick survey to find out what version of PHP > > people are using in their production environments. > > A few days late to answer perhaps, but in case you still want another > re

[PHP] Re: What PHP version are you using?

2009-11-02 Thread O. Lavell
Israel Ekpo wrote: > Hi Guys, > > I just want to conduct a quick survey to find out what version of PHP > people are using in their production environments. A few days late to answer perhaps, but in case you still want another reply: I use 5.2.6, the version that comes with Debian "Lenny". I do

Re: [PHP] Classes and Functions

2009-11-02 Thread Martin Scotta
On Sun, Nov 1, 2009 at 6:46 PM, Larry Garfield wrote: > On Sunday 01 November 2009 2:50:55 pm Daniel Kolbo wrote: > > Hello, > > > > Is there a way to see what objects and functions a script > > loaded/required/used? > > > > I could recursively loop through the globals, but if objects were unset,

Re: [PHP] PHP and Javascript escape character problem, --> those who like to solve things can try to solve this issue, its tricky I think ;)

2009-11-02 Thread Devendra Jadhav
:) On Mon, Nov 2, 2009 at 4:56 PM, acetrader wrote: > > lol thank you very much guys :) the escape character worked and now its > accepting my javascript functions, thank you all very much :) > :jumping::jumping: > -- > View this message in context: > http://old.nabble.com/PHP-and-Javascript-esc

Re: [PHP] PHP and Javascript escape character problem, --> those who like to solve things can try to solve this issue, its tricky I think ;)

2009-11-02 Thread acetrader
lol thank you very much guys :) the escape character worked and now its accepting my javascript functions, thank you all very much :) :jumping::jumping: -- View this message in context: http://old.nabble.com/PHP-and-Javascript-escape-character-problem%2C---%3E-those-who-like-to-solve-things-can-

Re: [PHP] PHP and Javascript escape character problem, --> those who like to solve things can try to solve this issue, its tricky I think ;)

2009-11-02 Thread Ashley Sheridan
On Mon, 2009-11-02 at 16:51 +0530, Devendra Jadhav wrote: > Ashley Sheridan: > > btw: I know I've written onClik wrong but I wrote it this way in this > forum > > cause it wouldn't let me post my thread because it regards it as an > illegal > > tag lol. B-)B-) > > :D > > > On Mon, Nov 2, 2009 a

Re: [PHP] PHP and Javascript escape character problem, --> those who like to solve things can try to solve this issue, its tricky I think ;)

2009-11-02 Thread Devendra Jadhav
Ashley Sheridan: > btw: I know I've written onClik wrong but I wrote it this way in this forum > cause it wouldn't let me post my thread because it regards it as an illegal > tag lol. B-)B-) :D On Mon, Nov 2, 2009 at 4:38 PM, Ashley Sheridan wrote: > On Mon, 2009-11-02 at 00:53 -0800, acetrade

Re: [PHP] PHP and Javascript escape character problem, --> those who like to solve things can try to solve this issue, its tricky I think ;)

2009-11-02 Thread Stuart
2009/11/2 Ashley Sheridan : > On Mon, 2009-11-02 at 00:53 -0800, acetrader wrote: > >> Hi there, >> >> I am doing an application that allows me to create RSS channels and put >> feeds inside of each channel. Everything works so far, but - now I have >> started to do the 'Edit Channel', 'Edit Feed',

Re: [PHP] PHP and Javascript escape character problem, --> those who like to solve things can try to solve this issue, its tricky I think ;)

2009-11-02 Thread Ashley Sheridan
On Mon, 2009-11-02 at 00:53 -0800, acetrader wrote: > Hi there, > > I am doing an application that allows me to create RSS channels and put > feeds inside of each channel. Everything works so far, but - now I have > started to do the 'Edit Channel', 'Edit Feed', 'Delete Channel' and 'Delete > Fee

Re: [PHP] Re: Converting tables into forms

2009-11-02 Thread David Robley
Bastien Koert wrote: > On Wed, Oct 28, 2009 at 8:53 AM, Bob McConnell wrote: >> From: Ashley Sheridan >> >>> On Tue, 2009-10-27 at 21:07 -0700, ben...@gmail.com wrote: >>> I am trying to take MySQL tables and use the table structure to >> create HTML/PHP forms in as few steps as possibl

Re: [PHP] PHP and Javascript escape character problem, --> those who like to solve things can try to solve this issue, its tricky I think ;)

2009-11-02 Thread Devendra Jadhav
Hey, You can do it this way as well $myFeedHTML .= " $feedItemImagePath > DeleteChannelAndAllOfItsFeeds()\" /> />DELETE"; So you can escape double quotes by \ (slash) try this .. It will work... you can escape any special character that you want to use as it is by prepend it by \ On Mon, N

RE: [PHP] RE: Help with my first recursion menu

2009-11-02 Thread MEM
From: Lex Braun [mailto:lex.br...@gmail.com] Sent: segunda-feira, 2 de Novembro de 2009 02:58 To: MEM Cc: php-general@lists.php.net Subject: Re: [PHP] RE: Help with my first recursion menu Hi, On Sat, Oct 31, 2009 at 11:07 AM, MEM wrote: From: Lex Braun [mailto:lex.br...@gmail.com] Sent: s

[PHP] PHP and Javascript escape character problem, --> those who like to solve things can try to solve this issue, its tricky I think ;)

2009-11-02 Thread acetrader
Hi there, I am doing an application that allows me to create RSS channels and put feeds inside of each channel. Everything works so far, but - now I have started to do the 'Edit Channel', 'Edit Feed', 'Delete Channel' and 'Delete Feed' functionalities and have run into a problem. For me its a big