Guest Anonymous Posted April 13, 2007 Share Posted April 13, 2007 Re: [mccode] Annoucement Mod You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. does that match your header? Quote Link to comment Share on other sites More sharing options...
Guest Anonymous Posted April 13, 2007 Share Posted April 13, 2007 Re: [mccode] Annoucement Mod You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. ya Quote Link to comment Share on other sites More sharing options...
Guest Anonymous Posted April 13, 2007 Share Posted April 13, 2007 Re: [mccode] Annoucement Mod and you added the announcment mod right? Quote Link to comment Share on other sites More sharing options...
Guest Anonymous Posted April 13, 2007 Share Posted April 13, 2007 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. Quote Link to comment Share on other sites More sharing options...
Guest Anonymous Posted April 13, 2007 Share Posted April 13, 2007 Re: [mccode] Annoucement Mod ok, ill try it. Im hopping that this mod is worth all this trouble. lol Quote Link to comment Share on other sites More sharing options...
Guest Anonymous Posted April 13, 2007 Share Posted April 13, 2007 Re: [mccode] Annoucement Mod if i have to i will rewrite it too work with 2.0 Quote Link to comment Share on other sites More sharing options...
Guest Anonymous Posted April 13, 2007 Share Posted April 13, 2007 Re: [mccode] Annoucement Mod well if this works, then Ill post it here saying it for version 2.0 Quote Link to comment Share on other sites More sharing options...
Guest Anonymous Posted April 13, 2007 Share Posted April 13, 2007 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 Quote Link to comment Share on other sites More sharing options...
Guest Anonymous Posted April 13, 2007 Share Posted April 13, 2007 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-> Quote Link to comment Share on other sites More sharing options...
Guest Anonymous Posted April 13, 2007 Share Posted April 13, 2007 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 Quote Link to comment Share on other sites More sharing options...
Guest Anonymous Posted April 13, 2007 Share Posted April 13, 2007 Re: [mccode] Annoucement Mod take out ,$c Quote Link to comment Share on other sites More sharing options...
Guest Anonymous Posted April 13, 2007 Share Posted April 13, 2007 Re: [mccode] Annoucement Mod ok this code is all messed up. Still syas error. Can you rewrite this code for me. Quote Link to comment Share on other sites More sharing options...
oxidati0n Posted April 13, 2007 Author Share Posted April 13, 2007 Re: [mccode] Annoucement Mod mcdeath87 - this mod is for mccodes version 1.0, i didnt design it for v2 because its preloaded with annoucements mod (right?) Quote Link to comment Share on other sites More sharing options...
Guest Anonymous Posted April 13, 2007 Share Posted April 13, 2007 Re: [mccode] Annoucement Mod yeah lol Quote Link to comment Share on other sites More sharing options...
Guest Anonymous Posted April 14, 2007 Share Posted April 14, 2007 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 Quote Link to comment Share on other sites More sharing options...
Solid Snake Posted April 14, 2007 Share Posted April 14, 2007 Re: [mccode] Annoucement Mod this mod could be modified more so that it says Announcements(0) when there isnt no new announcements and when theres a new announcement it says Announcements(1) Quote Link to comment Share on other sites More sharing options...
oxidati0n Posted April 14, 2007 Author Share Posted April 14, 2007 Re: [mccode] Annoucement Mod Well thats upto you to try and do. I've done my post and you can do yours. Thanks mcdeath87 but this is only a bit of my work. Quote Link to comment Share on other sites More sharing options...
mrswhodini Posted April 28, 2007 Share Posted April 28, 2007 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 Quote Link to comment Share on other sites More sharing options...
oxidati0n Posted April 28, 2007 Author Share Posted April 28, 2007 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. :) Quote Link to comment Share on other sites More sharing options...
Decepti0n Posted April 28, 2007 Share Posted April 28, 2007 Re: [mccode] Annoucement Mod no it doesn't :| it usually (but dont know everything so just guesstimating) means that it didn't return any results try adding one and see if it clears it Quote Link to comment Share on other sites More sharing options...
oxidati0n Posted April 29, 2007 Author Share Posted April 29, 2007 Re: [mccode] Annoucement Mod Well it doesn't mean it cannot find any tables, but if you don't install a script properly, It'd come up with that or the SQL query is invalid/error'd. It works for everyone :P Quote Link to comment Share on other sites More sharing options...
mrswhodini Posted May 7, 2007 Share Posted May 7, 2007 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 Quote Link to comment Share on other sites More sharing options...
Ghetto Posted May 7, 2007 Share Posted May 7, 2007 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 Quote Link to comment Share on other sites More sharing options...
ignite Posted May 7, 2007 Share Posted May 7, 2007 Re: [mccode] Annoucement Mod Can people use ajax and sql injection through this ? Quote Link to comment Share on other sites More sharing options...
oxidati0n Posted May 7, 2007 Author Share Posted May 7, 2007 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. Quote Link to comment Share on other sites More sharing options...
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.