
corruptcity || skalman
Members-
Posts
358 -
Joined
-
Last visited
-
Days Won
3
Content Type
Profiles
Forums
Events
Everything posted by corruptcity || skalman
-
hi im doing some work for a client and she wants me to create a website for her and 1 of the pages she wants is a schedule of what shes got going on within the next month broken down into 4 different tables this week next week week after next and within the month now im not that good with timestamps but was able to figure out how to make a timestamp using day and month input from the user but then when i try to output the info i get that there isnt event stuff planned in all 4 tables ive had a play around with the code and in my head it looks like it should work but it isnt lol any way here is my code and any help will be appreciated <?php include_once"globals.php"; echo"<h3></h3>"; echo"Here are the schedules for this week, next week week after and within the next month "; $strtweek = strtotime("monday"); $endweek = strtotime("sunday"); $thisweek=$db->query("SELECT * FROM schedule WHERE sch_date >= '$strtweek' AND sch_date <= '$endweek' ORDER BY sch_date ASC, sch_name ASC"); if($db->num_rows($thisweek) == 0) { echo"[b]There isnt anythink planned right now please check back at a later time.[/b] "; } else { echo"[b]<u>This weeks Schedule</u>[b] <table width=100%> <tr> <th>Poster</th> <th>Name</th> <th>Venue</th> <th>More Info</th> <th>Time and Date</th> </tr>"; while($r=$db->fetch_row($thisweek)) { $date = date("d M Y", $r['sch_date']); echo" <tr> <td>[img={$r[]</td> <td>{$r['sch_name']}</td> <td>{$r['sch_venue']}</td> <td><a href='viewsch.php?ID={$r['sch_id']}'>More Information</td> <td>[b]{$date}[/b] at [b]{$r['sch_start_time']}.00[b]</td> </tr>"; } echo"</td></table> "; } $strtweek2 = strtotime("+1 week monday"); $endweek2 = strtotime("+1 week sunday"); $thisweek2=$db->query("SELECT * FROM schedule WHERE sch_date >= '$strtweek2' AND sch_date <= '$endweek2' ORDER BY sch_date ASC, sch_name ASC"); if($db->num_rows($thisweek2) == 0) { echo" [b]There isnt anythink planned right now please check back at a later time.[/b] "; } else { echo"[b]<u>Next weeks Schedule</u>[b] <table width=100%> <tr> <th>Poster</th> <th>Name</th> <th>Venue</th> <th>More Info</th> <th>Time and Date</th> </tr>"; while($r=$db->fetch_row($thisweek2)) { $date = date("d M Y", $r['sch_date']); echo" <tr> <td>[img={$r[]</td> <td>{$r['sch_name']}</td> <td>{$r['sch_venue']}</td> <td><a href='viewsch.php?ID={$r['sch_id']}'>More Information</td> <td>[b]{$date}[/b] at [b]{$r['sch_start_time']}.00[b]</td> </tr>"; } echo"</td></table> "; } $strtweek3 = strtotime("+2 week monday"); $endweek3 = strtotime("+2 week sunday"); $thisweek3=$db->query("SELECT * FROM schedule WHERE sch_date >= '$strtweek3' AND sch_date <= '$endweek3' ORDER BY sch_date ASC, sch_name ASC"); if($db->num_rows($thisweek3) == 0) { echo" [b]There isnt anythink planned right now please check back at a later time.[/b] "; } else { echo"[b]<u>Week after nexts Schedule</u>[b] <table width=100%> <tr> <th>Poster</th> <th>Name</th> <th>Venue</th> <th>More Info</th> <th>Time and Date</th> </tr>"; while($r=$db->fetch_row($thisweek3)) { $date = date("d M Y", $r['sch_date']); echo" <tr> <td>[img={$r[]</td> <td>{$r['sch_name']}</td> <td>{$r['sch_venue']}</td> <td><a href='viewsch.php?ID={$r['sch_id']}'>More Information</td> <td>[b]{$date}[/b] at [b]{$r['sch_start_time']}.00[b]</td> </tr>"; } echo"</td></table> "; } $strtweek4 = strtotime("+3 week monday"); $endweek4 = strtotime("+3 week sunday"); $thisweek4=$db->query("SELECT * FROM schedule WHERE sch_date >= '$strtweek3' AND sch_date <= '$endweek3' ORDER BY sch_date ASC, sch_name ASC"); if($db->num_rows($thisweek4) == 0) { echo" [b]There isnt anythink planned right now please check back at a later time.[/b] "; } else { echo"[b]<u>Schedule for the next month<u>[b] <table width=100%> <tr> <th>Poster</th> <th>Name</th> <th>Venue</th> <th>More Info</th> <th>Time and Date</th> </tr>"; while($r=$db->fetch_row($thisweek4)) { $date = date("d M Y", $r['sch_date']); echo" <tr> <td>[img={$r[]</td> <td>{$r['sch_name']}</td> <td>{$r['sch_venue']}</td> <td><a href='viewsch.php?ID={$r['sch_id']}'>More Information</td> <td>[b]{$date}[/b] at [b]{$r['sch_start_time']}.00[b]</td> </tr>"; } echo"</td></table> "; } $h->endpage(); ?>
-
Body Rott - Bone Thugs N Harmony
corruptcity || skalman replied to DizzyBone&Amy's topic in Chit Chat
yeah fair play m8 cant argue with you on that one lol -
Body Rott - Bone Thugs N Harmony
corruptcity || skalman replied to DizzyBone&Amy's topic in Chit Chat
kk its not really the shit id choose to listen 2 i prefer like black metal and stuff like that i.e cradle of filth, death arch enemy, gallows hell i even listen to and i cant believe im about to say this but even emo stuff lol -
yeah not bad man
-
Body Rott - Bone Thugs N Harmony
corruptcity || skalman replied to DizzyBone&Amy's topic in Chit Chat
can i ask wtf does this have to do anythink coding wise? unless this is all you listen 2 while your coing if you do -
Need help with hour cron
corruptcity || skalman replied to Monkey644's topic in Modification Support
when you entered your crons into the crontab did you put cron_day.php?code=the code that is in theconfig.php file if not it wont work so what you need todo is open config.php find the code it a string full of numbers and letteres and its above the ?> you really cant miss it and ill even post the code to show u <?php $_CONFIG = array( 'hostname' => 'localhost', 'username' => , 'password' => '', 'database' => , 'persistent' => 0, 'driver' => 'mysql', 'code' => 'this is where the code lives that you need!' ); ?> then once uve got that you add the ?code=what your code is from config.php there then click save or ok or what ever then your done its a good idea to just try the 5 mins cron 1st then go to the gym waste a little nrg wait 5 mins then see if its gone back up -
New/Modification of ingame stats/pooled stats
corruptcity || skalman replied to Roh's topic in Requests & In Production
hi that count(*) is in glob_funcs under the function get_trank i do believe and you have to make sure what you have in the db is the same as what in the script or if errors what you get so if in the db its Vitality its gotta be Vitality in the script or it chucks a wobbler if you have or are willing to use team viewer i can have a look at it and try to sort you out -
New/Modification of ingame stats/pooled stats
corruptcity || skalman replied to Roh's topic in Requests & In Production
hi for the action stats you add them in the users table and the other stats in the userstats table but then after doing that you would then need to recode alot of files starting with globals and glob_funcs, docrime, jobs gym, index, loggedin, attack and finaly staff_users and jobs. when ive done the same b4 it takes me no longer than about 30 mins to make all the changes -
heres 1 i live by if it kills me ill know not todo it next time lol and the next day after tomorrow is the 1st day of the rest of your life and i get this gem quotes to me all the time kids in glass houses shouldnt throw stones and here is an old school 1 from del boy this time next year we'll be millionaires rodney lol
-
well the idea is different ill give you that it may appeal to some people but i dont think its the sort of game i would play tho
-
i can smell somthink it smells bad is it beef? no, is it sheep? no oh wait its bullshit lol and dont worry we can tell when hes lying either his mouth moves or his fingers type lol
-
i think you need to work on the new login page i cant even see the text its the same with your reg page and your banner looks abit shitty again once logged in the text isnt readable the header looks poor and not very well layed out id move the links down under the banner and would also work on making it look less mccrap sorry mccodes lol so atm i dont think your game will go very far
-
hi after having a quick glance chance width="85%" bgcolor="#000000" valign="top"> to width='85%' bgcolor='#000000' valign='top'>
-
Where the internet ends!
corruptcity || skalman replied to corruptcity || skalman's topic in Chit Chat
the idea with that is that your ment to set it up for some1 else to play it -
Where the internet ends!
corruptcity || skalman replied to corruptcity || skalman's topic in Chit Chat
yeah but it gave me a little chuckly for a sec or 2 lol. You know the chuckle you get when you put mentos in coke -
Where the internet ends!
corruptcity || skalman replied to corruptcity || skalman's topic in Chit Chat
nps pudda glad it helps lol -
hi this is where the internet ends lol http://bw.org/end/
-
hi i was messing bout on the msn homepage and i came across this lol man forced to marry a cow lmao http://news.uk.msn.com/odd-news/photos/photos.aspx?cp-documentid=152511607
-
ha ive had 74 killstreak on pc b4
-
thats not a problem ive done it before on your laptop enter your pcs IP address instead of localhost or 127.0.0.1 so say if your pcs IP address was 192.168.2.4 on your laptop just enter 192.168.2.4 and you can also make up a network dir on your laptop 2 slap work up on the testing server or turn on filezilla in the xampp control panel. also if can use remote control software to remote into your pc make any chance thru your laptop without being in a the same room as the pc windows has a built in program called RDC (Remote Desktop Connection) but there are free programs on the tinternet that you can use hope this helps
-
this might sound silly but why not just put the funcs in global_funcs?
-
id wish for raidator pants all day long whenever its cold or freezer pants when its hot lol
-
lol pudda
-
[mccodes v2] ingame 3 colum template modified
corruptcity || skalman replied to MDK666's topic in Free Modifications
i had the same problem til i ".number_format($ir['money'])." and it solved the problem