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? Link to comment https://forums.phpfreaks.com/topic/7378-is-it-possible-to-echo-a-specific-record-in-a-mysql-table-based-on-its-id-column/ 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 Link to comment https://forums.phpfreaks.com/topic/7378-is-it-possible-to-echo-a-specific-record-in-a-mysql-table-based-on-its-id-column/#findComment-26876 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.