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); 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 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 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 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. Link to comment https://forums.phpfreaks.com/topic/128689-solved-display-certain-records/#findComment-666970 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.