Cita:
Estoy usando AJAX, y al refrescar mi sitio este me vota errorWarning: mysql_query() expects parameter 2 to be resource, null given in C:\xampp\htdocs\peruguitar\includes\functions_arti culo.php on line 3
Aca mi codigo comploet
Código PHP:
Ver original
<?php //Mostrar los Articulos print $_POST['action']." ".$_POST['articuloID']; ?> <table width="100%"> <tr> <td width="33%"> <table width="100%" cellpadding="5" cellspacing="5" class="articulos"> <tr> <td width="81%"><?php print $noticia['titulo']; ?></td> <td width="19%"><?php print $noticia['fecha']; ?></td> </tr> <tr> <td colspan="2"><div class="imgNoticia"><img src="logo.png" alt="" width="100%" height="90" /></div></td> </tr> <tr style="text-align: justify"> <td colspan="2"><?php print $noticia['comentario']; ?></td> </tr> <tr> <td>Autor</td> <td><?php print $noticia['autor']; ?></td> </tr> <tr> <td>Valoracion:</td> <td><?php print $noticia['valoracion']; ?></td> </tr> <tr> <td align="center"><select name="valoracion" id="valoracion"> <option value="1" selected="selected">(1) No lo veas</option> <option value="2">(2) No hay nada interesante</option> <option value="3">(3) Es malo, no entres</option> <option value="4">(4) Tiene algo interesante</option> <option value="5">(5) Pase un buen rato</option> <option value="6">(6) Esta interesante</option> <option value="7">(7) Vale la pena</option> <option value="8">(8) Esta mas que genial</option> <option value="9">(9) Una obra de arte</option> <option value="10">(10) SIN PALABRAS</option> </select> <input name="articuloID" id="articuloID" type="hidden" value="<?php print $noticia['id']; ?>" /></td> <td><input type="image" src="img/btn/valorar.jpg" value="Traer" onclick="ajax_getContent('includes/functions_articulo.php', 'articuloID='+document.getElementById('articuloID').value + '&action=TRUE', 'articulos');"/></td> </tr> </table> </td> <td width="33%"> </td> <td width="33%"> </td> </tr> </table>
Osea el error esta en que mi script no puede hacer dos veces la conexion, no entiendo porque.. Por cierto estan en modo TRUE las conexiones porque uso dos base de datos
Una iamgen habla mas...
![](http://img192.imageshack.us/img192/9536/63341436.jpg)