
Originally Posted by
holthelper
you have a script that will add the bbcode into the db or does the user have to insert it them selfs?
plz do a thread search of my username and look for my discussion thread then ask. this is basically the same as my thread which i was referring to in my earlier post
By that you mean the CSS and MySQL thread?
Again, you can use mysql_free_result().
I just have a bad habit of not using it.
Example:
PHP Code:
#Query#
$script = "SELECT * FROM `table`";
#Execute#
$execute = mysql_query($script) or die(mysql_error());
#Fetch Array#
$array = mysql_fetch_array($execute);
#Free MySQL Memory#
mysql_free_result($execute);
echo $array['message'];
By using mysql_free_result($query), you immediately free the memory.

Originally Posted by
holthelper
you have a script that will add the bbcode into the db or does the user have to insert it them selfs?
==================================================
This is just the SQL Database Part and Cype BBCode Parser Remake- no website UI.
It would be easy though, make a form, and query some stuff
Example
PHP Code:
$pattern = mysql_real_escape_string(stripslashes($_POST['pattern']));
$replace = mysql_real_escape_string(stripslashes($_POST['replace']));
$query = mysql_query("INSERT INTO `cype_bbcode` (`pattern`, `replacement`) VALUES ('".$patter."', '".$replace."'") or die("An error occurred: ".mysql_error());
echo "Succesfully added bbcode!";