Pixelpost

Authentic Photoblog Flavour


Go Back   Pixelpost Forum > DEVELOPMENT > Addons

Post Reply
 
Thread Tools
  #1  
Old 09-16-2006, 06:11 AM
RAitch Offline
pixelpost guru
 
Join Date: Aug 2006
Location: Ontario
Posts: 115
Help with PHP

On my local host, a select like the following sample work fine.
On my web host, this returns an error 1064 referring to the function call DATE() for example.

PHP Code:
$query mysql_query("select date(datetime) from pixelpost_visitors"); 
If I remove the function call, data is returned.

I don't think my web SQL is version 5 (documentation quotes versions 3 and 4) so I'm wondering if there is some kind of syntax difference. I'm having a heck of a time finding any information out there.

How can I make embedded function calls within my PHP addon code?
__________________
My Gallery
Reply With Quote
  #2  
Old 09-17-2006, 05:30 AM
RAitch Offline
pixelpost guru
 
Join Date: Aug 2006
Location: Ontario
Posts: 115
Never mind... I figured out way to fix my problem... only took me a couple nights of head banging.
__________________
My Gallery
Reply With Quote
Post Reply


Thread Tools




All times are GMT. The time now is 02:09 PM.

Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd. | Style Design: d3 designs