@Hawkee The link on the homepage to my script is broken, after messing around a bit i got http://www.hawkee.com/shop/prod/29274880/ to work
@Hawkee i made an example in MVC.zip but this is designed to require multiple files in different directories that would be difficult to demonstrate clearly in a couple of code tags
@alimak96 > added [ ($3 == +) || ($3 == -) || ($3 == ) || ($3 == /) ] in ( if )
if the person didnt use on of these it will send a notice to him
You Can Only Use Numbers And ( +,-,,/ )That's what I was talking about
nice job. but you could simplify your code farther by using cal_days_in_month() to fill an array like this
function Calendar($month, $year)
{
$offSet = date("w",mktime(0, 0, 0, $month, 1, $year));
for($i = 0; $i < $offSet; $i++)
$cal[] = "";
for($i = count($cal), $x = 1; $i < cal_days_in_month(CAL_GREGORIAN, $month, $year) + $offSet; $i++, $x++)
$cal[] = $x;
}
then printing the calendar would just be a matter of creating a new table row after every 7 days
note that this method assumes Sunday to be the first day of the week
@Spoof i sincerely hope you are kidding.
added the ability to delete your own comments and pastes, as well as added an admin functionality to delete other's. and replaced the geshi syntax highlighter with Google's Code Prettify that will automatically detect the language.
to upgrade open your mysql editor in the database for this file and type
ALTER TABLE users ADD COLUMN admin TINYINT(1) NOT NULL DEFAULT 0 AFTER email;
UPDATE users SET admin = 1 WHERE username = 'YOUR_USERNAME_HERE' LIMIT 1
to give yourself admin privileges
@DarkOneMatter sorry i keep forgetting to silence notices :/ just put
error_reporting(E_ALL ^ E_NOTICE);
back in main.php
@DarkOneMatter it was actually the link that was incorrect, the filename should be myaccount.php although it doesn't really matter what you name it as long as your consistent