php - Adding mysql row to end of href in a table -
i trying add content of cell in mysql row @ end of href in table
this works without row being added end of href. while loop wrapped whole loop in php bracket
echo "<td><a href=\"https://website/call?\">" . $row['txid'] . "</a></td>";
but when try add in "txid" errors out , page doesnt load. have tried few solutions on here lead me escaping \" href im not sure why isnt working.
echo "<td><a href=\"https://website/call?' . $row['txid'] . '\">" . $row['txid'] . "</a></td>";
is syntax wrong or missing something?
i apologize if duplicate. couldnt find exact situation worked me.
you have syntax error try this
echo "<td><a href='https://website/call?{$row['txid']} '>" . $row['txid'] . "</a></td>";
Comments
Post a Comment