user profile background

Started on the old forum in May 2010 · view the original in the archive · old links redirect here

7 replies · 1,038 views · started 16 years ago · 1 min read

4 participants
wap_king Developer · 126 posts #1

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

on user profile

//------------------//

$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?

something else Fellow · 2,296 posts #2

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

l0rdrayven Developer · 83 posts #3

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

Not i rip persons off i will also do your arse !

wap_king Developer · 126 posts #4

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

centi Developer · 159 posts #5

mail me ill giv u the code 4 lava

😳 .................................... http://photomag.lk/ .................................... 🤨

wap_king Developer · 126 posts #6

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

centi Developer · 159 posts #7

damn ryt.. what is this

😳 .................................... http://photomag.lk/ .................................... 🤨

something else Fellow · 2,296 posts #8

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

Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close