Jump to content
MakeWebGames

Zero-Affect

Members
  • Posts

    3,713
  • Joined

  • Last visited

    Never

Everything posted by Zero-Affect

  1. Yeah that is weird i noticed that as i was reading... EDIT: maybe it doesn't update on view but only on post... [mp]201[/mp]
  2. gah i said millions like a newb didn't read down i thought it would be in ASC order not DESC lol but yeah hundreds would be a better economy.
  3. If i recall (used Dreamweaver once) it allows you to test via online server or something like that (maybe wrong).
  4. yeah photoshop cost me alot of money, along with zend and dreamweaver. I will also be getting a few more in the near future when i can afford them lol
  5. ... DAMNIT my bars look exactly like that Dayo lol (was thinking of doing GD but GD does use alot of resources correct?) Wouldn't mind the Percentage on the bars though (in text).
  6. lmao @ wrx's signature, i just noticed that... Danny come on... Yeah i hear Gimp isn't so bad but i still prefer PS when editing or creating things.
  7. 35 isn't even a 20th of what i paid for my template ($825.00 USD). If you want something good then pay good money :)
  8. What he means is when i steal his session then switch my session code to his and while he's logged in i move around and delete stuff on his account. I agree with HD would be much safer to add more to the base code.
  9. actually when i figured PHP would drag it a little with it running every second i assumed it would be easier to just use JS so i use the code i posted a while back with a few edits lol using timezone not unixstamp. Thanks for all the posts though lads:D
  10. # Joke die('no!'); Don't think you can stop it on the login page.
  11. Wow Zeggy thanks for that pal. EDIT: [js] <SCRIPT LANGUAGE="JavaScript"> <!-- Begin var timerRunning = false; var timezone = "Greenwich Mean Time"; // what time zone are you in ? var adjust = 0; function timeCheck(tzone, diff) { if (timerRunning) { clearTimeout(updatetime); timerRunning = false; } gmtOffset=eval(diff+adjust); timezone = tzone; checkDateTime(); } function checkDateTime () { var today = new Date(); var month = today.getMonth()+1; var date = today.getDate(); var day = today.getDay(); var hour = today.getHours(); var minute = today.getMinutes(); var second = today.getSeconds(); var lastSat = date - (day+1); while (lastSat < 32) lastSat+=7; if (lastSat > 31) lastSat+=-7; var firstSat = date - (day+1); while (firstSat > 0) firstSat+=-7; if (firstSat < 1) firstSat+=7; if ((((month == 4) && (date >= firstSat)) || month > 4) && (month < 11 || ((month == 10) && day <= lastSat))) adjust += 60; yourOffset = (new Date()).getTimezoneOffset(); yourOffset = yourOffset + adjust; var xx = navigator.appName var xy = navigator.appVersion; xy = xy.substring(0,1); if ((xy == 4) && (xx == "Netscape")) yourOffset = yourOffset+adjust; if ((((month == 4) && (date > 20)) || month > 4) && (month < 11 || ((month == 10) && day < 30))) adjust -= 60; ourDifference = eval(gmtOffset - yourOffset); var half = eval(ourDifference % 60); ourDifference = Math.round(ourDifference / 60); hour = eval(hour - ourDifference); if ((half == -30) || (half == 30)) minute += 30; if (minute > 59) minute -= 60, hour++; if (minute < 0) minute += 60, hour--; if (hour > 23) hour -= 24, date += 1; if (hour < 0) hour += 24, date --;   var dateTime = hour; dateTime = ((dateTime < 10) ? "0":"") + dateTime; dateTime = " " + dateTime; dateTime += ((minute < 10) ? ":0" : ":") + minute; dateTime += ((second < 10) ? ":0" : ":") + second; dateTime += (hour >= 12) ? " PM" : " AM"; document.getElementById('servertime').innerHTML = dateTime; updatetime=setTimeout("checkDateTime()", 900); timerRunning = true; } // End --> </SCRIPT> [/js]   <BODY OnLoad="timeCheck(timezone, +360)">   <span id="servertime"></span>   Google'd it and came up with something like that
  12. weird i don't use int or float lol, Changing the DB structure of money and then editing int to bigit is a good idea but if i recall don't you edit the value of that column also from 11? Brain Storming: couldn't you just edit it to dec(65,0)?
  13. Zero-Affect

    PHP GD Question

    i found GD interesting but i have only worked with it once.
  14. <span id="servertime"></span> [js]<script type="text/javascript"> function show() { var timda = '<php? date("F jS h:i:s A") ?>' document.getElementById('servertime').innerHTML = timda; setTimeout("show()",1000) } show() </script>[/js] I know im doing something wrong just can't picture it. I am a complete newb when it comes to JS
  15. Nice template, i personally love SOS's work also.
  16. Thank you all for your comments, my host finally replied to my support tickets.
  17. No different pal, i think it's my host being a bugger personally.
  18. This is the section of the code which isn't working, no errors showing. php_value display_errors on
  19. sadly that simply redirects to http://www..com It seems the internal files ain't working due to my header.php consisting with a error (i think) but the error report ain't showing.
  20. I apologise i didn't actually specify the issue with it, I seem to be having internal file issues (a global file) is showing as white and my host said it could be due to the htaccess file (i seldom touch it) so i was wondering would anything be wrong with the error reporting section or something above to cancel it out. My real name is Paul, My unofficial middle name is Darren i think i went over this on my introduction.
  21. //
  22. i always thought if it's a variable then you have no need to quote unless it's a string?
  23. $q = $db->query('SELECT COUNT(userid) FROM `users` WHERE `location` = '.$r[cityid]); $pricepay = ($db->fetch_array($q) * $r['citytaxprice']); $db->query('UPDATE `users` SET `money` = `money` + $pricepay WHERE `userid` = '.$r[cityowner]); } $newcq = $db->query('SELECT * FROM`cities`'); while( $newr = $db->fetch_array($newcq) ) { $daf = $db->query('SELECT * FROM `users` WHERE `location` = '.$newr[cityid]); $rowstoupdate = $db->num_rows($daf); if ( $rowstoupdate > $newr['citymost'] ) { $db->query('UPDATE `cities` SET `citymost` = '.$rowstoupdate.' WHERE `cityid` = '.$r[cityid]); // mysql_query($query,$c) or die("\nError Executing Query 1 for updating users $i to $next\n$query\n".mysql_error()."\nError Code:".mysql_errno()); } You are running mc v2 right?
  24. $daf = mysql_query("SELECT * FROM `users` WHERE `location` = '{$newr[cityid]}'");
×
×
  • Create New...