Jump to content

[SOLVED] help with $_GET


dadamssg

Recommended Posts

sure can

 

<?php
/*Get post id number and display info*/
include("caneck.inc")

$postid = $_GET["id"];

$cxn = mysqli_connect($host,$user,$passwd,$dbname)
          or die ("Couldn't connect");
	  
$quer = "SELECT * FROM test WHERE eventid = $postid";

$rsult = mysqli_query($cxn,$quer)
          or die ("Couldn't execute");
		  
$row = mysqli_fetch_assoc($rsult);
?>

<?php
/*Get post id number and display info*/
include("caneck.inc");

$postid = $_GET["id"];

$cxn = mysqli_connect($host,$user,$passwd,$dbname)
          or die ("Couldn't connect");
        
$quer = "SELECT * FROM test WHERE eventid = $postid";

$rsult = mysqli_query($cxn,$quer)
             or die ("Couldn't execute");
           
$row = mysqli_fetch_assoc($rsult);
?>

 

forgot your semicolon

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.