Answer the question
In order to leave comments, you need to log in
How to select a specific row from Mysql?
Good afternoon, developers, please tell me how to implement this, I have never encountered this before, I have been working for only a month and I have been studying for six months, but this is the first time. There is a base (let it be params), it has a column (let it be full) it has a large description of the product and somewhere in all this description there is
<iframe width="560" height="315" src="https://www.youtube.com/embed/IGuHlPNioRk" frameborder="0" allowfullscreen></iframe>
$req = mysqli_query(DB::db(), 'SELECT id,full FROM params WHERE id=247397');
// var_dump($req);
while( $row = mysqli_fetch_assoc( $req ) ){
$data = [];
if(preg_match('/< *iframe[^>]*src *= *["\']?([^"\']*)/i', $row['full'], $matches)){
$full = $row['full'];
var_dump($full);
}
};
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question