Need some Help! [:)]

From: Date: Tue, 06 Feb 2001 04:27:46 +0000
Subject: Need some Help! [:)]
Groups: php.general 
Request: Send a blank email to php-general+get-38346@lists.php.net to get a copy of this message
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.

« previous php.general (#38346) next »