[PHP] Re: Storing indefinite arrays in database

2011-05-11 Thread Shawn McKenzie
On 05/10/2011 03:16 PM, Benedikt Voigt wrote: Hi, I'am very new to PHP, so please any comment is welcome. I want to write a function in PHP, which takes X arguments and outputs a value. The functioning of this function should be stored in a db (mydb? or better alternatives?) The function

Re: [PHP] Re: Storing indefinite arrays in database

2011-05-11 Thread Benedikt Voigt
Thanks Shawn, yes, your second idea works for me. The first one not, as I need to search and join on it. To continue your second idea with your example: Arguments: id results_id variablevalue 1 1 1 800 2 1 2

RE: [PHP] Re: Storing indefinite arrays in database

2011-05-11 Thread Jasper Mulder
Date: Wed, 11 May 2011 22:15:21 +0200 From: benedikt.vo...@web.de To: nos...@mckenzies.net CC: php-general@lists.php.net Subject: Re: [PHP] Re: Storing indefinite arrays in database Thanks Shawn, yes, your second idea works for me. The first one

Re: [PHP] Re: Storing indefinite arrays in database

2011-05-11 Thread Benedikt Voigt
Subject: Re: [PHP] Re: Storing indefinite arrays in database Thanks Shawn, yes, your second idea works for me. The first one not, as I need to search and join on it. To continue your second idea with your example: Arguments: id results_id variable value 1 1 1 800 2 1 2 999 3 1 3 3.14 Results: id

Re: [PHP] Re: Storing indefinite arrays in database

2011-05-11 Thread Shawn McKenzie
On 05/11/2011 03:15 PM, Benedikt Voigt wrote: Thanks Shawn, yes, your second idea works for me. The first one not, as I need to search and join on it. To continue your second idea with your example: Arguments: idresults_idvariablevalue 111800 21