tengo esta consulta en sql con php y lo que necesito es usar los resultados en otra parte de la web pero no se como hacerlo me podrian indicar mas o menos como es
Cita:
<?php
$con = mysql_connect("localhost","root","root");
if (!$con)
{
die('Could not connect: ' . mysql_error());
}
mysql_select_db("my_db", $con);
$result = mysql_query("SELECT * FROM `darkmultimedia`.`series` WHERE IdSerie = 1");
$Titulo ="";
$Autor ="";
$IdSerie="";
$Demografia ="";
$Categoria ="";
$Sinopsis="";
$Genero="";
$Tiempo="";
$EspGeograf="";
while($row = mysql_fetch_array($result))
{
$IdSerie=$row['IdSerie'];
$Titulo = $row['TitOficial'];
$Autor = $row['Autor'];
$Demografia =$row['Demografia'];
$Categoria=$row['Categoria'];
$Sinopsis=$row['Sinopsis'];
$Genero=$row['Genero'];
$Tiempo=$row['Tiempo'];
$EspGeograf=$row['EspGeograf'];
}
$con = mysql_connect("localhost","root","root");
if (!$con)
{
die('Could not connect: ' . mysql_error());
}
mysql_select_db("my_db", $con);
$result = mysql_query("SELECT * FROM `darkmultimedia`.`series` WHERE IdSerie = 1");
$Titulo ="";
$Autor ="";
$IdSerie="";
$Demografia ="";
$Categoria ="";
$Sinopsis="";
$Genero="";
$Tiempo="";
$EspGeograf="";
while($row = mysql_fetch_array($result))
{
$IdSerie=$row['IdSerie'];
$Titulo = $row['TitOficial'];
$Autor = $row['Autor'];
$Demografia =$row['Demografia'];
$Categoria=$row['Categoria'];
$Sinopsis=$row['Sinopsis'];
$Genero=$row['Genero'];
$Tiempo=$row['Tiempo'];
$EspGeograf=$row['EspGeograf'];
}