The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
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 |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|