PDA

View Full Version : SQL Redeclare Problem


Goatpod
11-11-2005, 07:41 AM
I've got two modules (php pages) that seem to be clashing with each other and producing the following error message.

Fatal error: Cannot redeclare getsqlvaluestring() (previously declared in...

I'm presuming that the errors something to do with:

function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")

Can anyone offer any advice?

And... while I'm here, is there any way to include CSS into a PHP module - mine don't seem to want to play :confused:

Thanks,

Dave

Goatpod
11-11-2005, 07:52 AM
Ah, sorted.... this learning curve is a bit steep but I'm getting there :)

Just redefined 'GetSQLValueString' and it works fine now!

Our Sponsors
 

Brian
11-11-2005, 10:33 AM
And... while I'm here, is there any way to include CSS into a PHP module - mine don't seem to want to play :confused:
If I'm thinking correctly, you should be able to add something like this in your PHP file:

$headinclude .= '<style type="text/css" id="vbulletin_css">

Your CSS here

</style>';

Goatpod
11-11-2005, 10:37 AM
Thanks, Brian,

I shall give it a go :)