My Forum Software

Taz

Seasoned Veteran
Joined
Mar 1, 2009
Messages
3,652
Reaction score
2
FP$
1,032
I have just now finished coding my own forum software. Its has some bugs but its not advanced that you guys can't fix it.
 
Once I did I got a problem. Whats wrong with this line?
function mss($value){
return mysql_real_escape_string(trim(strip_tags($value)));


the problem is Parse error: syntax error, unexpected T_FUNCTION in /home/aplus/public_html/global.php on line 6
 
This is what it should look like:
function mss($value) {
return mysql_real_escape_string(trim(strip_tags($value)));
}
 
oh thank you.<br /><br />-- 28 Aug 2010, 14:26 --<br /><br />oh thank you.
 
Good start^
Well I don't know what is wrong then. Did you copy n paste that code I gave you?
 
Now this is really me guessing:

function mss($value){
return mysql_real_escape_string(trim(strip_tags($value)));
}

Or,

function.mss($value) {
return mysql_real_escape_string(trim(strip_tags($value)));
}

If they don't work then even my imagination won't think of anything.
 
Did you follow the whole tutorial when you created the forum? When I was trying out the tutorial it worked fine for me.
 
It was the php squad one. But a lot of things have changed since then. New layout for the logging in, registration and stuff. I fixed the error by using the require function
 
Usually those tutorials are beyond horrible. It's a good idea to design it from the ground up yourself. First you need a library of essential functions which will decrease the size of your overall code by something like 80%. It's a good idea to write classes for databases, templates, threads, users, and so on. Object orientation is very handy in PHP because it allows you to do things very quickly in your source and makes code easier to read. Tutorials like that are not going to teach you how to make anything very good.
 
Back
Top Bottom