Jump to content

Excluding a row


RynMan

Recommended Posts

Hi guys

 

So I'm trying to display some text from mySQL but it's only showing one of the two records in the database.  Here's my code....

 

$resultWriters = mysql_query("SELECT * FROM `tblclientinformation` WHERE Fight = 1 ORDER BY LastName ASC ; ", $connection);
if (!$resultWriters) { 
die("Database query failed" . mysql_error()) ;
}

while ($arrayWriters = mysql_fetch_array($resultWriters)){

	echo '
	<tr>
	<td> </td>
	<td><span class="FieldText14">
	<a href="cvprofile_other.php?CVType=director&KamID='.$arrayWriters["KAMClientID"].'">' 
	.$arrayWriters["FirstName"]." ".$arrayWriters["LastName"].'</span></a></td>
	<td> </td>
	</tr>
	';
	}

 

Any idea why it's only displaying one of the two records returned in my query?  :(

Link to comment
https://forums.phpfreaks.com/topic/197457-excluding-a-row/
Share on other sites

We cannot really help you with what your code is doing when you don't post your actual relevant code. It just wastes everyones time.

 

I have a lot of code, and I realise when ppl post every line of code they have, it deters other from taking a look at their problem.  In this case, I made a mistake and apologised for it.  Thanks for your understanding. 

Link to comment
https://forums.phpfreaks.com/topic/197457-excluding-a-row/#findComment-1036417
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.