![]() |
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 |
Database stuff isn't my strong point, but I believe that this should work.
PHP Code:
|
no it doesnt.... i get a blank page containg this:
SELECT logo * FROM logo :ermm: |
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:
|
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! |
IIRC this should work:
PHP Code:
|
Thanks so much for your help guys!
|
Ok, this should work (wrote that other one @ work, no code to reference).
PHP Code:
|
thanks a lot :)
|
It keeps looping.....i get something similar to:
ResultResultResultResultResultResultResult I just want "Result" to show up one time :/ |
All times are GMT. The time now is 04:52 AM. |
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:
|