Is it possible to create grid view in php?Or any thing equivalent to that?What i actually want is to query the database(mySQL) and print the result in a table form on the web page.
and when i click any column i want to redirect to another page
Any help would be appreciated....

Recommended Answers

All 3 Replies

You have to add the table table tr td within the script that is printing the results from the database.
<?php
for loop for each row{
?>
<a href="url"><td><?php echo "print something here" ?> </td></a>
<?php
}
?>

of course you should add the missing <table> and <tr> tags.

You may check the jquery datatables plugin to create a grid view of php dynamic pages.

It simply creates the grid view with sorting (asc,desc) of all columns, search query and pagination. The only thing is you need to set up the credentials.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.