RE: [PHP] Problem using return from a class.

2005-02-08 Thread Ben Edwards (lists)
the method. If I do echo $radio_html; The condense of the variable gets outputted. I could post the method here but its a bit long. Ben -- Ben Edwards - Poole, UK, England If you have a problem sending me email use this link http://www.gurtlush.org.uk/profiles.php?uid=4 (email addre

[PHP] Magic Quotes

2005-02-10 Thread Ben Edwards (lists)
do not actually have to do anything to data fetched from the database. If magic quoted are not on you have to add slashes before you add to the database. There is also another function you need pass stuff through if you are going to use it in an , what is that function? Ben -- Ben Edwards - Poole

Re: [PHP] Magic Quotes

2005-02-10 Thread Ben Edwards (lists)
On Thu, 2005-02-10 at 13:28 +0100, Jochem Maas wrote: > Ben Edwards (lists) wrote: > > Am I correct in thinking Magic Quotes automatically adds quotes to all > > posted variables, therefore if you are displaying post variables on a > > form you have to remove the quotes. Th

Re: [PHP] Magic Quotes

2005-02-10 Thread Ben Edwards (lists)
On Thu, 2005-02-10 at 13:45 +0100, Jochem Maas wrote: > Ben Edwards (lists) wrote: > > PS phpsc.net seems to be down, or is the domain wrong? > > er yes, oops. as Jeffery pointed out it should have been > phpsec.org. had a brainfreeze sorry. OK, trying to do a function to r

[PHP] Magic Quotes Removal code - almost there

2005-02-10 Thread Ben Edwards (lists)
quotes_runtime is false even if magic codes are on, any ideas? Ben -- Ben Edwards - Poole, UK, England If you have a problem sending me email use this link http://www.gurtlush.org.uk/profiles.php?uid=4 (email address this email is sent from may be defunct) signature.asc Description: This is a

[PHP] Creating a varable with a name held in a string

2005-02-10 Thread Ben Edwards (lists)
e foreach( $row as $index => value ) { create_var( $index, $value ); } So the question is is there a function like create_var which takes a string and a value and creates a variable? Ben -- Ben Edwards - Poole, UK, England If you have a problem sending me email use this link http://www.gurtl

[PHP] Finding position of New line in string

2004-02-25 Thread Ben Edwards (lists)
I am trying to find the position of the first occurrence on new line in a string that comes from a database. I tried $pos = strpos( $list_text, "/n" ); But it never returns anything. Any help would be much appreciated. Ben -- Ben EdwardsTel +44 (0)1179 553 551 IC

[PHP] Problem with foreatch()

2005-01-16 Thread Ben Edwards (lists)
However if I replace it with: print_r( $_POST["mtype"] ); I get: Array ( [1] => RESTAURANT [2] => BEVERAGEWINE [3] => MAIN ) so the array is populated, what am I doing Wrong? Regards, Ben -- Ben Edwards - Poole, UK, England If you have a problem sending me emai

[PHP] Problem with hidden form input values

2005-01-19 Thread Ben Edwards (lists)
post? Ben -- Ben Edwards - Poole, UK, England If you have a problem sending me email use this link http://www.gurtlush.org.uk/profiles.php?uid=4 (email address this email is sent from may be defunct) signature.asc Description: This is a digitally signed message part

[PHP] Loading all clases always

2005-01-22 Thread Ben Edwards (lists)
will all probably be needed by one of the visitors. Ben -- Ben Edwards - Poole, UK, England If you have a problem sending me email use this link http://www.gurtlush.org.uk/profiles.php?uid=4 (email address this email is sent from may be defunct) -- Ben Edwards - Poole, UK, England If you have a

[PHP] Is there a function to c if a php function exists

2005-02-02 Thread Ben Edwards (lists)
exists in PHP. That way I can have the relevant validation skipped if the function is missing (I will tell the client if they get decent hosting it will start working). So something like function_exists( cal_days_in_month() ) Anyone know what the function is called. Ben -- Ben Edwards - P

<    1   2