Jump to content

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

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.