SEO | Link Popularity | Search Engine Consulting | SEO Tutorial | SEO Tools | SEO Forum
Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 05-04-2006, 03:22 AM
flaviussirop's Avatar
flaviussirop flaviussirop is offline
SEO
 
Join Date: Feb 2006
Posts: 382 flaviussirop will become famous soon enoughflaviussirop will become famous soon enough
turning database records into html

does anyone know a good tutorial about turning database records into html pages.(SEO friendly) ?
would really appreciate it!
thanks!
__________________
Record and Analyze your Visitors' Behavior - Excellent FREE tool - never before seen

Super SEO eBook! - Bring traffic to your website with these excellent techniques!
Reply With Quote
  #2  
Old 05-04-2006, 10:17 AM
Paz's Avatar
Paz Paz is offline
SEO GUY Moderator
 
Join Date: Sep 2004
Location: Antalya, Turkey
Posts: 4,181 Paz has a spectacular aura aboutPaz has a spectacular aura about
Hi,

there are lots of ways to do it. What sort of database is it Access, MySQL, MS SQl etc.. Is it all text content? Any other info...

Cheers,
Paz.
__________________
10.3 million entries for Hotels in Turkey but I'm still chipping away.
Reply With Quote
  #3  
Old 05-04-2006, 02:47 PM
flaviussirop's Avatar
flaviussirop flaviussirop is offline
SEO
 
Join Date: Feb 2006
Posts: 382 flaviussirop will become famous soon enoughflaviussirop will become famous soon enough
it's text content only.. it's MySql database. I will use PHP to do it.. the thing is that I pretty much have an idea how to do it, found a nice tutorial also..the DB contains poems.. and after I display them I would like to make the dynamic content look like directories.. as on this site famouswhy.com.
and I would love to have some help along the way.. I know I will have to edit the .htaccess in the end to do this..
Is it so very hard? Pls. explain this process a little to me and show me some alternatives.
thanks in advance ppl. but mostly thanks PAZ!
__________________
Record and Analyze your Visitors' Behavior - Excellent FREE tool - never before seen

Super SEO eBook! - Bring traffic to your website with these excellent techniques!
Reply With Quote
  #4  
Old 05-04-2006, 10:45 PM
Paz's Avatar
Paz Paz is offline
SEO GUY Moderator
 
Join Date: Sep 2004
Location: Antalya, Turkey
Posts: 4,181 Paz has a spectacular aura aboutPaz has a spectacular aura about
Hi,

I looked at the site and it's nice, but I couldn't figure out which directory software they are using.

If you're looking more for a text directory with thumbnails, then I'd go for php Link directory, or the site sift software. Both have free versions.

The htaccess isn't worth the work you'd have to do, in my view, but there may be seo-friendly hacks for those directories. In fact the site sift software was developed by a forum member, and I'm sure it's spider friendly.

Why not post something in the "directories" forum and see what people suggest.

Cheers,
Paz.
__________________
10.3 million entries for Hotels in Turkey but I'm still chipping away.
Reply With Quote
  #5  
Old 05-05-2006, 01:24 AM
flaviussirop's Avatar
flaviussirop flaviussirop is offline
SEO
 
Join Date: Feb 2006
Posts: 382 flaviussirop will become famous soon enoughflaviussirop will become famous soon enough
hm... I keep getting the same suggests from others.. to stay away from the .htaccess..
everyone says it's hard.. I have a little programming experience.. I think I could figure it out with some good tutorial and advice..
P.S. I posted as you suggested in the directories part of the forum..
But you won't escape.. I'll still be expecting a solution from you Paz, cz you solve everything all the time haha
__________________
Record and Analyze your Visitors' Behavior - Excellent FREE tool - never before seen

Super SEO eBook! - Bring traffic to your website with these excellent techniques!
Reply With Quote
  #6  
Old 05-05-2006, 02:40 AM
Paz's Avatar
Paz Paz is offline
SEO GUY Moderator
 
Join Date: Sep 2004
Location: Antalya, Turkey
Posts: 4,181 Paz has a spectacular aura aboutPaz has a spectacular aura about
Hi,

I'm not saying htaccess is hard, I'm just saying that in recent months the search engines are getting better at coping with dynamic urls.

Still, if you want to become an htaccess expert, read these, and then you can help me - haha

Mod Rewrite - what it does:
http://www.webmasterworld.com/forum92/3465.htm

Mod Rewrite Beginners
http://www.seomoz.org/articles/301-redirects.php

Mod Rewrite Intermediate
http://www.womencentral.net/rewriting-url.html
http://forums.digitalpoint.com/showthread.php?t=23044
http://www.zeroeffort.com/79/site-c...ritingurls.html

Mod Rewrite Advanced
http://httpd.apache.org/docs/2.0/mod/mod_rewrite.html

Mod Rewrite Examples:
http://forums.seochat.com/showthread.php?p=234516

Regular expressions:
http://gnosis.cx/publish/programmin...xpressions.html

Mod rewrite forum...
http://www.seo1.net/forum4.html

