Page 2 of 2 FirstFirst 12
Results 11 to 17 of 17

Thread: New to php and I screwed things up

  1. #11
    Join Date
    Aug 2005
    Location
    Other Side of My Monitor
    Posts
    3,494
    Thanks
    5
    Thanked 105 Times in 104 Posts
    Blog Entries
    1

    Default

    Cool, thanks Test.

    I was still about 3 hours away from even opening it
    {CWoT - Riddle } {Freelance Copywriter} {Learn to Write}
    Follow Me on Twitter: @InkingHubris
    PHP Code:
    $result mysql_query("SELECT finger FROM hand WHERE id=3");
    echo 
    $result

  2. #12
    Join Date
    Sep 2006
    Location
    St. George, UT
    Posts
    2,769
    Thanks
    3
    Thanked 157 Times in 155 Posts

    Default

    LMAO, not a problem. I love a challenge while at work. Currently programming DSL modems, watching "Revenge of the Nerds" (Internet TV), and viewing forums.
    "Computer games don't affect kids; I mean if Pac-Man affected us as kids, we'd all be running around in darkened rooms, munching magic pills and listening to repetitive electronic music." - Kristian Wilson, Nintendo, Inc, 1989
    TheUnlimitedHost | The Testing Site | Southern Utah Web Hosting and Design

  3. #13
    Join Date
    Jan 2007
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Talking Fixed

    test --> brilliant... it worked. home page parses correctly

    couple questions...

    I opened both old and your new with notepad and wordpad (eww) and did not see extra quotes... what/where did I miss?

    which brings me to 2: quite the noob question but what text editor do you use to edit code? Nvu obviously did not do so hot, and notepad gives me a headache... are there not free progs that highlight certain parts of syntax for ease of reading?

    again, many thanks to you, as well as BliZZaRD for your efforts. very much appreciated

    (^_^)

  4. #14
    Join Date
    Jan 2007
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    oh... the home page if you want to see it (not excited at ALL, yet)

    http://www.ehaplanners.com

  5. #15
    Join Date
    Jun 2006
    Location
    Acton Ontario Canada.
    Posts
    677
    Thanks
    0
    Thanked 1 Time in 1 Post

    Default

    - Ryan "Boxxertrumps" Trumpa
    Come back once it validates: HTML, CSS, JS.

  6. #16
    Join Date
    Aug 2005
    Location
    Other Side of My Monitor
    Posts
    3,494
    Thanks
    5
    Thanked 105 Times in 104 Posts
    Blog Entries
    1

    Default

    I couldn't help with the editor part, I only use notepad. I hear notepad plus is nice though.

    Oh, and NEVER use wordpad, it is NOT a plain text editor. It will do similar things to your codes as that Nvu did, most likely worse.
    {CWoT - Riddle } {Freelance Copywriter} {Learn to Write}
    Follow Me on Twitter: @InkingHubris
    PHP Code:
    $result mysql_query("SELECT finger FROM hand WHERE id=3");
    echo 
    $result

  7. #17
    Join Date
    Sep 2006
    Location
    St. George, UT
    Posts
    2,769
    Thanks
    3
    Thanked 157 Times in 155 Posts

    Default

    Quote Originally Posted by luckyschop View Post
    test --> brilliant... it worked. home page parses correctly

    couple questions...

    I opened both old and your new with notepad and wordpad (eww) and did not see extra quotes... what/where did I miss?
    Well, about 1/4 ways down the page is where you got the error. It was there that there were unescaped quotation marks. I fixed the first couple of lines with a single quote ( ' ), then I got tired of doing that so I simply escaped the double quotes ( " ).

    An example of the old code is as follows:

    Code:
    $test = "<a href="test.html">Testing</a>";
    That would cause errors. Here are two simple fixes:

    Code:
    $test = "<a href='test.html'>Testing</a>";
    Code:
    $test = "<a href=\"test.html\">Testing</a>";
    which brings me to 2: quite the noob question but what text editor do you use to edit code? Nvu obviously did not do so hot, and notepad gives me a headache... are there not free progs that highlight certain parts of syntax for ease of reading?
    Well, I usually use Notepad when editing stuff locally. But when I want to test the code and edit the code pretty much at the same time, I use PHPFileNavigator.

    Hope this helps.
    "Computer games don't affect kids; I mean if Pac-Man affected us as kids, we'd all be running around in darkened rooms, munching magic pills and listening to repetitive electronic music." - Kristian Wilson, Nintendo, Inc, 1989
    TheUnlimitedHost | The Testing Site | Southern Utah Web Hosting and Design

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
  •