The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
How do I display a result of a query?
Well I'm trying to show the Results from a data base query in a templeat can any one tell me how to do this?
|
#2
|
|||
|
|||
Quote:
Then just use $foo[foo] in the templates. |
#3
|
|||
|
|||
I know how to do arrays but can you show me a exaple code my tables fields are:
id name url description |
#4
|
|||
|
|||
$variable = $db->query_first("SELECT * FROM " . TABLE_PREFIX . "tablename WHERE id = id");
$variable['id'] $variable['name'] $variable['url'] $variable['description'] |
#5
|
|||
|
|||
thank you
That code cases errors anyone? |
#6
|
|||
|
|||
help!
|
#7
|
|||
|
|||
what error?????
|
#8
|
|||
|
|||
I get:
Parse error: parse error, unexpected T_VARIABLE in /home/rdsx667/public_html/tutorials/test.php on line 55 EDIT: before this code there was no error ( This isn't suppose to sound rude) |
#9
|
|||
|
|||
please disply your code to me. lines 50-60.
|
#10
|
|||
|
|||
heres the code:
$variable = $db->query_first("SELECT * FROM " . TABLE_PREFIX . "tablename WHERE 1 = Links"); $variable['id'] $variable['name'] $variable['url'] $variable['description'] eval('print_output("' . fetch_template('site_test') . '");'); |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|