I have a PHP form that I'm using to process 2 MySQL tables. When I do a search, if one row is returned, the data is displayed in the same form that the input data was entered into. If multiple rows are returned, however, I'd like to be able to do one of 2 things.
1. Display the multiple rows in a table format. (I have code to do that, but it displays the table, then the form below it. It's using PHP_SELF.) Obviously I need to figure out how not to display the form in that case.
2. Be able to scroll through the rows one at a time in the form. I don't know if PHP has the capability to do this. I know Visual Basic 6.0 has a scrolling mechanism which would be perfect for this, but I want to do it in PHP.
If anyone has any ideas, I'd appreciate hearing them.
Thanks!
1. Display the multiple rows in a table format. (I have code to do that, but it displays the table, then the form below it. It's using PHP_SELF.) Obviously I need to figure out how not to display the form in that case.
2. Be able to scroll through the rows one at a time in the form. I don't know if PHP has the capability to do this. I know Visual Basic 6.0 has a scrolling mechanism which would be perfect for this, but I want to do it in PHP.
If anyone has any ideas, I'd appreciate hearing them.
Thanks!