Currently i have two files
post.php3 - http://www.bbhacks.com/board/post.phps
and
viewthread.php3 - http://www.bbhacks.com/board/viewthread.phps
what im trying to do is make it so signatures are dynamic. I think im close
but i also think since im fairly new i have some things wrong as well.
Basically in a nutshell... i made a new row in post signature int(1)
i replaced the normal code of if ($signature == yes) { $message .= blah }
with if ($signature == yes) { $memsig = "1"; }
and in post i have
if ($post[signature] == 1)
$sql = "SELECT * FROM members WHERE username='UserName'";
$query = mysql_db_query($database, $sql) or die(geterrdesc($sql));
$msig = mysql_fetch_array($query);
$msig[signature] = $sig;
$pagetext = $pagetext
. "<BR>____________<BR>" . censor(bbcodeparse($sig));
can u find any problems with this code at all?
the two problems im having are...
1. it puts a 1 in the db reguardless of choice.
2. when it is set to one, it shows _____________ but the signature is blank.
Ive even tried to echo it out and its blank, and as far as i know its right
thanks in advance.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]