Hi this is scorpionz:
I need to know how to insert PHP block in database using PHP, because i am generating random tables.
So i need that to insert:
Here is the query:
<?php
$sql_insert_revisions = 'INSERT INTO node_revisions(nid,vid,uid,title,body,teaser,TIMESTAMP,FORMAT)
VALUES
('.$nid_ins.','.$vid_ins.','.$user_id.','.$ad_title_view.',
'"<?php $block = module_invoke('block', 'block', 'VIEW', 66); print $block['content'];?>"',
'"<?php $block = module_invoke('block', 'block', 'VIEW', 66); print $block['content']; ?>"',1248762134,3)';
?>
Any response will be highly aprreciated:
Regards
scorpionz