1 message in com.mysql.lists.win32Warnings using PHP against MySQL| From | Sent On | Attachments |
|---|---|---|
| lluis Roy | 09 Nov 2000 03:52 |
| Subject: | Warnings using PHP against MySQL![]() |
|---|---|
| From: | lluis Roy (llui...@stalker.es) |
| Date: | 11/09/2000 03:52:48 AM |
| List: | com.mysql.lists.win32 |
Hello!!!
It's de first time i use mysql dbase, and i'm having some problems
trying to access mysql dbase server whith a server-side scripting language. I've
choosen PHP because i've seen it's the most used.
For example, web server returns a lot of warnings, and seems not to
understand some functions. Do i have to download some soft? I've downladed from
www.mysql.com the latest version, and mysql - Front for dbase management from
http://my.anse.de.
In ASP you were able to desactivate warnings if didn't put "option
explicit". ¿Can someone tell me how to desactivate warnings in PHP?
while ($myrow = mysql_fetch_array($result)) {
printf("<a href=\"%s?id=%s\">%s %s %s %s %s %s %s</a> \n", $PHP_SELF,
$myrow["id"], $myrow["fechapet"], $myrow["departamento"], $myrow["solicitud"],
$myrow["puntos"], $myrow["solicitante"], $myrow["solucionadopor"],
$myrow["fechasol"]);
printf("<a href=\"%s?id=%s&delete=yes\">(Borrar Registro)</a><br>",
$PHP_SELF, $myrow["id"]);
}
Warning: Undefined index: departamento in
c:\inetpub\wwwroot\php\dbase.php on line 79
On table solicitud only have "id" as primary key, and don't understand
why mySQL is looking for departamento's index.
$result is a SQL selection.




