Jump to content


  • Posts

  • Joined

  • Last visited

ParkerShannon's Achievements


Newbie (1/7)



  1. How do I get the value of a variable to display in an HTML table: <tr> <td>Anarchist</td> <td>$anarchistyes</td> <td>$anarchistno</td> <td>$anarchisthuh</td> </tr> <tr> <td>Conservative</td> <td>$conservativeyes</td> <td>$conservativeno</td> <td>$conservativehuh</td> </tr> Thank you . . .
  2. Can I issue database calls inside a PHP function()? Specifically SELECT to get login data.
  3. I'm using the wrong editor. Downloaded DreamWeaver and I'm all set. I really appreciate you guys wading in.
  4. Thank you for your response, but that wasn't it.
  5. WTF is wrong with this php code? I run this and nothing (see below for image of MySQL SQL results). <!DOCTYPE html> <html> <head> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> <title>TITLE</title> <meta name="author" content="Parker Shannon"> </head> <body> <!--?php // Declare Connection Variables $servername = "mysql408.discountasp.net"; $username = "0140496peoplesp"; $password = "uhuhuhuhuhu"; $dbname = "MYSQL5_1014730_peoplespoll"; // Create connection $conn = mysqli_connect($servername, $username, $password, $dbname); echo "Connected"; // Select items from table $row = "SELECT id, issue FROM question WHERE id=1; $result = mysqli_query($conn, $row) echo "id: " . $result["id"] . "Issue: " . $result["issue"] . ; // Close database mysqli_close($conn); echo "Disconnected"; ?> </body>
  • Create New...