Re: [PHP] concat and join stuff

2009-04-11 Thread Martijn Korse
This is not really a PHP question, but a mysql question. Anyways, your query should work, as far as i can see. If you give the structure dumps and some relevant data dumps i don't mind to give it a try here. - http://devshed.excudo.net http://devshed.excudo.net -- View this message in

Re: [PHP] user access/roles/privs functionality

2008-11-21 Thread Martijn Korse
bruce-60 wrote: Hi list... I need a way of managing users/teams/etc.. implementing roles/access rights/privs,etc... Have a look at Zend_Acl: http://framework.zend.com/manual/en/zend.acl.html - http://devshed.excudo.net http://devshed.excudo.net -- View this message in context:

Re: [PHP] Weird pdo-mysql behavior

2008-11-14 Thread Martijn Korse
I agree, add some checks in your testcase so you can track exactly what is happening and see of what type your variables are. Also, try what happens when you - switch off persistent-connections (PDO::ATTR_PERSISTENT= false) - pass the object by reference (getClientFullName($id,$dbh)) -

Re: [PHP] mySQL query question

2008-11-14 Thread Martijn Korse
I would create a separate table for this (confirmation_numbers or something) with an autoincrement primary key. That way you can simply insert a new record for you contact and then ask (using mysql_insert_id()) what the confirmation number is. This approach is much safer as you can be 100% sure

Re: [PHP] Weird pdo-mysql behavior

2008-11-13 Thread Martijn Korse
What do you mean with 'stops working'? Also, have you created a test-script that only contains (what you think is) the core-problem? If so, can you paste it here? And if not, i advise you to make one, so you can exclude that other factors play a role here. Thodoris wrote: Hi list, I am

Re: [PHP] ImageMagick functions

2008-10-27 Thread Martijn Korse
These classes contain methods which are just normal functions only residing in a class. pichoscosama wrote: When I look at online documentations of PHP I can not see ImageMagick functions. Only classes. What happened? -- Allah varsa çocuklar neden ölüyor ki? -- PHP General

Re: [PHP] Building an array, kind of?

2008-10-25 Thread Martijn Korse
Or, if your mysql version allows it: SELECT 1, GROUP_CONCAT(some_col) FROM history GROUP BY 1 LIMIT 0,16 That would take away the need to create a comma seperated string in php, because mysql will have already done it for you ;-) Dan Shirah wrote: TGIF? Apparently my brain isn't working

[PHP] Re: re[PHP] declare classes dynamically

2008-10-22 Thread Martijn Korse
Defining multiple classes with the same name but different implementation doesn't seem like a good idea to me. Why did you choose to do this? also, have a look at this function: http://www.php.net/autoload i'm not sure what you're trying to accomplish exactly, but whatever it is, it might be