The LIMIT keyword in your query is what you use to contrain your query to X records, however, the second parameter is the amount of records you want. So it should be a fixed number determined beforehand, like this:
$limit = 10;
$sql = "SELECT * FROM cracks WHERE name like '$name%' ORDER BY name LIMIT $offset, $limit";
this would return you the next 10 records starting at $offset. Where $offset is passed to your script. Check out the Next/Prev button article here at phpbuilder, it is very handy. I modified it a bit to suit my site but it works pretty well as it is.