);
_
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
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
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
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
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:
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
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
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
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
9 matches
Mail list logo