我为<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:id="@+id/root"
android:clickable="true"
android:focusable="true"
android:focusableInTouchMode="true"
android:background="@drawable/navig_menu_selector"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:duplicateParentState="true"
android:clickable="false"
android:padding="@dimen/padding_medium">
<ImageView
android:id="@+id/navig_ico"
android:layout_width="16dp"
android:layout_height="16dp"
android:layout_gravity="center_vertical"/>
<TextView
android:id="@+id/navig_text"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
android:paddingStart="@dimen/padding_medium"
style="@style/navig_item_text"/>
</LinearLayout>
<include layout="@layout/custom_separator"/>
</LinearLayout>
连接编写了此代码。但是,我越来越喜欢这个错误。我的ODBC
是MS Access数据库。拜托,有人可以帮我吗?
DB
这是我的错误。
<html>
<body>
<?php
$conn=odbc_connect('finance','','');
if (!$conn)
{exit("Connection Failed: " . $conn);}
$sql="SELECT * FROM Customers";
$rs=odbc_exec($conn,$sql);
if (!$rs)
{exit("Error in SQL");}
echo "<table><tr>";
echo "<th>Name</th>";
echo "<th>CustomerID</th></tr>";
while (odbc_fetch_row($rs))
{
$Name=odbc_result($rs,"Name");
$CustomerID=odbc_result($rs,"CustomerID");
echo "<tr><td>$Name</td>";
echo "<td>$CustomerID</td></tr>";
}
odbc_close($conn);
echo "</table>";
?>
</body>
</html>