Re: mysql_real_escape_string wants a string or a "resource"?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



2009/7/11 Govinda <govinda.webdnatalk@xxxxxxxxx>:
>> You're looking at the documentation for mysqli_real_escape_string but
>> using mysql_real_escape_string - notice the i in mysqli in the first
>> function name.
>
> right.  Thanks.
>
>>> p.s. what is a "resource" compared to a string?
>>
>> A resource is a variable type. See http://php.net/language.types.resource
>
> as in a db connection

That's one example of a resource, but in general terms it's a
reference to an external resource of some sort, specific to a
particular extension.

-Stuart

-- 
http://stut.net/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux