Jump to content

Help what am I doing wrong here


affordit

Recommended Posts

This is suppose to display all the questions that have not been answered yet but its broke can someone tell me why?

[<?php
session_start();
include"client_info3.php";
include"top_mid_nav.inc";
include("sharons_dbinfo.inc.php");
mysql_connect(mysql,$name,$password);
mysql_select_db(mydatabase) or die( "Unable to select database");
$query = "Select * from  faq Where answer = ' '";
$results = mysql_query($query) or die(mysql_error()."<br /><br />".$query);
$info = mysql_fetch_array($results);
$i = 0;
while ($info = mysql_fetch_array($results)) {
print "<td width='150' ALIGN='CENTER'><font size = '+1'>";
echo $info['id'];
echo "</font><br>";
echo $info['question'];
echo "<BR>";
echo $info['answer'];
echo"<BR></td>";
$i++;
if($i % 5 == 0){
	echo "</tr><tr>";
}
}
?>/code]

Link to comment
https://forums.phpfreaks.com/topic/92656-help-what-am-i-doing-wrong-here/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.