View Single Post
  #26  
Old 05-29-2005, 02:19 PM
General Nuisance is offline General Nuisance
Registered User

Join Date: Oct 2004
Posts: 616

Send a message via ICQ to General Nuisance
what am i doing wrong?

this script dont work either....

PHP Code:
<html><head><title>The Nova-Zone Link Database </title></head>
<body>

<?php

#connecting To mysql

$conn = @mysql_connect"localhost" "root" "5bk3hm2agn" ) or die( "Err:conn" );

#select the database

$rs = @mysql_select_db"linkdb"$conn ) or die( "err:db" ) ;

# create the query

$sql="select LName, URL, ld, sc from links";

# execute the query

$rs mysql_query$sql,$conn ) ;

#write the data

while( $row mysql_fetch_array$rs ) )
{
echo( 
"Category: " $row["sc"]
echo( 
"Site Name: " $row["LName"]
echo( 
"URL: " $row["URL"]
echo( 
" Site Description: " $row["ld"] ."<BR>");
}
?>
</body></html>
it is supposed to display the links that are submitted to the database..
__________________
The Nova-Zone


http://youraite.yourhost.yourusername.com - long urls
-looks bad
-who can remember it?
- Solution?
- Get a short Nova-Zone subdomain! Yoursite.nova-zone.com
- Now thats smart. just ask for one via pm,email or contact page on site.
Reply With Quote