![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
30/05/2011, 12:23
|
![Avatar de Potro](http://static.forosdelweb.com/customavatars/avatar7069_1.gif) | | | Fecha de Ingreso: abril-2001
Mensajes: 2.249
Antigüedad: 23 años, 9 meses Puntos: 39 | |
Respuesta: Llamadas a una funcion de mysql desde PHP Facil.. ejemplo:::
Creo mi function::
CREATE FUNCTION holaMundo(entrada VARCHAR(20)) RETURNS VARCHAR(20)
BEGIN
DECLARE salida VARCHAR(20);
SET salida = entrada;
RETURN salida;
END
Llamo con mi php
query = "select holaMundo("nosolocodigo") AS result";
Set $row = mysql_fetch_assoc(query);
echo $row["result"];
Asi de facil... |