Jump to content
MakeWebGames

[mccodes] Quote Mod


Danny
 Share

Recommended Posts

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

Link to comment
Share on other sites

  • 5 months later...

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.

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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.

 Share

×
×
  • Create New...