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?? :)
User Profile
Collapse
-
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... -
WORKS GREAT!!!!
You are AWESOME!!!
Thanks again!
The B.A.T.ManLeave a comment:
-
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
...Leave a comment:
-
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...Leave a comment:
-
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>";
...Leave a comment:
-
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>"...Leave a comment:
-
[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...
No activity results to display
Show More
Leave a comment: