Hola,
Este código me da problema:
Código PHP:
$id = $_GET['id'];
$parasha = $_GET['parasha'];
$con = mysql_connect('localhost','root','');
if (!$con)
{
die('Could not connect: ' . mysql_error());
}
mysql_select_db("orhayeladim", $con);
if ($parasha != '')
{
$result2 = mysql_query("SELECT * FROM articulos WHERE tema = $parasha");
}
else
{
$result2 = mysql_query("SELECT * FROM articulos WHERE id = $id");
}
$row = mysql_fetch_array($result2);
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in C:\wamp\www\OH\Audio\articulos.php on line 55
Alguna idea de por qué?
Gracias!