Once you've read all those, get back to us with any questions....

Cheers,
Paz.
__________________
10.3 million entries for Hotels in Turkey but I'm still chipping away.
Reply With Quote
  #7  
Old 05-09-2006, 07:34 AM
jedicoder's Avatar
jedicoder jedicoder is offline
SEO Junior and a half
 
Join Date: May 2006
Posts: 69 jedicoder is on a distinguished road
Hi,
I've created data driven sites with both ASP and ASP.net. I haven't created sites where it appears to be a directory as the URL. My URLs have parameters like www.mysite.com?parm1=3&parm2=7

Search engines index these pages for me so that's not a problem. PHP is scripting, so I think of it as:
1. connect to the database to fetch the data,
2. then generate the HTML page on the fly.
__________________
jedicoder
current seo efforts on Website Designer Search Directory and Grand Oak eCommerce Web Designer
Reply With Quote
  #8  
Old 06-09-2006, 10:59 AM
ixpleo's Avatar
ixpleo ixpleo is offline
SEO Junior
 
Join Date: Jun 2006
Posts: 22 ixpleo is on a distinguished road
a little late, but I wasn't sure if you've figured this out yet:

Basically you take things on query at a time, then display the results.

PHP Code:
<?php

// SERVER VARIABLES
$server "localhost";
$user "johndoe";
$pass "password";
$database "articles";


// Connect to MySQL
mysql_connect($server$user$pass) or die("Could not connect to server");

// Select Database
mysql_select_db($server$user$pass) or die("Could not select Database");

// Run a Query 
// In this case, select the ID and author's name from the table "article_listing"
$query mysql_query("SELECT id, author_name FROM article_listing");

// Fetch the resuls and Display
// Using the mysql_fetch_assoc(), it will create an array $row
// and the keys of that array will be named after what we pulled in the database
// so $row["id"] and $row["author_name"]

while($row mysql_fetch_assoc($query)) {
    echo 
"<a href=\"poem_listing.php?author_id=".$row["id"]."\">".$row["author_name"]."</a><br />\n";
}

?>


This writes Each author's name on a new line with a link to poem_listing.php
it passes a variable in the URL called author_id with the unique id of that author in the database
by having this, the database knows to display all poems by the author whose ID is in the url
the query on poem_listing.php might look like this

?>

PHP Code:
<?php

// poem_listing.php

// if the variable author_id is not set in the url, give the user an error message
if(!isset($_GET["author_id"]) {
    echo 
"We're sorry. No author was selected. Please go back and try again.";
} else {

    
// Run the query

    // ASSUME THE SERVER VARIABLES ARE ALL DEFINED ON THIS SCRIPT ALSO

    // Connect to MySQL
    
mysql_connect($server$user$pass) or die("Could not connect to server");

    
// Select Database
    
mysql_select_db($server$user$pass) or die("Could not select Database");

    
$query mysql_query("SELECT * FROM article_list WHERE author_id='".$_GET["author_id"]."'");

    if(
mysql_num_rows($query) > 0) {

        
// DISPLAY RESULTS HERE

    
} else {

        
// That author has no articles in the database

        
echo "We're sorry. That author currently has no articles written.";

    }

}

    

?>
There may be a few small syntax errors here and there (missing semi colon or quote, etc), I just wrote this down quick. But once you have the PHP syntax down, all you need is the manual at php.net.

Let me know if you have any questions.
Reply With Quote
  #9  
Old 06-09-2006, 01:22 PM
Paz's Avatar
Paz Paz is offline
SEO GUY Moderator
 
Join Date: Sep 2004
Location: Antalya, Turkey
Posts: 4,181 Paz has a spectacular aura aboutPaz has a spectacular aura about
Quote:
Originally Posted by ixpleo
a little late, but I wasn't sure if you've figured this out yet:
<snip>


Well better late than never.... nice to have a php coder in the forum.... Welcome!

Cheers,
Paz.
__________________
10.3 million entries for Hotels in Turkey but I'm still chipping away.
Reply With Quote
  #10  
Old 06-19-2006, 01:33 AM
flaviussirop's Avatar
flaviussirop flaviussirop is offline
SEO
 
Join Date: Feb 2006
Posts: 382 flaviussirop will become famous soon enoughflaviussirop will become famous soon enough
thanks a lot ixpleo for explaining this.. I've just seen it now..
__________________
Record and Analyze your Visitors' Behavior - Excellent FREE tool - never before seen

Super SEO eBook! - Bring traffic to your website with these excellent techniques!
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


Login/Register
User Name
Password
Remember Me?

Forum Links
Forum Home
SEO Forum
Internet Marketing Forum
Web Design Forum
Web Hosting Forum
Programming Forum
SEO Chat

Quick Links
Forum Home
New Posts
Mark Forums Read
Open Buddy List
User Control Panel
Edit Avatar
Edit Profile
Edit Options
Miscellaneous
Subscribed Threads
My Profile

Search Forums

Advanced Search
All times are GMT -8. The time now is 08:43 AM.


Powered by: vBulletin Version 3.0.3
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.