Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Post New Thread Reply

Register GFY Rules Calendar
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 02-01-2007, 08:53 AM   #1
who
So Fucking Banned
 
Join Date: Aug 2003
Location: ICQ #23642053
Posts: 19,593
Hardcore coding help needed

hi I just need someone to help me with one line of code in wordpress backend.

I have a new field in the 'wp_user' table of the wordpress database,

All I need to do is write some one line of code which will update that field with a value from $_POST

I am struggling now with this crap for a couple of hours... I feel like a retard and most likely am. But can anyone help me out?

Thanks.
who is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-01-2007, 08:59 AM   #2
who
So Fucking Banned
 
Join Date: Aug 2003
Location: ICQ #23642053
Posts: 19,593
I should've said '
who is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-01-2007, 08:59 AM   #3
who
So Fucking Banned
 
Join Date: Aug 2003
Location: ICQ #23642053
Posts: 19,593
I should've said 'simple help required'... I bet there's 50 people in here who could do this for me in 20 seconds...
who is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-01-2007, 09:27 AM   #4
xenilk
Confirmed User
 
xenilk's Avatar
 
Join Date: Jan 2006
Location: Canuck land!
Posts: 921
$value = $_POST['value'];
$query = sprintf("UPDATE wp_user SET field1 = 'whatever goes here' WHERE field2 = '%s'",
mysql_real_escape_string($value));
mysql_query($query);

Query could be changed/adapted to your needs.
xenilk is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-01-2007, 09:45 AM   #5
who
So Fucking Banned
 
Join Date: Aug 2003
Location: ICQ #23642053
Posts: 19,593
^ 10 points that man!!

Thank you you have solved my problem, I owe you!!
who is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-01-2007, 10:33 AM   #6
xenilk
Confirmed User
 
xenilk's Avatar
 
Join Date: Jan 2006
Location: Canuck land!
Posts: 921
No problem, glad I could help
xenilk is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.