Here is my query in PDO:
$stmval = $pdo -> prepare("SELECT bio, first_name, last_name, options FROM wp_connections WHERE `email` LIKE '%".$_COOKIE["e"]."%' ORDER BY ID ASC LIMIT 1" );
$stmval -> execute();
$wp_connectionsdb = $stmval -> fetch();
$stmval -> closeCursor();
echo $wp_connectionsdb['options'];
Problem is options cell contains stuff like:
a:3:{s:5:"entry";a:1:{s:4:"type";s:10:"individual";}s:5:"group";a:1:{s:6:"family";a:0:{}}s:5:"image";a:4:{s:6:"linked";b:1;s:7:"display";b:1;s:4:"name";a:1:{s:8:"original";s:12:"fdv33.jpg";}s:4:"meta";a:1:{s:8:"original";a:8:{s:4:"name";s:12:"fdv33.jpg";s:4:"path";s:103:"/home/someurl/public_html/wp-content/uploads/connections-images/xxx/fdv33.jpg";s:3:"url";s:96:"http://someurl.com/wp-content/uploads/fdv33.jpg";s:5:"width";i:553;s:6:"height";i:552;s:4:"size";s:24:"width="553" height="552"";s:4:"mime";s:10:"image/jpeg";s:4:"type";i:2;}}}}
How can I extract from above mess only URL property "http://someurl.com/wp-content/uploads/fdv33.jpg"
Anyone recognizes this data system?
Should I use mySQL or PHP to somehow extract what I need?
I'm sure this question will need to be moderated after answer is provided tho without actually knowing how to name it I'm simply unsure how to provide correct title for this question.