Hello,
I’m using the following code to create pages:
[code]<?php
include(“dbinfo.inc.php”);
mysql_connect(localhost,$username,$password);
@mysql_select_db($database) or die( “Unable to select database”);
$query=“SELECT * FROM table WHERE id=’$id’”;
$result=mysql_query($query);
$num=mysql_numrows($result);
mysql_close();
$i=0;
while ($i < $num) {
$id=mysql_result($result,$i,“id”);
$title=mysql_result($result,$i,“title”);
$content=mysql_result($result,$i,“content”);
?>
It seems, however, that page content is not being indexed by google (or server stats). For example, google will find page.php but not page.php?id=1.
Is there a better way to retrieve data from a MySQL table?
Thanks,
Robert