128
I want to create a relatively simple script containing 3 MySQL queries.
Do I just assume that the connection to the database has already been opened, or do I need to do something like this at the start?
Quote:
include 'http://www.wazaa.co.uk/databasefactory.php'
I think databasefactory.php is XOOPS' main database connection script.
Also, when writing PHP in custom blocks, do I need to start with <?php and end in ?>, or can I get straight into the script?
Could someone please tell me hw to write MySQL scripts in custom blocks, or send me a script that they have already made.
Thanks in advance