|
|
|
| Доброй ночи!
Подкажите, пожалуйста, как составить запрос UPDATE к полям Link varchar(255) чтобы вместо
<iframe title="" width="200" height="163" src="http://www.mysyte.com/embed/AGi8R9ldBzs" frameborder="0" allowfullscreen></iframe>
были одни ссылки типа AGi8R9ldBzs (все, что стоит после http://www.mysyte.com/embed/ и до " frameborder=")
Спасибо! | |
|
|
|
|
|
|
|
для: 1prom
(15.04.2013 в 01:21)
| | Решил сделать так:
$positiona = strpos($Link, "com/embed/"); $contenta = substr($Link, $positiona); $contenta = substr($contenta, 10, 50);
$positiona = strpos($contenta, "\" frameborder="); $content_a = substr($contenta, 0, $positiona); | |
|
|
|