Hi there,
A friend of mine done this code (below) and is not available right now. I need to have the url to start and end with quote marks.
Correct Example:
<a href="link here">something here</a>
Incorrect Example ( as my code produces no quote marks)
<a href=link here>something here</a>
What do I need to do to add these quotes marks in my code below?
function db_paging($url,$total_pages,$page)
{
if($page > 1){
//$pre="<img src='../images/b_back.gif' alt='Previous' width='11' height='15' border='0'>";
$pre = "«";
$prev = ($page - 1);
$page_list="<a href=$url"."&page=$prev>".$pre."</a> ";
}
for($i = 1; $i <= $total_pages; $i++){
if($page == $i)
{
$page_list.="[$i] ";
}
else
{
$page_list.="<a href=$url"."&page=$i>$i</a> ";
}
}
if($page < $total_pages){
//$nex = "<img src='../images/b_next.gif' alt='Next' width='11' height='15' border='0'>";
$nex = "»";
$next = ($page + 1);
$page_list.="<a href=$url"."&page=$next>".$nex."</a>";
}
return $page_list;
}
Hope you can help 🙂
Thanks C