Ownercp - User Update

Started on the old forum in October 2008 · view the original in the archive · old links redirect here

6 replies · 746 views · started 18 years ago · 1 min read

2 participants
kiss Senior · 294 posts #1

Hi,i create in ownercp an option to update user information from ibwf_xinfo but dont work,can anybody give me some ideas or help coding?It something like this:

ownercp.php

else if($action=="user_xinfo") { if($mime== WEB) { echo webhead($uthm,$stitle); $goodhabits= mysql_fetch_array(mysql_query("SELECT goodhabitsFROM ibwf_xinfo WHERE id='".$who."'")); $badhabits = mysql_fetch_array(mysql_query("SELECT badhabits FROM ibwf_xinfo WHERE id='".$who."'")); echo "<form action="ownerproc.php?action=uprof&ses=$ses&who=$who" method="post">"; echo "Goodhabits: <input name="ghabits" maxlength="15" value="$goodhabits[0]"/> "; echo "Badhabits: <input name="bhabits" maxlength="100" value="$badhabits[0]"/> "; echo "<input type="submit" value="Update"/>"; echo "</form>"; echo webfoot(); }else{ echo waphead($stitle); etc etc etc etc..... echo wapfoot(); }
}

ownerproc.php

bla bla bla the update thing

www.inbuzunar.mobi -Your mobile portal pocket

kiss Senior · 294 posts #2

damn'it nobody knows how to update ibwf_xinfo users profiles in ownercp,just create an example that it work god damn it.

www.inbuzunar.mobi -Your mobile portal pocket

Guest #3

Hi,i create in ownercp an option to update user information from ibwf_xinfo but dont work,can anybody give me some ideas or help coding?It something like this:

ownercp.php

else if($action=="user_xinfo") { if($mime== WEB) { echo webhead($uthm,$stitle); $goodhabits= mysql_fetch_array(mysql_query("SELECT goodhabitsFROM ibwf_xinfo WHERE id='".$who."'")); $badhabits = mysql_fetch_array(mysql_query("SELECT badhabits FROM ibwf_xinfo WHERE id='".$who."'")); echo "<form action="ownerproc.php?action=uprof&ses=$ses&who=$who" method="post">"; echo "Goodhabits: <input name="ghabits" maxlength="15" value="$goodhabits[0]"/> "; echo "Badhabits: <input name="bhabits" maxlength="100" value="$badhabits[0]"/> "; echo "<input type="submit" value="Update"/>"; echo "</form>"; echo webfoot(); }else{ echo waphead($stitle); etc etc etc etc..... echo wapfoot(); }
}

ownerproc.php

bla bla bla the update thing

parca era uid in tabel xinfo nu id;)

kiss Senior · 294 posts #4

parca era uid in tabel xinfo nu id;)

lol ai vazut bine e uid 😉 eu am facut un demo dar nu imi iese deloc cred ca de asta nu a creat nimeni pina acum editarea profilului in tabelul xinfo pt administratie.

www.inbuzunar.mobi -Your mobile portal pocket

kiss Senior · 294 posts #6

use UPDATE ibwf_xinfo in ownerproc.php?action=uprof

i try any combinations i've come in my mind but no result..it update but not in mysql only in file...

www.inbuzunar.mobi -Your mobile portal pocket

rukiya Lead · 569 posts #7

use it

else if($action=="user_xinfo")
{
if($mime== WEB)
{
echo webhead($uthm,$stitle);
$goodhabits= mysql_fetch_array(mysql_query("SELECT goodhabits FROM ibwf_xinfo WHERE id='".$who."'"));
$badhabits = mysql_fetch_array(mysql_query("SELECT badhabits FROM ibwf_xinfo WHERE id='".$who."'"));
echo "<form action=\"ownerproc.php?action=uprof&ses=$ses&who=$who\" method=\"post\">";
echo "Goodhabits: <input type=\"hidden\" name=\"ghabits\" value=\"$goodhabits[0]\"/>
";
echo "Badhabits: <input type=\"hidden\" name=\"bhabits\" value=\"$badhabits[0]\"/>
";
echo "<input type=\"submit\" value=\"Update\"/>";
echo "</form>";
echo webfoot();
}else{
echo waphead($stitle);
etc etc etc etc.....
echo wapfoot();
} 
}

else if($action=="uprof")

 mysql_query("UPDATE ibwf_xinfo SET goodhabits = '".$_POST["ghabits"]."', badhabits ='".$_POST["bhabits"]."' WHERE id='".$_GET["who"]."'");

be sure your $who,goodhabits,badhabits fields r not empty

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