Thanks !! I'm loving this forum.
I don't actually have a URL, since it's an internal site. However, if this: index.php?ip_addr=' results in this error:
SELECT cpz.p_id, COUNT(cpz.num) AS total FROM customers_products_nums cpv INNER JOIN product_today wp ON wp.p_id=cpz.p_id WHERE ( cpz.ip_addr=INET_ATON(''') ) GROUP BY cpz.p_id
What SQL injection could allow the retrieval of the database name, or something very very simple like that...