Page 1 of 1

PHP Tutorial: Blog(Including commenting)

Posted: Mon Oct 15, 2012 5:25 am
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!!!

Re: PHP Tutorial: Blog(Including commenting)

Posted: Mon Oct 15, 2012 5:28 am
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.

Re: PHP Tutorial: Blog(Including commenting)

Posted: Mon Oct 15, 2012 5:39 am
by EcazS
Wait, hang on... Did you try and run the PHP code as an SQL statement in phpmyadmin?