Jump to content

php-lover

New Members
  • Posts

    5
  • Joined

  • Last visited

    Never

Everything posted by php-lover

  1. hi there, If you want to store your object in the session variable, remember to include all the dependent object files in order to work. example: include_once('myobject.php'); $_SESSION['myobject']->myfunction(); I haven't test the above code, but that's how I understand the object work.
  2. try this $sql = 'SELECT b.* FROM buds AS b JOIN unlocked_buds AS u ON b.bud_id = u.bud_id ORDER BY b.bud_id ASC'; $result = mysql_query($sql) or die(mysql_error());
  3. Hi there, Make sure that every user must have a unique field name on the form. If you only use one field name on every user then it will cause the problem you experience.
  4. try this $data = htmlentities($data, ENT_QUOTES, "UTF-8"); echo $data;
  5. Hi there, you might need to debug your query string to make sure it's correct. You can print out the query without call the mysql_query() function. This will let you examine the query. Example: echo "UPDATE ".$prefix."users SET nickname='".$nickname."' , gender='".$gender."' , color='".$color."' , profile='".$profile."' , favpet='".$favpet."' , about='".$about."' , WHERE username='".$loggedinname."'; I'm sure there's a problem in your query, and it might be a variable is not set. hope it help.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.