Variable not showing up.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Greetings,

The following code works in every way except one. The variable, $linkspage, in the link, will not replace with information from the database for some reason. No matter what else I put in $id_num, $filename or whatever it replaces, but not $linkspage. The variable does work above, in the query.

Does this make sense? I hope so.

Thanks for any help.

<?

include '../cms/cnx.php';
$linkspage = $_GET["linkspage"];

/* Performing SQL query */
$query = "SELECT * FROM cms_pages WHERE linkspage='$linkspage' ORDER BY id_num DESC";
$result = mysql_query($query) or die("Query failed");
while ($line = mysql_fetch_array($result, MYSQL_ASSOC)) {
extract ( $line );

?>
<a class="subnav" href="<?php print "$filename?linkspage= $linkspage"; ?>">
<?

 if ($filename = str_replace('.php','',$filename)) {
			
			echo ''.$filename.'';
	}
		echo '	</a>';

}

?>

--
Steve Marquez
Marquez Design
e-mail: smarquez@xxxxxxxxxxxxxxxxxx
web: http://www.marquez-design.com


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux