Okay i tried and got a lovely error that i have no idea about 🙂
this is my code
-- CODE --
<?
$Conn = odbc_connect("intranet","","");
$Query = odbc_query($Conn,"SELECT id, surname, firstname, department, extention, mobile FROM phonelist ORDER BY $phonesort ASC");
while (list($id, $surname, $firstname, $department, $extention, $mobile) = odbc_fetch_row($Query))
{
?>
<tr>
<td style="border-left-width: 1; border-right-width: 1; border-top-style: dashed; border-top-width: 1; border-bottom-width: 1">
<font face="Arial" style="font-size: 9pt"><? echo("$surname"); ?></font></td>
<td style="border-left-width: 1; border-right-width: 1; border-top-style: dashed; border-top-width: 1; border-bottom-width: 1">
<font face="Arial" style="font-size: 9pt"><? echo("$firstname"); ?></font></td>
<td style="border-left-width: 1; border-right-width: 1; border-top-style: dashed; border-top-width: 1; border-bottom-width: 1">
<font face="Arial" style="font-size: 9pt"><? echo("$department"); ?></font></td>
<td style="border-left-width: 1; border-right-width: 1; border-top-style: dashed; border-top-width: 1; border-bottom-width: 1">
<font face="Arial" style="font-size: 9pt"><? echo("$extention"); ?></font></td>
<td style="border-left-width: 1; border-right-width: 1; border-top-style: dashed; border-top-width: 1; border-bottom-width: 1">
<font face="Arial" style="font-size: 9pt"><? echo("$mobile"); ?></font></td>
</tr>
<?
}
?>
-- CODE --
and i got this Error
-- ERROR --
Warning: SQL error: [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified, SQL state IM002 in SQLConnect in C:\intranet\phonelist.php on line 36
Fatal error: Call to undefined function: odbc_query() in C:\intranet\phonelist.php on line 37
-- ERROR --
Help? 🙁
anyone wanna debug my code? 🙂
</n00b>