take input ID values

Asked

Viewed 61 times

-2

I have to do an auction system and am planning how to make Countdown for several products at once, each with its number of seconds. I’m thinking about doing it with PHP and jQuery. The problem is that I need to get the rest of the ID’s from the database pulled by PHP. For example, I will make a listing (for example) with php of 3 elements, each with the name:

  • minhaid_43231234
  • minhaid_99
  • minhaid_3023321

I need to get the numbers after the minhaid_ being that I only know that in id will always have minhaid_

1 answer

0

If it is only based on PHP you can make a explode to separate my aid_

<?php
$v = "minhaid_43231234";
echo explode("minhaid_", $v)[1];
?>

Browser other questions tagged

You are not signed in. Login or sign up in order to post.