![]() |
No results showing
I want to select thread names but i do not get any results. I know my query isn't right.
But i would like to know what i am doing wrong. In PHPMYadmin: PHP Code:
PHP Code:
|
Maybe:
PHP Code:
|
Thanks for the fast reply.
I still don't see anything so my error must be somewhere else. I want to display all the threads and select them by letter doing: url/page.php?do=alphasearch<r=A I made a thread with the title aaaaaa for example :) Any suggestions? :) |
Well, all that does is get a count ($itemcount[itemcount]). Are you saying you aren't getting a count? Perhaps post more of your code along with the template part that spits it out.
|
Indeed true :)
This is my page called page.php along with the code: PHP Code:
PHP Code:
|
You need to eval your template, alphamenu, *after* you define any variables you want to use in it. And, you can't eval it twice. Try removing this line (after the eval of the navbar):
PHP Code:
|
Oke i removed it, but then i get a blank page, where do i need to eval the template alphamenu? :)
|
Well, you've got some weird things going on. I assume that the template you posted is your alphamenu template, so the line I had you remove, should actually go right above the ?> . However, you also are evaling the template right above the line that starts with "$query_Searchltr". And then you are also evaling mysearchbits for some reason. And then nowhere in your template are you using any variable/information that you are defining in the php code. I really can't tell what you are doing in your code.
|
true my template is called "alphamenu".
i placed the code PHP Code:
PHP Code:
is that all correct? |
I doubt it. You can't define $alphamenu as being that evaled template and then place it in the same template. That doesn't make any sense.
|
hmm oke :) So what do you advice in orde to show the results ?:)
|
I would start with getting a basic page, with the template, up and showing something. Then slowly add in the code/queries and get each thing working step-by-step.
|
All times are GMT. The time now is 08:44 PM. |
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:
|