PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
Moderator: General Moderators
vita_ace
Forum Newbie
Posts: 9 Joined: Mon Oct 13, 2008 4:46 am
Post
by vita_ace » Tue Oct 21, 2008 1:47 am
$cnt .= '<td>'.$m_id.'</td><td>'.$u_name.'</td><td>'.$p_name.'</td><td>'.$hall_name.'</td>
<td>'.$date.'</td><td>'.$att.'</td><td><a href="module/report_detail.php?id=
<?php echo $row[2] ?> "> Details </a></td></tr>';
im stuck....i want to pass the id value to another page...but i cant, anybody have some idea what else can be change at the red font?..pleaseee
papa
Forum Regular
Posts: 958 Joined: Wed Aug 27, 2008 3:36 am
Location: Sweden/Sthlm
Post
by papa » Tue Oct 21, 2008 2:13 am
Show us how you get the get var.
requinix
Spammer :|
Posts: 6617 Joined: Wed Oct 15, 2008 2:35 am
Location: WA, USA
Post
by requinix » Tue Oct 21, 2008 4:22 am
Syntax highlighting is really helpful.
Code: Select all
$cnt .= '<td>'.$m_id.'</td><td>'.$u_name.'</td><td>'.$p_name.'</td><td>'.$hall_name.'</td>
<td>'.$date.'</td><td>'.$att.'</td><td><a href="module/report_detail.php?id=<?php echo $row[2] ?>"> Details </a></td></tr>';
Anybody see it? It's in red.
onion2k
Jedi Mod
Posts: 5263 Joined: Tue Dec 21, 2004 5:03 pm
Location: usrlab.com
Post
by onion2k » Tue Oct 21, 2008 4:37 am
Nice try Ace, but if you look at the start of the line you'll see it's actually a concatenated string ... the $row[2] variable shouldn't be wrapped in PHP tags at all because it's already in a PHP block.
aceconcepts
DevNet Resident
Posts: 1424 Joined: Mon Feb 06, 2006 11:26 am
Location: London
Post
by aceconcepts » Tue Oct 21, 2008 4:45 am
D'oh - I'm far too hasty.
Good call