Danny Posted July 22, 2008 Posted July 22, 2008 Well, i first saw this on a game and someone wanted me to make it, so i did, well with a bit of help from lostone on the changing of it, so hear it is. You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. add this to php myadmin now wherever you want the quote to show add: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Now in prefrences add this to functions You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. add the link now You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. add this before endpage You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Their it should all be in working order if you need any help pm me or msn me Quote
Mark F Posted July 22, 2008 Posted July 22, 2008 Re: [Mccodes] Quote Mod A very interesting feature. Quote
Isomerizer Posted July 23, 2008 Posted July 23, 2008 Re: [Mccodes] Quote Mod This query will surely error? mysql_query("UPDATE `users` SET `quote` = '$q' WHERE `userid` = " . $ir['userid']); Should be.. mysql_query("UPDATE `users` SET `quote` = '$q' WHERE `userid` = " . $ir['userid'] ." "); Quote
Haunted Dawg Posted January 4, 2009 Posted January 4, 2009 Re: [mccodes] Quote Mod This query will surely error? mysql_query("UPDATE `users` SET `quote` = '$q' WHERE `userid` = " . $ir['userid']); Should be.. mysql_query("UPDATE `users` SET `quote` = '$q' WHERE `userid` = " . $ir['userid'] ." "); I had to quote this. Never really noticed this topic. But iso. that query wont error out. Quote
Haunted Dawg Posted January 4, 2009 Posted January 4, 2009 Re: [mccodes] Quote Mod Luke if you were using the ".$val." way why did you not do that with $q? as in: mysql_query("UPDATE `users` SET `quote` = '" . $q . "' WHERE `userid` = " . $ir['userid']); Quote
Zero-Affect Posted January 4, 2009 Posted January 4, 2009 Re: [mccodes] Quote Mod You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. would that not be a easier solution? Quote
Haunted Dawg Posted January 4, 2009 Posted January 4, 2009 Re: [mccodes] Quote Mod Get lost with sprintf :). mysql_query("UPDATE users SET quote='".$q."' WHERE userid=".$ir['userid']); Why need more when it is already being secured by mysql_real_escape_string aka mres Quote
gurpreet Posted January 4, 2009 Posted January 4, 2009 Re: [mccodes] Quote Mod Where would you put this? Viewuser? Quote
Zero-Affect Posted January 4, 2009 Posted January 4, 2009 Re: [mccodes] Quote Mod the mres only secures the $_POST... better safe than sorry Kyle $q = mysql_real_escape_string($_POST['quote']); just because you don't use it doesn't mean others can't get over yourself trying to hold people back from advancing their skills, just because you do not want to progress doesn't mean other don't. [me=zero]Giggles[/me] + 1 Danny Quote
Haunted Dawg Posted January 4, 2009 Posted January 4, 2009 Re: [mccodes] Quote Mod Please go look at professional's programming. Maybe wow.. nyna use's sprintf big woopie doo! i do not care about her -.- I have seen some good programming. Ever tried programming python? i guess youll never know. Quote
Zero-Affect Posted January 4, 2009 Posted January 4, 2009 Re: [mccodes] Quote Mod ever tried getting a life and FYI i am about 1/4 through the php and mysql bible... so manuals i have done i also spend alot of time on php.net researching functions which may make things easier... 20% of my time is used on research and 60% is coding the other 20% is reading idiotic messages from a ignoramus on CE and in classic English slang i will end this conversation with... Jog On... Quote
gurpreet Posted January 4, 2009 Posted January 4, 2009 Re: [mccodes] Quote Mod So uhhmm...Where would be best to put this? Viewuser it might be too long (Varchar 255) so...yeah Quote
Haunted Dawg Posted January 4, 2009 Posted January 4, 2009 Re: [mccodes] Quote Mod exactly my point to zero. But was just wondering. Quote
gurpreet Posted January 4, 2009 Posted January 4, 2009 Re: [mccodes] Quote Mod When I add my quote under quote change, i get a blank page... Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.