adamjnz Posted April 14, 2006 Share Posted April 14, 2006 Is it possible to echo a specific record in a MySQL table based on its ID column? Quote Link to comment Share on other sites More sharing options...
kenrbnsn Posted April 14, 2006 Share Posted April 14, 2006 Yes. Are you having problems?[code]<?php$q = "select * from tablename where id='$somevariable'";$rs = mysql_query($q) or die('Problem with the query: ' . $q . '<br />' . mysql_error());$rw = mysql_fetch_assoc($rw);echo '<pre>' . print_r($row,true) . '</pre>';?>[/code]Ken Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.