以下是我在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'];
问题是选项单元格包含的内容如下:
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;}}}}
如何从上面的混乱中提取URL属性" http://someurl.com/wp-content/uploads/fdv33.jpg"
有人认出这个数据系统吗?
我应该使用mySQL或PHP以某种方式提取我需要的内容吗?
我确定这个问题需要在提供答案后才能得到审核,而不知道如何命名,我只是不确定如何为这个问题提供正确的标题。