![]() |
PHP in template files
In my php file ( in vbulletin )
Ive made a form, when submitted it will echo something but when it echo's something it apears right at the top of the page in the header. How do i put that "echo" in the template file? Do i have to connect to the database from the template or something? I tried using $quote = '"<br /> Quote number: " . mysql_insert_id()'; and putting $quote in the template but it comes out as "Quote number: " . mysql_insert_id() EDIT: i changed it with $quote = "<br /> Quote number: " . mysql_insert_id(); Now its working but its not displaying the correct id number. it only displays 0. It is suppose to display the id of the last inserted data. EDIT: Silly me, i got it now |
All times are GMT. The time now is 01:07 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:
|