Hello,
I use demo.mysql.php to put everthing in MySQL
How can i read the year (s:4:"year";a:1:{i:0;s:4:"2014";) in field [comments_all] with a external script?
Can someone give me a example?
Many thanks..
Reading tags in mysql from [comments_all]
-
- User
- Posts:2
- Joined:Fri Dec 26, 2014 10:52 am
- Are you a spambot?:no
-
- getID3() v1 developer
- Posts:1477
- Joined:Fri May 04, 2001 4:00 pm
- Are you a spambot?:no
- Location:Northern Ontario, Canada
- Contact:
Re: Reading tags in mysql from [comments_all]
Code: Select all
$sql = 'SELECT `comments_all` WHERE (`filename` = "'.mysql_real_escape_string($filename).'")';
$result = mysql_query($SQLquery);
if ($row = mysql_fetch_assoc($result)) {
if ($comments_all = @unserialize($row['comments_all']))) {
$year = $comments_all['year'][0];
}
}
-
- User
- Posts:2
- Joined:Fri Dec 26, 2014 10:52 am
- Are you a spambot?:no
Re: Reading tags in mysql from [comments_all]
Thank u verry much James!