0

hi guys.
can someone show me the right syntax to make link based on the ID using php echo.
My coding will not give any input. below is my coding:

echo "<td width='101'><a href=view_supplier_details.php?details_ID={$user['report_details_ID']}</td></a>";

Edited by peter_budo: Keep It Organized - For easy readability, always wrap programming code within posts in [code] (code blocks)

4
Contributors
4
Replies
6
Views
7 Years
Discussion Span
Last Post by network18
0

Hey check this....

i didnt get ur question exactly...but try this..

<a href="view_supplier_details.php?details_ID=?<?php echo $user['report_details_ID']; ?>"> </a>

hi guys.
can someone show me the right syntax to make link based on the ID using php echo.
My coding will not give any input. below is my coding:

echo "<td width='101'><a href=view_supplier_details.php?details_ID={$user}</td></a>";

Edited by sarithak: n/a

0

You may Use Below Specified Code for Creating a href in PHP from Database:

<?PHP
echo "<td width='101'><a href=view_supplier_details.php?details_ID=".$row['$details_ID'].">Your Text Goes Here</a></td>";
?>

in above Code Please Change $details_ID with Your Field Name.

0

hi guys.
can someone show me the right syntax to make link based on the ID using php echo.
My coding will not give any input. below is my coding:

echo "<td width='101'><a href=view_supplier_details.php?details_ID={$user}</td></a>";

There is a small mistake in your above code, that any tag which starts first should finish last.
like it should been -

echo "<td width='101'><a href=view_supplier_details.php?details_ID={$user['report_details_ID']}</a></td>";
This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.