The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
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:
|
#2
|
||||
|
||||
Code:
(UNIX_TIMESTAMP('end_date')) |
#3
|
||||
|
||||
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:
|
#4
|
||||
|
||||
$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
|
#5
|
||||
|
||||
Thanks Xenon, not only did that help solve my problem, but I understand better as well!
|
#6
|
||||
|
||||
glad i could help
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|