![]() |
I am getting a blank page/no error with this code:
I am learning php and I am trying to get this php script to return a result when called by a browser. Can someone look at it and give me a hand?
PHP Code:
|
Code:
(UNIX_TIMESTAMP('end_date')) |
Thanks Xenon, I have added a line also so I could find out a little more and here is what I get now:
"I failed and here is why: 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 'Resource id #14' at line 1 " If I run the query directly in Mysql it returns the results correctly. Any ideas? Thanks for the help! Quote:
|
$DB_site->query already calls mysql_query, so $stmt contains already the mysql result, and therefore you cannot put it as argument of mysql_query again :)
|
Thanks Xenon, not only did that help solve my problem, but I understand better as well!
|
:) glad i could help
|
All times are GMT. The time now is 10:40 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|