
July 22nd, 2003, 12:11 PM
|
|
Registered User
|
|
Join Date: Apr 2007
Posts: 22,309
Time spent in forums: < 1 sec
Reputation Power: 24
|
|
|
Problem understanding tutorial
I enjoy learning from the exellant tutorials at codewalkers.com and I am working through the Database section. However I am having a problem understanding 'Previous and Next links'(http://codewalkers.com/tutorials/4/5.html). I cannont understand what to put on line twelve.
I have changed line 3 to the following:
php Code:
Original
- php Code |
|
|
|
<?PHP $query = "SELECT * FROM information LIMIT " . $start . ", 5";
But I cannot work out what to change this line(12) to:
php Code:
Original
- php Code |
|
|
|
$query = "SELECT count(*) as count FROM table";
I thought I had to change it to this:
php Code:
Original
- php Code |
|
|
|
$query = "SELECT * as 5 FROM information";
but this did not work. Please could you explain what I am doing wrong.
|