// This will display content from a MySQL DB ?> /* Connecting, selecting database */ include( $DOCUMENT_ROOT . '/home/cr0iv45mjuep/public_html/admin/config.php' ); include( $DOCUMENT_ROOT . '/home/cr0iv45mjuep/public_html/admin/opendb.php' ); /* select some rows and print them out */ $stmt = "SELECT * FROM ads where id='1078'"; $result = mysql_query( $stmt )or die( "Query failed - $stmt" ); while ( $line = mysql_fetch_assoc( $result ) ) { $id = $line[ 'id' ]; $title = $line[ 'title' ]; $category = $line[ 'category' ]; $caturl = $line[ 'caturl' ]; $text = $line[ 'text' ]; ?>