Gayner Posted August 10, 2009 Share Posted August 10, 2009 if(isset($_POST['avatar'])){ mysql_query("UPDATE ibf_members SET avatar='25' WHERE id={$ibforums->member['id']}"); header("Location: index.php?act=UserCP&CODE=Avatar"); } I have this as my HTML: Avatat url * <input type="text" name="avatar" value=""> <input type="Submit" value="Update Avatar"> How can I update another field name using only 1 mysql_query function too? thx Link to comment https://forums.phpfreaks.com/topic/169538-solved-can-i-add-more-forms/ Share on other sites More sharing options...
halfman Posted August 10, 2009 Share Posted August 10, 2009 I am not sure what you want to do but I think you should be able to use AND or pass the field name and tablename from another table in your db as variables. Link to comment https://forums.phpfreaks.com/topic/169538-solved-can-i-add-more-forms/#findComment-894514 Share on other sites More sharing options...
Gayner Posted August 10, 2009 Author Share Posted August 10, 2009 I am totally lost, on what u said xD:d Link to comment https://forums.phpfreaks.com/topic/169538-solved-can-i-add-more-forms/#findComment-894522 Share on other sites More sharing options...
halfman Posted August 10, 2009 Share Posted August 10, 2009 my bad, Cant you do this: mysql_query("UPDATE ibf_members SET avatar='25', fieldName2 = 'value' WHERE id={$ibforums->member['id']}"); If not then I am not following your problem and I need a bit more info on that. Link to comment https://forums.phpfreaks.com/topic/169538-solved-can-i-add-more-forms/#findComment-894561 Share on other sites More sharing options...
Gayner Posted August 10, 2009 Author Share Posted August 10, 2009 Sweet, omg awesome, I love mysql now , thanks a bunch sir. Link to comment https://forums.phpfreaks.com/topic/169538-solved-can-i-add-more-forms/#findComment-894563 Share on other sites More sharing options...
halfman Posted August 10, 2009 Share Posted August 10, 2009 Sweet, omg awesome, I love mysql now , thanks a bunch sir. No worries mate Link to comment https://forums.phpfreaks.com/topic/169538-solved-can-i-add-more-forms/#findComment-894566 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.