Jump to content

mweldan

Members
  • Posts

    36
  • Joined

  • Last visited

Everything posted by mweldan

  1. just what you want to do. 1. date time in db stored in greenwich time. 2. differences is about 5 hours $date_in_greenwich = '2013-02-21 10:10:10"; echo date('Y-m-d, strtotime($date_in_greenwich." -5 hours")); well.. just one example if you want to give a try. heheh
  2. refer to line 3 get it working on web browser first. next step would be matching the application with your android screen size (i think) later would be convert it to fully working android app. for map, simplest thing you can do is linking each faculty building to details page : http://www.image-maps.com
  3. yes, script.js on line 78. //slide = parseInt($(this).attr("href").replace("#content", "")); comment it out and it will not append hashed anchor onto the url.
  4. How about strtotime() ? echo date('Y-m-d H:i:s a', strtotime("-5 hours"));
  5. maybe validation here means you want to know if no magazine has been selected? //you can use count to count array if (count($_GET['subscription']) == 0) { //show error message } hope it helps.
  6. <?php //on subscribev3.php you forgot to change value for 36 months on all three options // 36 months at $300<input type="radio" name="imonth" value="24" /> <br /> <- should be 36 //process the form //this is how the array looked like /* [subscription] => Array ( [0] => computer [1] => illustration [2] => wallpaper[] ) [month] => 24 [imonth] => 24 [wmonth] => 24 so.. 0 -> computer 1 -> illustration 2 -> wallpaper month -> months of subscription for computer magazines imonth -> months of subscription for illustration magazines wmonth -> months of subscription for wallpaper magazines */ //i have no idea how you define valid here though //you can check it like this if (isset($_GET['subscription'][0]) && isset($_GET['month']) ) { echo 'computer mag selected for '.$_GET['month'].' months!'; } if (isset($_GET['subscription'][1]) && isset($_GET['imonth']) ) { echo 'illustration mag selected for '.$_GET['month'].' months!'; } if (isset($_GET['subscription'][2]) && isset($_GET['wmonth']) ) { echo 'wallpaper mag selected for '.$_GET['month'].' months!'; } exit; ?>
  7. do you know how to change files and folders permission? default permission for files: 0644 default permission for folders: 0755 you can use ftp client software if you have ftp access or browse the directory from cpanel/directadmin if you have cpanel/directadmin access
  8. how about run the query of $chkEvent_sql manually on phpmyadmin or from cli. don't really understand. would appreciate if you can clarify. why have to check if client is logged in and adminpost field is for what?
  9. I would keep field `id` for running number and use another field `whatever_id` to refer whatever . that way each record would stay unique and i can use any way i want to refer that row.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.