The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
get information from database
hi, im trying to learn how this works, but sadly i can't get it working. What am I doing wrong? The databse is called "test" and the only table i have is named "logo". There is one field in the logo table which also is named "logo"
PHP Code:
Thanks in advance Niklas The |
#2
|
|||
|
|||
Database stuff isn't my strong point, but I believe that this should work.
PHP Code:
|
#3
|
|||
|
|||
no it doesnt.... i get a blank page containg this:
SELECT logo * FROM logo :ermm: |
#4
|
|||
|
|||
With the above code, you are not running the query, rather, you are simply having the script echo out what is between the " ". You need to add more code to have the query run successfully.
I take it from the above coding you are not integrating this with vBulletin? If not, try the below. PHP Code:
PHP Code:
If you were integrating this with vBulletin, you could just as well use the below and cut back on the coding: PHP Code:
|
#5
|
|||
|
|||
Thank you so much for the help!!
Im doing something wrong though, cause it still doesnt work.... Parse error: parse error, unexpected '}', expecting ',' or ';' in /home/wwwocto2/public_html/kabelkontakten/index.php on line 18 line 18 looks like this: PHP Code:
any thoughts? Thanks! |
#6
|
||||
|
||||
IIRC this should work:
PHP Code:
|
#7
|
|||
|
|||
Thanks so much for your help guys!
|
#8
|
||||
|
||||
Ok, this should work (wrote that other one @ work, no code to reference).
PHP Code:
|
#9
|
|||
|
|||
thanks a lot
|
#10
|
|||
|
|||
It keeps looping.....i get something similar to:
ResultResultResultResultResultResultResult I just want "Result" to show up one time :/ |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|