Re: [PHP] function I created doesn't work

2008-01-04 Thread afan pasalic
Daniel Brown wrote: On Jan 4, 2008 12:06 PM, afan pasalic [EMAIL PROTECTED] wrote: hi I have function function get_content($client_id, $form_id, $index1) { $query = mysql_query( SELECT content FROM infos WHERE

Re: [PHP] function I created doesn't work

2008-01-04 Thread Daniel Brown
On Jan 4, 2008 12:06 PM, afan pasalic [EMAIL PROTECTED] wrote: hi I have function function get_content($client_id, $form_id, $index1) { $query = mysql_query( SELECT content FROM infos WHERE

Re: [PHP] function I created doesn't work

2008-01-04 Thread afan pasalic
Samuel Vogel wrote: Explanation of your code: $CONTENT = get_content(12, 104, 'merchant'); echo $CONTENT; This does not work, because you don't use a return in your function. This means that the function does not return a value. Now in the function you assign a value to $CONTENT. That

RE: [PHP] function I created doesn't work

2008-01-04 Thread Ford, Mike
On 04 January 2008 17:06, afan pasalic wrote: hi I have function function get_content($client_id, $form_id, $index1) { $query = mysql_query( SELECT content FROM infos WHERE client_id=.$client_id. AND

Re: [PHP] function I created doesn't work

2008-01-04 Thread afan pasalic
Daniel Brown wrote: On Jan 4, 2008 12:28 PM, afan pasalic [EMAIL PROTECTED] wrote: Daniel Brown wrote: On Jan 4, 2008 12:06 PM, afan pasalic [EMAIL PROTECTED] wrote: hi I have function function get_content($client_id, $form_id, $index1) { $query = mysql_query(

Re: [PHP] function I created doesn't work

2008-01-04 Thread Daniel Brown
On Jan 4, 2008 12:52 PM, afan pasalic [EMAIL PROTECTED] wrote: I think you didn't understand my question: I know why the function work in 2nd example. My question was why I'm not getting the result in 1st example? What am I doing wrong. And, as far as I know, I think it doesn't have anything

Re: [PHP] function I created doesn't work

2008-01-04 Thread Jim Lucas
afan pasalic wrote: hi I have function function get_content($client_id, $form_id, $index1) { $query = mysql_query( SELECT content FROM infos WHERE client_id=.$client_id. AND form_id=.$form_id. AND

Re: [PHP] function I created doesn't work

2008-01-04 Thread Daniel Brown
On Jan 4, 2008 12:52 PM, afan pasalic [EMAIL PROTECTED] wrote: I think you didn't understand my question: I know why the function work in 2nd example. My question was why I'm not getting the result in 1st example? What am I doing wrong. And, as far as I know, I think it doesn't have anything

Re: [PHP] function I created doesn't work

2008-01-04 Thread afan pasalic
Daniel Brown wrote: On Jan 4, 2008 12:52 PM, afan pasalic [EMAIL PROTECTED] wrote: I think you didn't understand my question: I know why the function work in 2nd example. My question was why I'm not getting the result in 1st example? What am I doing wrong. And, as far as I know, I think it

Re: [PHP] function I created doesn't work

2008-01-04 Thread Jim Lucas
afan pasalic wrote: Daniel Brown wrote: On Jan 4, 2008 12:52 PM, afan pasalic [EMAIL PROTECTED] wrote: I think you didn't understand my question: I know why the function work in 2nd example. My question was why I'm not getting the result in 1st example? What am I doing wrong. And, as far as I

Re: [PHP] function I created doesn't work

2008-01-04 Thread Daniel Brown
On Jan 4, 2008 12:28 PM, afan pasalic [EMAIL PROTECTED] wrote: Daniel Brown wrote: On Jan 4, 2008 12:06 PM, afan pasalic [EMAIL PROTECTED] wrote: hi I have function function get_content($client_id, $form_id, $index1) { $query = mysql_query( SELECT

Re: [PHP] function I created doesn't work [SOLVED]

2008-01-04 Thread afan pasalic
Daniel Brown wrote: On Jan 4, 2008 12:52 PM, afan pasalic [EMAIL PROTECTED] wrote: I think you didn't understand my question: I know why the function work in 2nd example. My question was why I'm not getting the result in 1st example? What am I doing wrong. And, as far as I know, I think it

Re: [PHP] function I created doesn't work

2008-01-04 Thread afan pasalic
Jim Lucas wrote: afan pasalic wrote: Daniel Brown wrote: On Jan 4, 2008 12:52 PM, afan pasalic [EMAIL PROTECTED] wrote: I think you didn't understand my question: I know why the function work in 2nd example. My question was why I'm not getting the result in 1st example? What am I doing