Jaynesh
04-09-2006, 09:11 AM
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
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