Page 1 of 1

echo <a href> with php link

Posted: Fri Aug 25, 2006 3:41 am
by lilyminako
evening....
i need some help in echo using <a href> with php created link...

i got 2 statement

1. echo $row["Vehicle_Ref_No"];

2. echo "<td height=\"20\"><a href=".$template["vehicleviewurl"].">" .$row["Vehicle_Ref_No"]."</a></td>\n";


the first statement output the data in row Vehicle_Ref_No...but the second statement didnt output anything...i wonder wether becos of the usage of <a href> wrongly....

can sm 1 help me?? :(
thanx alot

Posted: Fri Aug 25, 2006 3:43 am
by onion2k
What errors are you getting? If you're not getting an error, what does the HTML look like?

Posted: Fri Aug 25, 2006 3:54 am
by lilyminako
i get no error , that make me headache....the column for statement 2 didnt have any data at all.... :(

Posted: Fri Aug 25, 2006 4:01 am
by onion2k
So what HTML does it output?

nothing....

Posted: Fri Aug 25, 2006 4:05 am
by lilyminako
it output nothing....

Posted: Fri Aug 25, 2006 4:15 am
by onion2k
I don't believe that. It must be either outputting an error or some variation of "<td height="20"><a href=></a></td>".

Note: I said HTML .. you'll need to view the source of the page .. I realise it might look blank.

sorry...

Posted: Fri Aug 25, 2006 4:22 am
by lilyminako
first of all, i need to say sorry......

yes it does output data....the problem was the css file....i didnt change the color....it was white...

Posted: Fri Aug 25, 2006 4:41 am
by onion2k
lol .. it happens to us all .. always check the HTML source first to see what is actually happening.