Displaying SQL content in a new page

Ask about general coding issues or problems here.

Moderators: macek, egami, gesf

sampharo
New php-forum User
New php-forum User
Posts: 6
Joined: Sun Aug 05, 2012 6:19 am

Displaying SQL content in a new page

Postby sampharo » Thu Sep 05, 2013 6:56 pm

Hi everyone,

My website is currently built in a way where a list of courses is displayed in a list form, with the information populated from an SQL database. Each course name acts as an html link that displays the course details and information into a lightbox.

Code: Select all

<td valign="top"><a href="javascript:ShowCourseDet('<?php print $row_sub['crs_id']; ?>');"><?php print $this->ShowVal($row_sub['crs_name']); ?></a></td>


I discovered recently that this is really bad for SEO and none of the course contents are seen by crawlers.

I need to change this code to put the course details into a new fresh page rather than a lightbox, OR do something else to this programming to allow the contents of the course details to be seen by crawlers.

Any advice?

This is the whole section of this table

Code: Select all

                            <tr>
                                <td valign="top"><a href="javascript:ShowCourseDet('<?php print $row_sub['crs_id']; ?>');"><?php print $this->ShowVal($row_sub['crs_name']); ?></a></td>
                                <td valign="top"><?php print $this->ShowVal($row_sub['crs_location']); ?></td>
                                <td valign="top" nowrap><?php print $row_sub['start_date'].' - '.$row_sub['end_date']; ?></td>
                                <td valign="top" align="right"><?php print $row_sub['crs_price']; ?></td>
                                <td valign="top">   <input name="send" type="submit" class="button2" id="send2" value=""onclick="window.location='register.php?course=<?php print $row_sub['crs_id']; ?>'" />   </td>
                            </tr>

sampharo
New php-forum User
New php-forum User
Posts: 6
Joined: Sun Aug 05, 2012 6:19 am

Re: Displaying SQL content in a new page

Postby sampharo » Tue Sep 24, 2013 6:10 am

Bump.

Any help or suggestions would be greatly appreciated.

johnj
php-forum Super User
php-forum Super User
Posts: 1805
Joined: Thu Mar 10, 2011 5:07 pm

Re: Displaying SQL content in a new page

Postby johnj » Tue Sep 24, 2013 8:09 pm

please google it. Here is one such link:
http://help.virb.com/customer/portal/ar ... oogle-seo-


Return to “PHP coding => General”

Who is online

Users browsing this forum: Google [Bot], Google Feedfetcher and 5 guests