note 90741 rejected from function.mysql-fetch-array by danbrown
| From: | danbrown@php.net | Date: | Thu, 07 May 2009 14:04:38 +0000 |
| Subject: | note 90741 rejected from function.mysql-fetch-array by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-154318@lists.php.net to get a copy of this message | ||
Note Submitter: daniel dot casabianca at gmail dot com
----
Hello, I have a problem with my code in the funtion mysql_fetch_array but I don't know for why.
My code const of the one button and when I push this button the code must search in the database and
return the result in the each textarea. Below attach the code:
<?php
if ($_POST['alarma']) {
$alarma=$_POST['alarma'];
$conexion = mysql_connect("localhost", "root", "");
mysql_select_db("umgsv100r003c03", $conexion);
$busqueda="SELECT * FROM umgsv100r003c03 where ALARMA = '%$alarma%'";
$consulta = mysql_query($busqueda);
$row = mysql_fetch_array($consulta);
}
?>
Please help me to find the error. Thanks and please give me a answuer as soon as possible