ajetrumpet
Banned
- Local time
- Today, 16:17
- Joined
- Jun 22, 2007
- Messages
- 5,638
i am echoing a table on a PHP page, and a typical line looks like this:
this sample code is pulling the value $log[$i] which is equal to: financialpack - 26mb
my hyperlink echoes fine, but the address comes out as: www.mydomain/files/. the PHP variables aren't being read. I have also tried to put the vars inside the double quotes with the HREF, to no avail. not sure what to try next. can someone with some PHP knowledge give me a push here? thanks!
PHP:
echo '<tr>';
echo '<td align="center"><a href="files/"' . $log[$i] .
substr($log[$i], 0, strpos($log[$i], "-") - 2) . '".zip">' . $log[$i] . '</a></td>';
echo '</tr>';
my hyperlink echoes fine, but the address comes out as: www.mydomain/files/. the PHP variables aren't being read. I have also tried to put the vars inside the double quotes with the HREF, to no avail. not sure what to try next. can someone with some PHP knowledge give me a push here? thanks!