user profile background

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    user profile background

    this is the coding i have but it dnt seem to work at all............


    on user profile

    PHP Code:
    //------------------//
    
    $data = mysql_fetch_assoc(mysql_query("select * from pg_user where login ='$puser'"));
    
    echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"pstyle/".$data['theme']."\">";
    
    //----------------//
    
    // choose backgrounds and update
    
    //-----------------//
    
    if ($_REQUEST['task'] == 'update') 
    {
    
    $theme = isset($_REQUEST['theme']) ? $_REQUEST['theme'] : '';
    
    $size = isset($_REQUEST['size']) ? $_REQUEST['size'] : '';
    
    
    mysql_query("update pg_user set align='$align', theme='".$theme."_".$size.".css' where login='$user'");
    
    echo "<div style=\"font-weight: bold; color: #3C6400; background-color:#E1FAE1; border: 1px solid #3C6400; padding: 2px\">";                
    
    
    echo "<b>Profile Style</b><br/></div>";
    
    }
    
    
    echo "</p>";
    
    
    
    echo "<form action=\"profile-edit_photo.php?".$mysid."\" method=\"post\">";
    
    echo "<p>";
    
    echo "<b>Profile Color</b>:<br/>";
    
    echo "<select name=\"theme\">";
      
    echo "<option value=\"white\">White</option>";
      
    echo "<option value=\"black\">Black</option>";
      
    echo "<option value=\"red\">Red</option>";
      
    echo "<option value=\"blue\">Blue</option>";
      
    echo "<option value=\"green\">Green</option>";
      
    
    echo "</select>";
    
    echo "<select name=\"size\">";
      
    echo "<option value=\"small\">Small</option>";
      
    echo "<option value=\"medium\">Medium</option>";
      
    echo "<option value=\"large\">Large</option>";
      
    echo "</select>";
    
    echo "<input name=\"task\" type=\"hidden\" value=\"update\"/>";
    
    echo "<input name=\"$sessname\" type=\"hidden\" value=\"$cid\"/>";
    
    echo "<input name=\"submit\" type=\"submit\" class=\"submitter\" value=\"Save\"/>";
    
    echo "</form>"; 
    

    is there any fault there?
    Last edited by wap_king; 16.05.10, 07:05.

    #2
    looks ok to me lol
    have you checked in database to see if its updating?

    Comment


      #3
      Much better to use css gallery like what ive coded in my site at http://pinoygsm.net

      Comment


        #4
        something else it updates in the database just that the profile color does not changes at all

        Comment


          #5
          mail me ill giv u the code 4 lava


          ....................................
          http://photomag.lk/
          ....................................

          Comment


            #6
            dnt use lava bro...if it was lava i wudnt have any probs

            Comment


              #7
              damn ryt.. what is this


              ....................................
              http://photomag.lk/
              ....................................

              Comment


                #8
                if its updating into database then the problem is the collection method on your profiles

                Comment

                Working...
                X