SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Member
    Join Date
    Feb 2014
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    today.php not working

    I've just started Kevin Yank's book PHP & MySQL 5th edition. I've installed MAMP correctly on a Mac. I wrote the script today.php as in the book, saved it to htdocs, called it up at localhost on a browser… and got an empty page. It should work, but it doesn't. The book's only suggestion is to visit these forums, so here I am.

  2. #2
    SitePoint Member
    Join Date
    Feb 2014
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I checked the file again and saw I'd put a closing bracket in the wrong place. So it was a syntax error. I fixed that and the script now runs.

  3. #3
    SitePoint Mentor bronze trophy
    fretburner's Avatar
    Join Date
    Apr 2013
    Location
    Brazil
    Posts
    1,257
    Mentioned
    32 Post(s)
    Tagged
    5 Thread(s)
    Hi Stitchwort, welcome to the forums!

    I don't have access to the book, so it's difficult to help you without seeing the code. Could you possibly post the script here or, if it's too long, put it in a gist and link to it?

  4. #4
    Grüße aus'm Pott gold trophysilver trophybronze trophy
    Pullo's Avatar
    Join Date
    Jun 2007
    Location
    Germany
    Posts
    5,313
    Mentioned
    178 Post(s)
    Tagged
    9 Thread(s)
    Stitchwort's second post got help up in the moderation queue.
    Seem's like the problem is solved


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •