自动递增下一个数字PHP

Can someone please help me. I need to get the next auto incremented number from a certain table.

            <th class="width1">
                <?php echo _l('Job Number:'); ?>
            </th>
            <td>
                <input type="text" name="name" id="job_name" value="<?php echo htmlspecialchars($job['name']); ?>" />

;

            </td>

where would and what would I add to this to achieve what I want. I have tried a few things but its driving me crazy.

Any help appreciated thanks.

Ash

SELECT AUTO_INCREMENT
FROM information_schema.tables
WHERE table_name = 'table'
AND table_schema = DATABASE()

You can run this query to find out the next auto increment of a table