Old 04-25-2005   2 links from elsewhere to this Post. Click to view. #1 (permalink)
Tech Support
 
Man1c M0g's Avatar
 
Tournaments Won: 1

Join Date: Sep 2003
Location: Portsmouth, UK.
Posts: 4,202
Blog Entries: 21
Images: 3

Send a message via ICQ to Man1c M0g Send a message via MSN to Man1c M0g Send a message via Skype™ to Man1c M0g
MySQL Query Limiting

This is a thread to discuss the MySQL Query Limiting tutorial. Please keep all posts on-topic, don't spam, and read the entire thread BEFORE you post - any issues you have could be answered deeper within the thread.
__________________
Man1c M0g is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 02-13-2008   #2 (permalink)
tid
Registered User
 

Join Date: Feb 2008
Posts: 1

Anybody getting an error relating to the section:
Quote:
$query = mysql_query(“SELECT * FROM OurTable LIMIT ‘$start’, ‘$limit’”)
may want to try removing the single quotes " ' " around $start and $limit. This was causing MySQL syntax errors for me.

Great tutorial btw, thanks
tid is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 10-07-2008   #3 (permalink)
Rusty Bio-Hazard!
 
notjustgraphics's Avatar
 

Join Date: Sep 2006
Location: Toronto, Ontario, Canada
Posts: 1,161
Images: 26

Send a message via MSN to notjustgraphics
I believe the last few lines of the script have some errors.

Try this instead:

PHP Code:
$previous $start $limit//changed operator
$next $start $limit//changed operator
echo '<a href="index.php?page='.$previous.'">Previous Page</a> - '//changed 'start' to 'page'
echo '<a href="index.php?page='.$next.'">Next Page</a>'//changed 'start' to 'page'

// the set of statements above displays the previous and next page links 
__________________
notjustgraphics is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


LinkBacks (?)
LinkBack to this Thread: http://forums.biorust.com/tutorial-commenting-system/1682-mysql-query-limiting.html
Posted By For Type Date
BioRUST.com :: Tutorials >> MySQL Query Limiting This thread Refback 12-21-2007 10:25 PM
BioRUST.com :: Tutorials >> MySQL Query Limiting This thread Refback 11-19-2007 10:52 AM

Similar Threads
Thread Thread Starter Forum Replies Last Post
php and mySQL loverofbeats HTML / PHP / ASP / JS 4 10-24-2008 12:39 PM
How do I get a MySQL database Torner HTML / PHP / ASP / JS 5 08-30-2008 03:48 PM
Help | 2 different SQL query ? IcedEarth HTML / PHP / ASP / JS 11 08-08-2008 11:49 AM
MYSQL Help Neil_8_24_93 HTML / PHP / ASP / JS 2 08-07-2006 07:15 PM
ASP and mySQL bedlam123 HTML / PHP / ASP / JS 3 05-08-2006 03:27 PM


All times are GMT +1. The time now is 08:28 PM.

Powered by vBulletin Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.3.2

Design & Content © BioRUST 2008 :: PRIVACY STATEMENT :: LEGAL INFORMATION :: ADVERTISING MEDIA KIT