[OpenSIPS-Users] OPENSIPS_CP DIALPLAN
jwilkie at usipcom.com
Tue Aug 30 16:08:43 CEST 2016
So reading the following:
The string that is to be escaped.
The MySQL connection. If the link identifier is not specified, the last
link opened by mysql_connect
assumed. If no such link is found, it will try to create one as if
been called with no arguments. If no connection is found or established, an
E_WARNING level error is generated.
Returns the escaped string, or FALSE on error.
Executing this function without a MySQL connection present will also emit
E_WARNING level PHP errors. Only execute this function with a valid MySQL
I decided to remove the $link from each of the sections under the "modify"
portion of the code. Assuming since in the code we call the DB connection
in the include statement anyway, the $link should already be established
and able to be assumed. The code executes as expected with no warnings.
This does not tell me why is doesn't work yet but it does tell me that the
connection to the DB is established and working as expected along with the
code minus this one parameter.
I checked all of my patch versions and PDO with mysqli shouldn't be
required until 5.5 where I'm on 5.3. Using PDO would have me rewriting
this entire section I would think.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Users