Page 1 of 1

$_GET...again?

Posted: Fri Mar 18, 2005 3:43 am
by pleigh
i have an edit page here that has a query

Code: Select all

$query = &quote;SELECT comment FROM comments WHERE postID = '&quote;.$cid.&quote;'&quote;;
$result = mysql_query($query) or die(mysql_error());
$row = mysql_fetch_assoc($result) or die(mysql_error());
$cid is

Code: Select all

$cid = $_GETї'cid'];
the cid is from another page that handles the edit link....

Code: Select all

$edit = '<a href=&quote;reportcommentedit.php?cid='.$_GET&#1111;'pid'].'&quote; class=under>EDIT</a>';
my problem is that this procedure prompts an error
Undefined index: cid in c:\inetpub\wwwroot\mysample\reportcommenteditbody.php on line 10
i cannot spot the problem....any help from you guys is much appreciated

[SOLVED]$_GET...again?

Posted: Fri Mar 18, 2005 4:01 am
by pleigh
solved

Posted: Fri Mar 18, 2005 8:24 am
by feyd
pleigh, seriously, start using [syntax=php]when you post php code.[/syntax]