User Profile

Collapse

Profile Sidebar

Collapse
gothingarn
gothingarn
Last Activity: Mar 23 '10, 10:22 PM
Joined: Mar 21 '10
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • gothingarn
    replied to href to pass variables
    in PHP
    I am a novice with PHP and SQL together but have taken a couple online classes so I am not TOTALLY in the dark. I simply want an easy way for someone to click on a table cell and have that click take them to a single record in an SQL database.

    I prefer not to use JAVA since I know absolutely nothing about it.

    Any ideas?
    See more | Go to post

    Leave a comment:


  • gothingarn
    replied to href to pass variables
    in PHP
    querry reply

    $pname = $_GET['id'];


    echo "<h2>$pname </h2>\n";

    $query = "SELECT pname,Metal FROM planets where StarName = $pname ";
    See more | Go to post

    Leave a comment:


  • gothingarn
    started a topic href to pass variables
    in PHP

    href to pass variables

    I am using an href to pass a content (which end up being an include file) variable and a variable to use in an SQL querry. When I do it the content variable works fine but with variable to be used in the search querry triggers a "Unknown column in where clause" error.

    here's the href:

    echo "<tr><td><a href=\"index.ph p?content=Plane t&id=$pname\">< img src=\"$image\"w idth=\"80\"heig ht=\"64\"alt=\" $pname\"/a></td>";...
    See more | Go to post
No activity results to display
Show More
Working...