https://www.icyphoenix.com/viewtopic.php?f=35&t=6267&p=42646#p42646
-----------------------------------
spydie
Mon 10 Aug, 2009 22:10

Re: Problem With Sql " Trying To Port A Mod"
-----------------------------------
you see this ??

SQL Error : 1146 Table '[b]ip.ip[/b]_formel_config' doesn't exist 

its calling ip.ip_


Edit:
Need some glasses.

Sh...

Next sql error.

And please don´t tell me the table does'nt exist

That´s an standart table of IP and i´ve checked 5 times before posting my code :
[code linenumbers=false]// Get all group data
//
$combo_groups_entries = '';
$sql = "SELECT * FROM " . 'GROUPS_TABLE'." 
		WHERE group_single_user = 0";
if (!$result = $db->sql_query($sql))
{
	message_die(GENERAL_ERROR, 'Could not query groups data', '', __LINE__, __FILE__, $sql);
}
while ($row = $db->sql_fetchrow($result))
{
	$selected = ( $row['group_id'] == $new['restrict_to'] ) ? 'selected' : '';
	$combo_groups_entries .= '<option value="' . $row['group_id'] . '" ' . $selected . '>' . $row['group_name'] . '</option>';
}
$db->sql_freeresult($result);
[/code]


And imagine the error:

Yes you got it:
[spoiler]Could not query groups data

DEBUG MODE

SQL Error : 1146 Table 'ip.groups_table' doesn't exist

SELECT * FROM GROUPS_TABLE WHERE group_single_user = 0

Line : 139
File : admin_formel_config.php[/spoiler]


