define('PUN_ROOT', './');
require PUN_ROOT.'include/common.php';
if(!$pun_user['is_guest'])
{
$aboutme = $_POST['about_me'];
$interests = $_POST['interests'];
$query1 = $dbh->prepare('UPDATE users SET fm_aboutme=? WHERE id=?');// or error('Unable to update about me', __FILE__, __LINE__, $db->error());
$query2 = $dbh->prepare('UPDATE '.$db->prefix.'users SET fm_interests=? WHERE id=?') or error('Unable to update interests', __FILE__, __LINE__, $db->error());
$query1->execute(array($db->prefix,$aboutme, $pun_user['id']));
$query2->execute(array($interests, $pun_user['id']));
redirect('field.php?id='.$pun_user['id']);
its giving me the error on the topic title. and i need to know how to fix it. also i am useing PunBB with this. anyway i tried turning $dbh into $db, and making a new dbh, but nothing worked.
This post has been edited by SoraCross: 24 March 2007 - 02:50 PM

New Topic/Question
Reply




MultiQuote




|