ma5ect Posted October 16, 2008 Share Posted October 16, 2008 Hi all, I have a recordset to display records from database, but i dont want all the records to be displayed, i would only like the record for which the user has requested for..eg student number.. any ideas? code: mysql_select_db($database_mysql_connect, $mysql_connect); $query_Recordset1 = "SELECT * FROM robs_enterprise"; $Recordset1 = mysql_query($query_Recordset1, $mysql_connect) or die(mysql_error()); $row_Recordset1 = mysql_fetch_assoc($Recordset1); $totalRows_Recordset1 = mysql_num_rows($Recordset1); Quote Link to comment https://forums.phpfreaks.com/topic/128689-solved-display-certain-records/ Share on other sites More sharing options...
cleary1981 Posted October 16, 2008 Share Posted October 16, 2008 Should you not use SELECT * FROM rob_enterprise WHERE [condition] condition being what distinguishes the record you are searching for Quote Link to comment https://forums.phpfreaks.com/topic/128689-solved-display-certain-records/#findComment-666964 Share on other sites More sharing options...
prexep Posted October 16, 2008 Share Posted October 16, 2008 http://w3schools.com/php/php_mysql_where.asp Quote Link to comment https://forums.phpfreaks.com/topic/128689-solved-display-certain-records/#findComment-666965 Share on other sites More sharing options...
ma5ect Posted October 16, 2008 Author Share Posted October 16, 2008 what i want to achieve is, i want the user to enter their number and then the database to display the records for only that number they entered...am using dreamweaver cs3 Quote Link to comment https://forums.phpfreaks.com/topic/128689-solved-display-certain-records/#findComment-666967 Share on other sites More sharing options...
prexep Posted October 16, 2008 Share Posted October 16, 2008 http://w3schools.com/php/php_post.asp http://w3schools.com/php/php_mysql_where.asp Read them. This will help guide you. Quote Link to comment https://forums.phpfreaks.com/topic/128689-solved-display-certain-records/#findComment-666970 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.