Wprincess Posted September 30, 2009 Posted September 30, 2009 dont know if i got this in the right place but here goes ok my crimes and my mining script seem to be running two times for example it says it takes 1 brave but it takes 2 ?( i also took the scripts out and put in a fresh one and still the same i dont think the problem lies with the script tho not sure can anyone help me Quote
Taxed Posted October 1, 2009 Posted October 1, 2009 I cant be sure without looking at the script but have you checked its not requiring a page twice? Quote
Dave Posted October 1, 2009 Posted October 1, 2009 I've seen this before its most likely a broken image tag, The browser tries to refresh again to see if it can make the image load. Quote
Floydian Posted October 1, 2009 Posted October 1, 2009 I've seen this before its most likely a broken image tag, The browser tries to refresh again to see if it can make the image load. I'll second that. If you have [/img], then the browser actually attempts to load the current page as the image. Therefore, if you have three of these on a page, you get four page loads total. If you aren't sure what image you want in there, just put anything, even it it's not a real image. That way, the browser attempts to load a nonexisting page instead of the current page. Hope that helps. Quote
mdshare Posted October 1, 2009 Posted October 1, 2009 interesting thanks, just learned something new Quote
Wprincess Posted October 1, 2009 Author Posted October 1, 2009 I've seen this before its most likely a broken image tag, The browser tries to refresh again to see if it can make the image load. I'll second that. If you have [/img], then the browser actually attempts to load the current page as the image. Therefore, if you have three of these on a page, you get four page loads total. If you aren't sure what image you want in there, just put anything, even it it's not a real image. That way, the browser attempts to load a nonexisting page instead of the current page. Hope that helps. ok so i got to look for an image source in the script because there is only one image on the crimes page and mining page and those two pics load in fine it worked fine until my brothers server went down and when everything was uploaded to new server that wat happened Quote
Wprincess Posted October 1, 2009 Author Posted October 1, 2009 <?php $macropage="criminal.php"; include "globals.php"; if($ir['jail'] or $ir['hospital']) { die("This page cannot be accessed while in jail or hospital."); } $q2=$db->query("SELECT * FROM crimes ORDER BY crimeBRAVE ASC"); while ($r2=$db->fetch_row($q2)) { $crimes[]=$r2; } $q=$db->query("SELECT * FROM crimegroups ORDER by cgORDER ASC"); print "[img=http://www.warriorsreign.com/handcuff.jpg] [b]Criminal Centre[/b] <table width='75%' cellspacing=1 class='table'><tr><th>Crime</th><th>Cost</th><th>Money PayOut</th><th>Crystal PayOut</th><th>Do</th></tr>"; while($r=$db->fetch_row($q)) { print "<tr><td colspan='5' class='h'>{$r['cgNAME']}</td></tr>"; foreach($crimes as $v) { if($v['crimeGROUP'] == $r['cgID']) { print "<tr><td>{$v['crimeNAME']}</td><td>{$v['crimeBRAVE']} Brave</td><td>{$v['crimeSUCCESSMUNY']}</td><td>{$v['crimeSUCCESSCRYS']}</td><td>[url='docrime.php?c={$v[']Do[/url]</td></tr>"; } } } print "</table>"; $h->endpage(); ?> def not the image i removed it from the script and same thing happened Quote
mdshare Posted October 1, 2009 Posted October 1, 2009 [infobox]moved from PHP folder to mccode folder[/infobox] Quote
chicka Posted October 2, 2009 Posted October 2, 2009 I had the exact same problem and I found that one of the table was removed causing the street turns to use 2 at a time and people using items were using 2 at a time and so on and so forth Quote
Wprincess Posted October 2, 2009 Author Posted October 2, 2009 I had the exact same problem and I found that one of the table was removed causing the street turns to use 2 at a time and people using items were using 2 at a time and so on and so forthand how did you get it fixed Quote
Jeff.S Posted October 3, 2009 Posted October 3, 2009 def not the image i removed it from the script and same thing happened Going from what Floydain & Dave said the img tag issue would seem to be the problem. Now when you posted the code for the crimes page, which you had removed the images from, you still got the problem & you also said this was affecting both the mining page and crimes page. As its effecthing both I think theres a chance your faulty img tag maybe in your header or footer (you will not see it in the script because it will be added when including globals.php). So you may want to check your header & footer for a faulty (blank) img tag - it may not be the problem but theres also a chance it is, so worth checking that. Quote
girardz Posted October 4, 2009 Posted October 4, 2009 Look in header.php for any blank images EXAMPLE: background-image:url(); If there is nothing there the page will do exactly as Floydian mentioned. FIX: I created a blank image called blank.png and inserted it into my header: EXAMPLE: background-image:url(blank.png); This should fix this issue. 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.