Links To Posting Page From DataTable
Links To Posting Page From DataTable
BiggestBadDaddy
Posts: 6Questions: 0Answers: 0
Hello World
I'm trying to have links in the DataTable's content (server_side) that would link to the posting page with all the details, similar to Craigslist. Does anyone know how to do this, or has done this? Any help would be greatly appreciated as I have over 3,000 postings loading at once right now...not very user-friendly. :-o
I'm also trying to get the data to load descending from most recent.
Thanks!
I'm trying to have links in the DataTable's content (server_side) that would link to the posting page with all the details, similar to Craigslist. Does anyone know how to do this, or has done this? Any help would be greatly appreciated as I have over 3,000 postings loading at once right now...not very user-friendly. :-o
I'm also trying to get the data to load descending from most recent.
Thanks!
This discussion has been closed.
Replies
Allan
I want both the listing ID and the listing TITLE to be hyperlinks to the listing page for SEO purposes, as well as the entire row to be click-able, which, to my knowledge, doesn't appear to the spiders like the text links do. This is what have now on the data table I wrote:
[code]
>
<?php echo $id; ?>
<?php echo $title_one; ?>, <?php echo $title_two; ?>
<?php echo $photoYes; ?>
[/code]
[code]
$row[] = ''. $aRow[ $aColumns[$i] ] .'';
[/code]
That's the basic idea of how you can format the string for the return.
Allan
Thanks.
I tried the example you provided, unfortunately I kept getting the JavaScript error. I even tried to copy and paste the entire code and replace my database with the one in the example and still got the error.
Not sure how to fix this.
Thanks
while ( $aRow = mysql_fetch_array( $rResult ) )
{
$sOutput .= "[";
for ( $i=0 ; $i
Allan