Jump to content

server change change things? wtf


zhangy

Recommended Posts

On my windows server things were working fine, but once I tranfered to linux the following doesnt work. anyone know why?

 

$result = mysql_query("SELECT * FROM $table WHERE col_1='lame' AND submission_date BETWEEN UNIX_TIMESTAMP(DATE_SUB( CURDATE( ) ,INTERVAL 30 DAY )) and UNIX_TIMESTAMP( ) ORDER BY submission_id DESC");

 

Link to comment
https://forums.phpfreaks.com/topic/164678-server-change-change-things-wtf/
Share on other sites

Put some debugging print statements in there.  There are tons of questions you can ask.

 

Are you connecting to the database?

 

Is error reporting turned on?

 

What resource id are you getting from mysql_query?

 

Is there an error in mysql_error()?

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.