PDA

View Full Version : Add a custom SQL query and call it out in a page


socomcup
09-08-2006, 03:44 AM
I have been trying ti figure this out for a while and I have looked around thoughout the site but I have not been able to figure this out.

What I want to do it call a custom sql query from another database on my website into the users postbit and profile.

I have been putting the custom SQL Queries on the showpost.php

An example of what i have is
$ladder3 = $db->query_read("SELECT * FROM ladder WHERE id='1' ");
$ladder = $db->fetch_array($ladder3);

As you see im not even trying to call it from another database i just dont know how you call this into the actuall page you want

If someone could tell me how to call this into postbit_legacy template and it show up on the forums it would be greatly appreciated.