Topic: PunBB Messes With My Queries
I am implimenting the login system into my php script and PunBB seems to have broken it.
It looks as if it's adding "punbb." in front the table names in my MySQL queries. Why?
You are not logged in. Please login or register.
PunBB Forums → PunBB 1.2 modifications, plugins and integrations → PunBB Messes With My Queries
I am implimenting the login system into my php script and PunBB seems to have broken it.
It looks as if it's adding "punbb." in front the table names in my MySQL queries. Why?
link?
q
http://flaminghead.servegame.com:12345/ … category=2
This is the line with the query:
$tut_query = mysql_query("SELECT * FROM ortz_tuts WHERE id='".$row['id']."'") or die(mysql_error());
you need the cookies and seesion at the top of the index page..
http://bunpai.com ---. forum website integration..
that is the index.php file that i used..
<?php
define('PUN_ROOT', './');
define('PUN_QUIET_VISIT', 1);
require PUN_ROOT.'include/common.php';
define('PUN_ALLOW_INDEX', 1);
require PUN_ROOT.'lang/'.$pun_user['language'].'/index.php';
require PUN_ROOT.'lang/'.$pun_user['language'].'/common.php';
require PUN_ROOT.'lang/'.$pun_user['language'].'/topic.php';
require PUN_ROOT.'lang/'.$pun_user['language'].'/login.php';
require PUN_ROOT.'include/parser.php';
?>
Err, that's a database called PunBB (I assume where you have your forum).
It's not PunBB doing anything, actually
mysql_query defaults to using the last opened database connection if no connection is specified
So, if you connect to your database and then connect to PunBB's, all your queries will be directed at PunBB's connection
I have that already. It's already intigrated, it's just messing up my queries somehow.
Edit: Ok, I think I know how to fix it now, thanks.
Edit2: Yep, it's fixed, thanks!
PunBB Forums → PunBB 1.2 modifications, plugins and integrations → PunBB Messes With My Queries
Powered by PunBB, supported by Informer Technologies, Inc.