note 90741 added to function.mysql-fetch-array
| From: | daniel dot casabianca at gmail dot com | Date: | Thu, 07 May 2009 14:03:14 +0000 |
| Subject: | note 90741 added to function.mysql-fetch-array | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-154317@lists.php.net to get a copy of this message | ||
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
----
Server IP: 69.147.83.197
Probable Submitter: 200.13.250.20
----
Manual Page -- http://www.php.net/manual/en/function.mysql-fetch-array.php
Edit -- https://master.php.net/note/edit/90741
Del: integrated -- https://master.php.net/note/delete/90741/integrated
Del: useless -- https://master.php.net/note/delete/90741/useless
Del: bad code -- https://master.php.net/note/delete/90741/bad+code
Del: spam -- https://master.php.net/note/delete/90741/spam
Del: non-english -- https://master.php.net/note/delete/90741/non-english
Del: in docs -- https://master.php.net/note/delete/90741/in+docs
Del: other reasons-- https://master.php.net/note/delete/90741
Reject -- https://master.php.net/note/reject/90741
Search -- https://master.php.net/manage/user-notes.php