dpabla Posted January 2, 2007 Share Posted January 2, 2007 Happy new years everyone...I had a qucik question, I have sucessfully gotton to do ahref linking in php with data pulled from mysql, however I wanted to add to the link a:[code]<a href="something.php" target="content">[/code]Here is what I have in actual code:[code]echo "<a href='page2.php?vid=" . $vid . '" target='content'">"[/code]But it shows an error....thanks for your help! Quote Link to comment https://forums.phpfreaks.com/topic/32600-solveda-href-linking-help/ Share on other sites More sharing options...
ober Posted January 2, 2007 Share Posted January 2, 2007 It might help to tell us what the error is.Also, I don't see a semi-colon at the end. Quote Link to comment https://forums.phpfreaks.com/topic/32600-solveda-href-linking-help/#findComment-151627 Share on other sites More sharing options...
dpabla Posted January 2, 2007 Author Share Posted January 2, 2007 oh sorry the error is I added the "content" part and the code stopped working - it doesnt display anything links....So I know the error resides from me adding the "content" part...and the semi-colon is there in the actual code...Thanks for your help Quote Link to comment https://forums.phpfreaks.com/topic/32600-solveda-href-linking-help/#findComment-151631 Share on other sites More sharing options...
ober Posted January 2, 2007 Share Posted January 2, 2007 [code]echo "<a href='page2.php?vid=" . $vid . "' target='content'>";[/code]You had your quotation marks completely out of whack. Quote Link to comment https://forums.phpfreaks.com/topic/32600-solveda-href-linking-help/#findComment-151641 Share on other sites More sharing options...
dpabla Posted January 2, 2007 Author Share Posted January 2, 2007 It does work...If anyone needs help with this, check it out :)[code]echo "<a href='page2.php?vid=" . $vid . "' target='content'>" . $vendorname . "</a>";[/code] Quote Link to comment https://forums.phpfreaks.com/topic/32600-solveda-href-linking-help/#findComment-151666 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.