Re: [PHP] str_replace() problem

2003-03-31 Thread Marcus Rasmussen
); _ Marcus Rasmussen [EMAIL PROTECTED] www.marcusr.dk - On 31-03-2003 at 13:52 René Fournier wrote: - I am performing a str_replace() on a large string, and everything works

Re: [PHP] global var.

2003-03-31 Thread Marcus Rasmussen
Putting an sign in front of the $id in the first line should do the trick: $variable = $id; A short example: $bar = 0; $foo = $bar; $bar = 2; print $foo; //prints 2 __ Marcus Rasmussen [EMAIL PROTECTED] www.marcusr.dk

RE: [PHP] parse_str()

2003-03-31 Thread Marcus Rasmussen
This should work: parse_str($example_string, $_GET); ___ Marcus Rasmussen [EMAIL PROTECTED] www.marcusr.dk - On 01-04-2003 at 03:20 Jose wrote: - I might

Re: [PHP] Arrays in forms {?!}

2002-04-24 Thread Marcus Rasmussen
it. You can get more information at: http://www.php.net/manual/en/control-structures.foreach.php http://www.php.net/manual/en/language.variables.external.php _ Marcus Rasmussen - On 24-04-02

RE: [PHP] SQL Question

2002-03-28 Thread Marcus Rasmussen
You could do it this way WHERE column LIKE 's%' ORDER BY column Now you'll get all rows sorted and where column is staring with an 's' or 'S' - On 28-03-02 at 17:30 Sebastian A. wrote:

Re: [PHP] Generating variable names 'on the fly'

2001-09-21 Thread Marcus Rasmussen
You can allso do like this: $i = 1; ${test. $i} = 123; echo $test1; ___ Marcus Rasmussen [EMAIL PROTECTED] On 21-09-01 at 11:21 _lallous wrote: you can always use eval to create a variable too! ? $i = 1; eval(\$test$i=123;); echo $test1; ? Neil Freeman

[PHP] How do I detect if mysql_connect failes?

2001-04-19 Thread Marcus Rasmussen
Hello. My question is: How do I detect if mysql_connect() failed when I'm surpressing the error message with @ like $linkid = @mysql_connect("host","user","pass"); And how do I, if it failes, get the error message? The manuel says that it: [quote]Returns a positive MySQL link identifier on

Re: [PHP] How do I detect if mysql_connect failes?

2001-04-19 Thread Marcus Rasmussen
and write the error message myself, but I just want the original one, wich I should be able to get with mysql_error() PS. It is only mysql_connect that do it. Marcus R. *** REPLY SEPARATOR *** On 20-04-01 at 12:35 David Robley wrote: On Fri, 20 Apr 2001 12:19, Marcus

Re: [PHP] help with classes

2001-02-13 Thread Marcus Rasmussen
You can allso do this: //foo.class.php class Foo{ var $bar; function Foo($bar){ $this-bar = $bar; } } //foo.php include("foo.class.php"); $bar = "1234"; $foo = new Foo($bar); //Now: $foo-bar = "1234" Regards: Marcu