The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
how to make a full PHP and Mysql enabled page
i want to make a page at my vbulletin site.
where user may search some data and then i am to display records. can you please tell me how it can be done ??? see this link to have full idea of my problem. http://www.haveelskere.dk/page.php?do=2 |
#2
|
|||
|
|||
have a look at that:
http://ragtek.org/blog/vbulletin/vbu...asse-benutzen/ |
#3
|
|||
|
|||
http://www.haveelskere.dk/page.php?do=2
this is my html page.This form will be submitted to a PHP page which will search data from database and will diplay data. How It Can Be Done ? i added this custom page with mod available on this forum to add 5 custom pages on your forum.:erm: |
#4
|
|||
|
|||
i made my custome page by some tutorial posted on this.
now i want to display some data on it through PHP. all i got till now is that data is currently comming from Template??? can you please tell me where to write my php code?? |
#5
|
||||
|
||||
You write your php code in your custom php page.
Why do you keep starting new threads about this same topic? You get replies and then you go start a new thread. Please keep it all in one thread instead of starting another. I've just merged the last three threads you've started about this subject together. |
#6
|
|||
|
|||
I wrote it there but it is dislpaying my data outside the template.
http://haveelskere.dk/test.php kindly have a look on it. I made threads but no one replies, thats why i made a new thread !!!! sorry, if it annoys you. but i am not getting something proper. i am playing with my code from 5 days. |
#7
|
||||
|
||||
1) Post your code or nobody can tell what you are doing wrong. It looks to me like you are using echo which is not going to put the text where you want it.
2) Sorry, but just because you don't get a response does not mean you should go make another thread about the same thing. People will help if they can. This is an all volunteer run site, so people help out when they have time. |
#8
|
|||
|
|||
this is my code
include "connect.php"; $query = "select * from plants"; $result = mysql_query($query); $row = mysql_fetch_array($result); $templater->register('query', $query); $templater->register('result', $result); $templater->register('row', $row); if(mysql_num_rows($result) > 0) { while($row = mysql_fetch_array($result)) { echo "data found"; } } else { echo "No Record With These Parameters"; } |
#9
|
||||
|
||||
If you are making a custom page, then you should be following a tutorial such as this one - [HOW TO - vB4] Create your own vBulletin page. The above cannot be all of your code, because I can see it is in a vbulletin like page, so there much have been more to it than what you posted. You should post your page/php in php tags and then post your templates in html tags so that it is easier for us to read.
|
#10
|
|||
|
|||
I made my page in same way...
only problem i am getting is that "Data Is being Displayed Outside Template" http://haveelskere.dk/test.php please have a look at this link. |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|