Jump to content
MakeWebGames

[mccode] Annoucement Mod


oxidati0n

Recommended Posts

  • Replies 93
  • Created
  • Last Reply

Top Posters In This Topic

Guest Anonymous

Re: [mccode] Annoucement Mod

ok in the mod

everywhere you see

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

replace it with

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

everytime you see this

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

replace it with this

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

Link to comment
Share on other sites

Guest Anonymous

Re: [mccode] Annoucement Mod

 

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

what would I change these too

Link to comment
Share on other sites

Guest Anonymous

Re: [mccode] Annoucement Mod

oh i screwed up i am sorry

mysql_num_rows = $db->num_rows

mysql_error = $db->error

mysql_fetch_array = $db->fetch_array

mysql_fetch_row = $db->fetch_row

basically you repleace the mysql_ with $db->

Link to comment
Share on other sites

Guest Anonymous

Re: [mccode] Annoucement Mod

$is=$db->query("SELECT u.*,us.* FROM users u LEFT JOIN userstats us ON u.userid=us.userid WHERE u.userid=$userid",$c) or die($db->error());

 

 

this is wrong. what I put for it

Link to comment
Share on other sites

Guest Anonymous

Re: [mccode] Annoucement Mod

ya it is but yours is soo much better. The one that comes with it sucks., do you know my problem and how to fix it

Link to comment
Share on other sites

  • 2 weeks later...

Re: [mccode] Annoucement Mod

Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/omegacri/public_html/ann.php on line 87

Announcements

Post New Annoucement

Announcements are posted here and can be discussed by the fellow members

Details Topic Announcement Discussions Delete

Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/omegacri/public_html/ann.php on line 139

There are currently no annoucements posted.

Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/omegacri/public_html/ann.php on line 144

 

and yes i did execute the sql

Link to comment
Share on other sites

Re: [mccode] Annoucement Mod

Well thats kinda impossible

Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in

in short words meaning "cannot find table".

 

:) check in database if them tables exist.

The script isn't errored because it's worked for everyone else. :)

Link to comment
Share on other sites

Re: [mccode] Annoucement Mod

ok i did get this mod installed today and it is working instead of running the querie in the db i tried put the tables in manually that is where i messed up. Thanks

now just working on it showing everyone when there is an announcement

Link to comment
Share on other sites

Re: [mccode] Annoucement Mod

 

oh i screwed up i am sorry

mysql_num_rows = $db->num_rows

mysql_error = $db->error

mysql_fetch_array = $db->fetch_array

mysql_fetch_row = $db->fetch_row

basically you repleace the mysql_ with $db->

Some of thats wrong,

mysql_fetch_array = $db->fetch_row

mysql_fetch_rows = $db->fetch_rows

Link to comment
Share on other sites

Re: [mccode] Annoucement Mod

yeah just do

$_POST['lala']=str_replace(array("<",">","/n"),array("","","

"), $_POST['lala']);

that stops HTML, dont know about ajax.

In AJAX the J means JavaScript and the X means XML == AJAX - Anstronomous Javascript and XML.

:) not exactly sure about the first A spelling lol, its too long and boring to keep in my head lol.

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.


×
×
  • Create New...