PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
For now i have this below
and it not good looking for a user or else for us and to show up the record i use while/fetch_array: and any idea if how to insert a defult number of rows in a table. like image below
the output will generate x20 in every id. instead i have only 5 records it will make 100. ==
What i mean is i need to set an empty rows in my page that correspond or equal into my table limit 20. because even if no record found the table is still there even if it is empty. like in image example above. and i hope there is someone could help. thanks
Well, with that code you're displaying each row 19 times...
Keep just the while loop. Use mysql_num_rows to figure out how many you printed (or keep a running counter) and print however many more rows as filler until you reach 20 rows.