Hey everyone I would LOVE some help on this one 🙂 I run an adult website and want to make it php for all my updates etc. Ive made a simple version of what i want created. i have about 90 entires in my database and all i need to do is take whats below and split it into multiple pages of lets say 10 per page. can anyone assist? 🙂 thanks!
<?php
$dbcnx = @mysql_connect("localhost", "NAMEOFDB", "PASSWORD");
if (!$dbcnx) {
echo( "<p>Unable to connect to the " .
"database server at this time.</p>" );
exit();
}
mysql_select_db("amateurcanada", $dbcnx);
if (! @mysql_select_db("amateurcanada") ) {
echo( "<p>Unable to locate the amateurcanada " .
"database at this time.</p>" );
exit();
}
?>
<?php
require('http://www.amateurcanada.com/header.shtml');
$result = @("SELECT name FROM members");
if (!result) {
echo("Error performing: " . mysql_error() . "End error.");
exit();
}
$result1 = @("SELECT description FROM members");
if (!result1) {
echo("Error performing: " . mysql_error() . "End error.");
exit();
}
while ( $row = mysql_fetch_array($result) ) {
if ( $row1 = mysql_fetch_array($result1) ) {
echo("<CENTER>");
echo("Name: " . $row["name"] . "<BR>");
echo($row1["description"]);
echo("</CENTER>");
}
}
require('http://www.amateurcanada.com/footer.shtml');
?>