ufff, ufff, a ver, a ver:
He hecho esto:
archivo 1:
Código PHP:
Ver originalif (isset($_POST['enviar'])) {
$selected = '';
$num_categoria = count($_POST['categoria']); $current = 0;
foreach ($_POST['categoria'] as $key => $value) {
$selected .= $value.'';
$current++;
}
}
}
else
{
$selected = 'tienda_novedades';
}
Código Javascript
:
Ver original$.ajax({
$.post('data.php', {selected:<?php $value ?>}, function(data){
$("#tienda").append(data);
console.log(data);
});
archivo 2 llamado data.php
Código PHP:
Ver original$requested_page = $_POST['page_num'];
$set_limit = (($requested_page - 1) * 12) . ",12";
$result = mysql_query("select * from $selected order by id asc limit $set_limit");
realmente en archivo 2 no pongo nada es simplemente lo que tengo en php.
Pero no funciona , sigue sin funcionar
helppppp