User Profile

Collapse

Profile Sidebar

Collapse
TheBATManPhln
TheBATManPhln
Last Activity: Oct 19 '06, 12:35 AM
Joined: Oct 7 '06
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • TheBATManPhln
    started a topic Pagination
    in PHP

    Pagination

    I'm back. The ROOKIE returns.

    I'm going to have about 200+ records in my db. Is there a way to only display a few per page and have PHP do the work of creating linked PREV NEXT and PAGE #'s for however many pages it takes to display all of the results? If so, HOW?? :)
    See more | Go to post

  • TheBATManPhln
    replied to [CLOSED] Database results in columns
    in PHP
    Thought you might like to see the results. (TEMPORARY results anyway.) I still need to populate the db.

    http://phelanfinedesign.com/phundays/carshow.php

    Thanks again,
    The B.A.T.Man...
    See more | Go to post

    Leave a comment:


  • TheBATManPhln
    replied to [CLOSED] Database results in columns
    in PHP
    WORKS GREAT!!!!

    You are AWESOME!!!

    Thanks again!
    The B.A.T.Man
    See more | Go to post

    Leave a comment:


  • TheBATManPhln
    replied to [CLOSED] Database results in columns
    in PHP
    BINGO!!

    THANK YOU!!!

    One more question. Can I have one field in one row and another in the next?

    IMAGE 1 | IMAGE 2 | IMAGE 3
    DESCRIPTION 1 | DESCRIPTION 2 | DESCRIPTION 3


    IMAGE 4 | IMAGE 5 | IMAGE 6
    DESCRIPTION 4 | DESCRIPTION 5 | DESCRIPTION 6

    ...
    See more | Go to post

    Leave a comment:


  • TheBATManPhln
    replied to [CLOSED] Database results in columns
    in PHP
    I tried it with this

    mysql_connect($ db_host, $db_user, $db_pwd);
    mysql_select_db ($db_name);
    $query="SELECT * FROM cars";
    $result=mysql_q uery($query);

    Same results
    Parse error: parse error, unexpected T_VARIABLE, expecting '(' in /home/phelanfi/public_html/phundays/testphp/text3.php on line 26

    Line 26
    switch $i {

    As I said, I've only been playing...
    See more | Go to post

    Leave a comment:


  • TheBATManPhln
    replied to [CLOSED] Database results in columns
    in PHP
    Here's the code. Less my db info



    Here's the error

    Parse error: parse error, unexpected '.', expecting ')' in /home/phelanfi/public_html/phundays/testphp/text3.php on line 20

    This is line 20
    while ($rec = mysql_fetch_ass oc(....)) {

    I did fix the html tag from
    echo "<table">;

    to
    echo "<table>";
    ...
    See more | Go to post

    Leave a comment:


  • TheBATManPhln
    replied to [CLOSED] Database results in columns
    in PHP
    Being a novice maybe I'm screwing this up but neither one work.


    echo "<table>";

    $i = 0;

    while ($rec = mysql_fetch_ass oc($result)) {

    $i++;
    // THE NEXT LINE IS LINE 27
    switch $i {
    case 1 : echo "<tr><td>" . $rec[$i] . "</td>";

    break;

    case 2 : echo "<td>"...
    See more | Go to post

    Leave a comment:


  • TheBATManPhln
    started a topic [CLOSED] Database results in columns
    in PHP

    [CLOSED] Database results in columns

    I'm a newbie (less than a week of php) and I'm curious about how results can lay out. Is it possible to have the results layed out in 4 columns?

    Usual

    RECORD 1 GOES HERE
    RECORD 2 GOES HERE
    RECORD 3 GOES HERE

    I need

    RECORD 1 RECORD 2 RECORD 3 RECORD 4
    RECORD 5 RECORD 6 ETC.

    If this is possible, please don't forget that I'm REALLY...
    See more | Go to post
No activity results to display
Show More
Working...