Hice algo asi:
Código PHP:
<?php
include'connect.php';
$id_social_admin = 1 ;
$social_follows_result = $db->prepare("SELECT * FROM social_follows WHERE social_id_admin = :id_social_admin");
$social_follows_result->execute(array(':id_social_admin' => $id_social_admin));
while($social_follows_row= $social_follows_result->fetch()) {
$social_searchtag = $social_follows_row['social_searchtag'];
$social_hello = $social_follows_row['social_hello'];
$social_praise = $social_follows_row['social_praise'];
$searchtag = $social_searchtag .',<br>';
$hello = $social_hello .',<br>' ;
$praise = $social_praise .',<br>' ;
}
?>
Bueno y me muestra perfecto algo asi:
FILAS SEARCHTAG
SEO,
MARKETING,
FILAS SALUDOS
HOLA!
BUEN DIA!
COMO ESTAS?
Y FILAS COMENTARIOS
QUE CHEVERY.
SUPER.
COOL.
pero en la parte queprocesa los arrays me sale este mensaje:
Warning: array_rand() expects parameter 1 to be array, null given in /home/socia91487/public_html/social_click/fb/follow.php on line 44
que me dice que estoy enviando mas de un parametro y solo espera uno por vez.
seguire intatetando si alguien ya hiso algo paraecido...