Trying to connect to another table.

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Locked
investintech

Trying to connect to another table.

Post 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
Last edited by investintech on Thu May 17, 2007 4:21 pm, edited 1 time in total.
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm

Re: Trying to connect to another table.

Post 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}
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
investintech

Re: Trying to connect to another table.

Post 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...
investintech

Re: Trying to connect to another table.

Post by investintech »

Nevermind... I was able to fix it thanks!
Locked

Return to “CMSMS Core”