Jump to content
MakeWebGames

Recommended Posts

Posted

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

Posted

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'] ." ");

  • 5 months later...
Posted

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.

Posted

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

Posted

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

Posted

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.

Posted

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...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...