•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the PHP section within the Web Development category of DaniWeb, a massive community of 391,597 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,665 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our PHP advertiser: Lunarpages PHP Web Hosting
Views: 147 | Replies: 1
![]() |
•
•
Join Date: Mar 2008
Posts: 12
Reputation:
Rep Power: 1
Solved Threads: 0
I have managed to get previous and next links working on my photo gallery but need to tidy it up.
My link works when coded like this
But when I do this I get various errors. Obviously my syntax is wrong
Can someone help please?
My link works when coded like this
<? echo "<a href='" . $PHP_SELF . "?photo_id=$prev'>Previous</a>" ?>
But when I do this I get various errors. Obviously my syntax is wrong
<?
if ($prev > 0){
echo
"<a href='" . $PHP_SELF . "?photo_id=$prev'>Previous</a>"
}
?>![]() |
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
•
•
•
•
•
•
•
•
DaniWeb PHP Marketplace
- Questions about building a system (was: newbie) (Troubleshooting Dead Machines)
- As a newbie, where i should start from in linux? (Getting Started and Choosing a Distro)
- Best free C/C++ compiler for a newbie? (C++)
- help newbie alert needs help with login page (ASP.NET)
- newbie needs help, basic mfc stuff (C++)
- Hello, newbie here... (Geeks' Lounge)
- Book For Newbie (C++)
- Newbie - how do I start C++ programming? (C++)
- PHP newbie, project feasibility (PHP)
- How to network two Win98 machines (Networking Hardware Configuration)
Other Threads in the PHP Forum
- Previous Thread: unlink() function not working
- Next Thread: Problem with displaying image


Linear Mode