php4 - php5
Posted: Mon Oct 04, 2010 12:15 pm
Hi folks, I am new php so please excuse me for a stupid question.
I inherited some php4 code that i need to get to work on a php5 system. I fixed most items except this one.
The following statement, is supposed to pass the ID variable (depending on which article link i choose) to viewarticle.php file which then pulls it from the DB and .... Yet nothing happens.
echo ("<td width=\"86%\" height=\"25\"><a href=\"/includes/viewarticle.php?id=$art_id\" class=\"sublinks\">$art_shortname</a></td>");
when i click on the link i get -> <site name>/includes/viewarticle.php?id=3 so i am assuming it is getting the right ID just not passing it to the file.
any advice would be appreciated.
I inherited some php4 code that i need to get to work on a php5 system. I fixed most items except this one.
The following statement, is supposed to pass the ID variable (depending on which article link i choose) to viewarticle.php file which then pulls it from the DB and .... Yet nothing happens.
echo ("<td width=\"86%\" height=\"25\"><a href=\"/includes/viewarticle.php?id=$art_id\" class=\"sublinks\">$art_shortname</a></td>");
when i click on the link i get -> <site name>/includes/viewarticle.php?id=3 so i am assuming it is getting the right ID just not passing it to the file.
any advice would be appreciated.