Jump to content

php show result


ctcp

Recommended Posts

i got table ID name type date and options

in options i got Yes or No ..

this is my result.php  page but i whant view result only whith Yes if options if No do not view on result.php

plz help ..

 

<?php

// Connect to server and select databse.
mysql_connect("$hostname_files", "$username_files", "$password_files")or die("cannot connect");
mysql_select_db("$database_files")or die("cannot select DB");

$sql = "SELECT * FROM crackz ORDER BY id DESC LIMIT 30";
#$sql="SELECT * FROM $tbl_name";
$result=mysql_query($sql);

$count=mysql_num_rows($result);

?>
<?php
while($rows=mysql_fetch_array($result)){
?>

<table width="100%" border="0" align="center">
<tr>
          <td width="58%" align="left"><a href="./?id=<?php echo $rows['id']; ?>"><?php echo $rows['name']; ?></a></td>
          <td width="18%" align="center"><?php echo $rows['type']; ?></td>
          <td width="24%" align="center"><?php echo $rows['date']; ?></td>
  </tr>
        <tr>
          <td height="15" colspan="3" align="left" bgcolor="#F8F0E0"><hr /></td>
        </tr>
    </table>
<?php
}
?>

thanks you :-)

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.