Solved

Need help with PHP with href not working.

Posted on 2009-07-09
8
207 Views
Last Modified: 2012-05-07
The Read More link is not working with the commneted code to Read More.  However, I took the print out of $newLink and subsitute that for $newLink in the commented code of ReadMore and that Link works just fine.  Why is that so?  Thanks.
echo "Event link is " .$newLink;
					  //echo "<li><span class='date'>" . $newDate ."</span><br/><i>" .$event->title. "</i><br/><a href='http://www.google.com/calendar/hosted/labctsi.org/event?eid=bmFzZnF0dTFvbjA3MzZycnRuaTNnYmo1YjAgY2Jpc0BsYWJjdHNpLm9yZw'>Read More</a></li>";
					  
					  echo "<li><span class='date'>" . $newDate ."</span><br/><i>" .$event->title. "</i><br/><a href='".$newlink."'>Read More</a></li>";

Open in new window

0
Comment
Question by:lapucca
  • 3
  • 3
  • 2
8 Comments
 
LVL 12

Expert Comment

by:Chad Haney
ID: 24818038
0
 

Author Comment

by:lapucca
ID: 24818107
Weird!  It shows '', two single quote.  And I notice there is an extra </li>.  What's going on here?
0
 

Author Comment

by:lapucca
ID: 24818112
Event link is http://www.google.com/calendar/hosted/labctsi.org/event?eid=Y2NqMXZwZjY2aDBqYjlrMXFudmZvY3Bic2sgY2Jpc0BsYWJjdHNpLm9yZw<li><span class='date'>July 31, 2009</span><br/><i>OFF</i><br/><a href=''>Read More</a></li>      </li>

</ul>
                        
0
Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

 
LVL 12

Accepted Solution

by:
Chad Haney earned 500 total points
ID: 24818119
Change $newlink
to $newLink
0
 
LVL 12

Expert Comment

by:Chad Haney
ID: 24818125
Not sure about your second </li>, cant see anything that would be causing that.
0
 

Author Closing Comment

by:lapucca
ID: 31601814
Thank you.  That fixed the problem.  I'
0
 
LVL 14

Expert Comment

by:profya
ID: 24818339
They are different variables, the l is big then samll:
$newLink does not equal $newlink
0
 
LVL 14

Expert Comment

by:profya
ID: 24818351
This should work:
echo "<li><span class='date'>" . $newDate ."</span><br/><i>" .$event->title. "</i><br/><a href='".$newLink."'>Read More</a></li>";

Open in new window

0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
removing a class in javascript 4 50
Extracting content from meta tag PHP MYHTML DOM 3 21
Log in through ID 5 19
Wordpress Hacked 1 50
Password hashing is better than message digests or encryption, and you should be using it instead of message digests or encryption.  Find out why and how in this article, which supplements the original article on PHP Client Registration, Login, Logo…
Since pre-biblical times, humans have sought ways to keep secrets, and share the secrets selectively.  This article explores the ways PHP can be used to hide and encrypt information.
The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

821 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question