<?php
$name = "product_"
$lens = strlen($name - 8);
$id = substr($name , 8 , $lens);
$query = query("SELECT * FROM product WHERE product_id= ".escape_string($id)." ");
?>
I want to take the id of product, but when I try it I see:
A non-numeric value encountered in strlen($name - 8);
Is there another way to do it?