MySQL Forums
Forum List  »  PHP

The store procedures and the php
Posted by: Anson Ng
Date: December 09, 2014 08:57PM

i have some codes like this for the store procedures:

DELIMITER $$

CREATE FUNCTION `magento`.`price` (sku int, _metaltone text, _stnclarity text,
RETURNS DECIMAL
BEGIN

RETURN 7.77;
END

This query is not doing anything at the moment but return 7.77 no matter what happen.

Am i able to display 7.77 on website by using php commend?
Can i just use printf($result) something to solve it?

Options: ReplyQuote


Subject
Written By
Posted
The store procedures and the php
December 09, 2014 08:57PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.