PHP Tutorial: Blog(Including commenting)

Post here is you are having problems with any of the tutorials.
Post Reply
momoweeb
Posts: 8
Joined: Mon Oct 15, 2012 5:02 am

PHP Tutorial: Blog(Including commenting)

Post by momoweeb »

Hi,

I am facing with the same problem. I ran the code in the myPHPadmin and got this message:

ERROR
SQL query:

FUNCTION valid_pid($pid) {
$pid = ( INT ) $pid;

MySQL said:

#1064 - 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 'function valid_pid($pid){
$pid = (int)$pid' at line 1


Appreciate your help!!!
User avatar
Temor
Posts: 1186
Joined: Thu May 05, 2011 8:04 pm

Re: PHP Tutorial: Blog(Including commenting)

Post by Temor »

Well, that is NOT an SQL query. It is plain php code.

Post all of your code and I'll take a look at it.
User avatar
EcazS
Posts: 789
Joined: Fri May 06, 2011 5:29 pm

Re: PHP Tutorial: Blog(Including commenting)

Post by EcazS »

Wait, hang on... Did you try and run the PHP code as an SQL statement in phpmyadmin?
Post Reply