So here’s the deal. I have a SQL db that includes a home column that has the users home page. When a user logs in, I’ve been using the myaql_fetch_field to grab the column that pertains to that user and include it as part of a relative url using header(location:). My problem is, that no matter how I do it, an error spits back saying “Object of class stdClass could not be converted to string”. What am I doing wrong here?
if($count==1){
$home=mysql_fetch_field($result,3);
session_register("myusername");
session_register("mypassword");
header("Location: http://$host$uri/$home");
}
else {
header("Location:index.php");
}