Neo
08-25-2002, 06:59 AM
alright here is a example of the code I am using...
function tempinfo($vars...) {
// form html here
}
function newFunc($vars...) {
// error code and global here
if ($_GET['action']=="this") {
// tempinfo stuff here
}
if ($_POST['action']="that") {
$DB_site->query("UPDATE $dbtablename SET $dbtableset WHERE $dbtablewhere");
}
newFunc($vars..., $dbtablename="user",$dbtableset="this='that'",$dbtablewhere userid="$bbuserinfo[userid]");
Now the error I get is at the DB query... it says that the query is empty and is does to return a empty query... but when I echo the variables they show up just fine, or when I define the variables in the function it will work somewhat... but that is not what I am shooting for... so if you could enlighten me as to why it does this I would be very greatful..
thanks for your time
- Neo Funk :bandit:
function tempinfo($vars...) {
// form html here
}
function newFunc($vars...) {
// error code and global here
if ($_GET['action']=="this") {
// tempinfo stuff here
}
if ($_POST['action']="that") {
$DB_site->query("UPDATE $dbtablename SET $dbtableset WHERE $dbtablewhere");
}
newFunc($vars..., $dbtablename="user",$dbtableset="this='that'",$dbtablewhere userid="$bbuserinfo[userid]");
Now the error I get is at the DB query... it says that the query is empty and is does to return a empty query... but when I echo the variables they show up just fine, or when I define the variables in the function it will work somewhat... but that is not what I am shooting for... so if you could enlighten me as to why it does this I would be very greatful..
thanks for your time
- Neo Funk :bandit: