Jump to content
Larry Ullman's Book Forums

Search the Community

Showing results for tags 'records'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • Single Editions
    • Modern Javascript: Develop and Design
    • The Yii Book
    • Effortless Flex 4 Development
    • Building a Web Site with Ajax: Visual QuickProject
    • Ruby: Visual QuickStart Guide
    • C++ Programming: Visual QuickStart Guide
    • C Programming: Visual QuickStart Guide
    • Adobe AIR: Visual QuickPro Guide
  • PHP and MySQL for Dynamic Web Sites: Visual QuickPro Guide
    • PHP and MySQL for Dynamic Web Sites: Visual QuickPro Guide (5th Edition)
    • PHP and MySQL for Dynamic Web Sites: Visual QuickPro Guide (4th Edition)
    • PHP 6 and MySQL 5 for Dynamic Web Sites: Visual QuickPro Guide (3rd Edition)
    • PHP and MySQL for Dynamic Web Sites: Visual QuickPro Guide (2nd Edition)
    • PHP and MySQL for Dynamic Web Sites: Visual QuickPro Guide (1st Edition)
  • PHP for the Web: Visual QuickStart Guide
    • PHP for the Web: Visual QuickStart Guide (5th Edition)
    • PHP for the Web: Visual QuickStart Guide (4th Edition)
    • PHP for the Web: Visual QuickStart Guide (3rd Edition)
    • PHP for the World Wide Web: Visual QuickStart Guide (2nd Edition)
    • PHP for the World Wide Web: Visual QuickStart Guide (1st Edition)
  • Effortless E-commerce with PHP and MySQL
    • Effortless E-Commerce with PHP and MySQL (2nd Edition)
    • Effortless E-Commerce with PHP and MySQL
  • PHP Advanced: Visual QuickPro Guide
    • PHP Advanced and Object-Oriented Programming: Visual QuickPro Guide (3rd Edition)
    • PHP 5 Advanced: Visual QuickPro Guide (2nd Edition)
    • PHP Advanced: Visual QuickPro Guide
  • MySQL: Visual QuickStart Guide
    • MySQL: Visual QuickStart Guide (2nd Edition)
    • MySQL: Visual QuickStart Guide (1st Edition)
  • Other
    • Announcements
    • Newsletter, Blog, and Other Topics
    • Forum Issues
    • Social

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Found 1 result

  1. I am using the scripts in the 2nd edition and am trying to call records from the mysql dbase and arrange them into a table with three records to each row. I hope it is possible but all the suggestions I have found so far dont work. (maybe because the suggestions are for more advanced versions of php?). I can display records one row at a time (and am even using the pagination script to paginate every 6 records) however every time I try and get three records on the same row I fail. The following is from a script that is working great (used to be script 13.6 ) - but only shows one record per row. Does anyone know how this can become three records per row?..I only really need to have three images per row as this is a gallery (and each images was to act as a link to a page of its own where it could be viewed on its own as much bigger). Sorry for long-winded request. Thanks echo '<table border="0" width="94%" cellspacing="13" cellpadding="10" align="center"> <tr> </tr>'; // Display all the URLs. $result = mysql_query ($query); while ($row = mysql_fetch_array ($result, MYSQL_ASSOC)) { // Display each record. echo " <tr> <td rowspan=\"4\" align=\"left\"><img src=\"Uploads/{$row['image_name']}\"width=\"250\" $image[3] alt=\"{$row['print_name']}\" /></td> <td align=\"left\">Title : <font=\"Agency FB\" size=\"+1\"><b><a href=\"view_print.php?pid={$row['print_id']}\">{$row['print_name']}</a></b></font></td></tr> <tr><td align=\"left\">Description : " . stripslashes($row['description']) . "</td></tr> <tr><td align=\"left\">Price : £{$row['price']}</td></tr> <tr><td align=\"left\">Status : {$row['type']}</td> </tr>\n"; } // End of while loop. echo '</table>'; // Close the table. mysql_close(); // Close the database connection.
×
×
  • Create New...