Page 1 of 1

Trying to connect to another table.

Posted: Thu May 17, 2007 4:07 pm
by investintech
CMSMS 1.0.6 "Niihau", Apache(?),  Mysql 4.1.10a-3,

Hey,

I've read through the documentation and searched the forum but I can't seem to find anything describing how to insert the simple line of php code on a page:

Code: Select all

require_once ('../mysql_connect2.php');
How do I get around the mysql_real_escape_string()?

Thanks

Re: Trying to connect to another table.

Posted: Thu May 17, 2007 4:09 pm
by calguy1000
there are two methods.  Put that line of code into a UDT, or:

change 'use_smarty_php_tags' to true in your config.php
then you can do stuff like:

{php}echo 'blah';{/php}

Re: Trying to connect to another table.

Posted: Thu May 17, 2007 4:11 pm
by investintech
I've done both but I receive the error:

Code: Select all

Warning: mysql_real_escape_string(): Access denied for user 'wwwrun'@'localhost' (using password: NO) in...

Re: Trying to connect to another table.

Posted: Thu May 17, 2007 4:24 pm
by investintech
Nevermind... I was able to fix it thanks!