Hi!

I use php and IIS on win2000, and I have a php page where i try to use concat like:

$hm = concat('c' , 'b');
echo "value of hm: ";
echo $hm;

When I run start the page I get the error:
Fatal error: Call to undefined function: concat() in e:\inetpub\wwwroot\tev_ws\h_v2.php on line 89

Can anyone help me/tell me what to do?

Best regards,
Tom-Erik

    concat() is not a php function. I think it is a SQL function though.

    Anway, the concat operator in PHP is a dot '.'

    so

    $hm = 'c'.'b'; 
    echo "value of hm: "; 
    echo $hm;

    next time, try giving http://www.php.net/ a search first.

      try:
      $hm="c"."b";

      I checked the manual, and don't see a function called concat--and the . is the string concat for PHP that I have always used.

        Hi!

        You were both right.

        The concat function I mentioned was described in the MySQL chapter of my tutorial, not PHP.

        Now it works!

        Thanks a lot!

        Best regards,
        Tom-Erik

          Write a Reply...