Zymic Forums

Webmaster resources

Zymic IRC Server

Chat in real time at irc.zymic.com - Learn More

Welcome

Welcome to the Zymic webmaster forums. Our forums are here to provide people the free ability to discuss a range of websites related topics such as design, development coding and marketing.

In order to post you will need to register for a zymic account or if you already have one simply login by using the form on the left.

left Zymic Webmaster ForumsZymic Free Web HostingDatabases & MySQL right
  Reply to this topic Start new topic
left right
ochho
post Jun 15 2009, 05:51 PM
Post #1


Newbie
*

Group: Members
Posts: 5
Joined: 15-June 09
Member No.: 99,592



This is a nightmare... I CANT USE PHPMYADMIN AT ALL.

Now, I was able to create and populate tables through PHP, but I have another problem. How do you create mySQL stored procedures through PHP?? It's not working.

Here is the syntax for the SQL query

$sql = "DELIMITER $$

DROP PROCEDURE IF EXISTS `prana_prana`.`catalog_get_categories_list`$$
CREATE DEFINER=`prana_admin`@`localhost` PROCEDURE `prana_prana`.`catalog_get_categories_list`()
BEGIN
SELECT category_id, en_name, fr_name FROM category ORDER BY category_id;
END $$"

And here is the error: "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'DELIMITER $$ DROP PROCEDURE IF EXISTS `prana_prana`.`catalog_get_categories_l' at line 1"

PLEASE HELP, IM GONNA GO INSANE!!!!!! It's been 2 days..trying to work around this phpmyadmin #$^$^&E
Go to the top of the page 
 
  + Quote Post
ochho
post Jun 15 2009, 10:23 PM
Post #2


Newbie
*

Group: Members
Posts: 5
Joined: 15-June 09
Member No.: 99,592



ok, so apparently "DELIMITER $$" cant be used inside a query from a php script.

So i fixed that..

but now im getting access denied?

"Access denied for user 'prana_admin'@'localhost' to database 'prana_prana'"

I checked the info, and everything is good.. database="prana_prana", username="prana_admin" domain="prana.uuuq.com"

Thanks for the help.
Go to the top of the page 
 
  + Quote Post
Ed
post Jun 16 2009, 12:45 AM
Post #3


Outrageously Uber Ninja
*******

Group: Administrators
Posts: 2,529
Joined: 11-March 07
From: UK
Member No.: 9



Resolved on IRC.
Go to the top of the page 
 
  + Quote Post
 Reply to this topic Start new topic
left right
0 Members:
left right
 


Lo-Fi Version Time is now: 21st November 2009 - 11:04 PM