Ver Mensaje Individual
  #12 (permalink)  
Antiguo 03/04/2008, 16:20
zubintro
 
Fecha de Ingreso: septiembre-2007
Mensajes: 120
Antigüedad: 16 años, 7 meses
Puntos: 0
Re: Variable dentro del query

la funcion completa la tengo asi
Código PHP:
<?php 

include "conexion.php";
$tabla=$_POST['base'];

$sql"select * from $tabla where id='$_POST[buscar]' or nombre='$_POST[buscar]'";

$consultamysql_query($sql,$conexion);

if(list (
$id,$nombre,$apellido,$cedula,$sexo,$email,$codigo,$telefono,$fecha,$opcional,$egreso,$carrera,$pactual,$banco,$deposito) = mysql_fetch_array($consulta)) {

?>