MySQL Forums
Forum List  »  Quality Assurance

Re: Hiding the last column of text
Posted by: J B
Date: September 12, 2012 06:28AM

OK, I figured it out;

Had to create a second query to get the row. It's not pretty but it works:

$result_id = mysql_query("SELECT concat(first_name, ' ', last_name), email, country, TimeStamp, id FROM {$table} order by id desc LIMIT
$startrow, {$records_per_page}") or
die(mysql_error());

while($row = mysql_fetch_row($result))
while($row_id = mysql_fetch_row($result_id))

foreach($row as $cell)

echo "<td><a href=../ui/edit_customer.php&id=$row_id[4]>$cell</a></td>";

echo "</tr>\n";

Options: ReplyQuote


Subject
Views
Written By
Posted
2815
J B
September 12, 2012 06:07AM
Re: Hiding the last column of text
1228
J B
September 12, 2012 06:28AM
1027
J B
September 12, 2012 08:09AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.