Unserializing & inserting into database ?

But the poster still gives me a headache. I've never seen an array like this before

echo $movies->poster is ok
saving $movies->poster gives me

Code:
[LEFT][COLOR=#222222][FONT=Helvetica Neue]O:9:"AlloImage":5:{s:20:"AlloImageimageIcon";b:0;s:22:"AlloImageimageBorder";b:0;s:20:"AlloImageimageSize";b:0;s:20:"AlloImageimageHost";s:21:"fr.web.img1.acsta.net";s:20:"AlloImageimagePath";s:34:"pictures/14/11/14/11/08/371396.jpg";}[/FONT][/COLOR]
[/LEFT]
 
Can you post your code here? so i will run on my test server to take a look, may be i help you at some extend.
 
Post the code where you are saving this data into your database. Unless
I'm mistaken, I suspect you're using a WP function for it. Correct me if I'm
wrong.
 
Post the code where you are saving this data into your database. Unless
I'm mistaken, I suspect you're using a WP function for it. Correct me if I'm
wrong.

you're correct. i'll post it as soon as i'm on my work computer
 
firstly make correction on 4th last line in your code
youtube='test';
it should look like
$youtube='test';

let me run this code on my machine
 
firstly make correction on 4th last line in your code
youtube='test';
it should look like
$youtube='test';

let me run this code on my machine


yes sorry. It's cause I slightly modified the version I post here compared to the one I have. Otherwise It's okay
 
can you please post updated version because i made some fixes into your code.
 
$helper =new AlloHelper; // space between new AlloHelper

$code =(int)'111543'; // type casting

now i have check wp function for posting
 
Great :)
Cheers have a great day

I have a concern tho.

it seems that the $movie->poster has a <br /> at the end of the url which make it difficult to use in the content.
Any workaround ?
 
Back
Top