Forum Moderators: coopster
<?
include_once($_SERVER['DOCUMENT_ROOT'] ."/assets/includes/sqlconfig.php") ;
$sql = "SELECT * FROM dir WHERE approved='yes' ORDER BY name ASC";
$result = mysql_query($sql);
$myrow = mysql_fetch_array($result);
while ($row = mysql_fetch_array($result)) {
include_once($_SERVER['DOCUMENT_ROOT'] ."/assets/includes/fieldvars.php") ; // my variables that inform the ones below
?>
<p><strong><?php echo $name ?></strong> <?php echo $address ?><br/>
<?php echo $description ?><br/>
<em>phone: <?php echo $phone ?> ¦ tollfree: <?php echo $tollfree ?> ¦ fax: <?php echo $fax ?> <br/>
website: <?php echo $website ?> ¦ email: <?php echo $email ?></em></p>
<?php
};
?>
<?php
include_once($_SERVER['DOCUMENT_ROOT'] ."/assets/includes/sqlconfig.php") ;
$sql = "SELECT * FROM dir WHERE approved = 'yes' ORDER BY name ASC";
$result = mysql_query($sql);
while ($row = mysql_fetch_array($result)) {
include($_SERVER['DOCUMENT_ROOT'] ."/assets/includes/fieldvars.php") ;
?>
<p><strong><?php echo $name ?></strong> <?php echo $address ?><br/>
<?php echo $description ?><br/>
<em>phone: <?php echo $phone ?> ¦ tollfree: <?php echo $tollfree ?> ¦ fax: <?php echo $fax ?> <br/>
website: <?php echo $website ?> ¦ email: <?php echo $email ?></em></p>
<?php
};
?>