谁有城市公交线路查询系统换乘的源代码,急求。(数据库是SQL. SERVER 工具是vs200
谁有城市公交线路查询系统换乘的源代码,急求。(数据库是SQL.SERVER工具是vs2008,语言是c#)...
谁有城市公交线路查询系统换乘的源代码,急求。(数据库是SQL. SERVER 工具是vs2008,语言是c#)
展开
1个回答
展开全部
1、config.php(功能说明:存储一些在整个程序中要用到全局变量。)
<?
$hostname="localhost";
$db_user="root";
$db_password="faleier2046007";
$db_name="bus";
$table_Stop="bus_stop";
$table_Route="bus_route";
$table_Stop_Route="bus_stop_route";
$table_RouteT0="bus_routet0";
$table_GRouteT0="bus_groutet0";
$table_nochange="temp_nochange";
$table_once="temp_once";
$table_twice="temp_twice";
?>
2、conn.php(功能说明:实现与数据库的连接。)
<?php
require_once "config.php";
@mysql_connect($hostname,$db_user,$db_password)
or die("could not connect to mysql server");
@mysql_select_db("$db_name") or die("could not select database");
13/22页
mysql_query("set character set gb2312");
?>
3、index.php(功能说明:程序首页,查询输入界面。) <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML>
<HEAD>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312"> <TITLE> 六安公交查询系统 </TITLE>
<META NAME="Generator" CONTENT="EditPlus">
<META NAME="Author" CONTENT="">
<META NAME="Keywords" CONTENT="">
<META NAME="Description" CONTENT="">
</HEAD>
<BODY background="images/bj.gif">
<script type="text/javascript" src="js/main.js"></script>
<link href="css/bus.css" rel="stylesheet" type="text/css"
media="screen" /><link href="css/bus1.css" rel="stylesheet" type="text/css" media="screen" />
<table border=0 align=center>
<tr>
<td height=100>
</td>
</tr>
<tr>
<td>
<TABLE border=0 align=center height=300 width=630 bgcolor="#EDF3CD"> <tr>
<td colspan=3 align=center height=25%>
<img border="0" src="images/banner.jpg" width="400" height="75"></td> </tr>
<tr>
<td width=231 rowspan="3">
<table border=0>
<tr>
<td>
<?php
require "conn.php";
$query_all_path="select distinct(RouteGenName) from $table_Route"; $info=mysql_query($query_all_path);
while($it=mysql_fetch_array($info))
{
echo "<a
14/22页
href=searchpath.php?path=$it[RouteGenName]>".$it['RouteGenName']."</a>"." ";
}
?>
</table >
</td>
<td width=4 height="19">
</td>
<td width="381" rowspan="3">
<div class="headRi">
<div class="headMenu">
<span id="it_1" onclick="ishow('it',3,1,'open','')" class=
<?
$hostname="localhost";
$db_user="root";
$db_password="faleier2046007";
$db_name="bus";
$table_Stop="bus_stop";
$table_Route="bus_route";
$table_Stop_Route="bus_stop_route";
$table_RouteT0="bus_routet0";
$table_GRouteT0="bus_groutet0";
$table_nochange="temp_nochange";
$table_once="temp_once";
$table_twice="temp_twice";
?>
2、conn.php(功能说明:实现与数据库的连接。)
<?php
require_once "config.php";
@mysql_connect($hostname,$db_user,$db_password)
or die("could not connect to mysql server");
@mysql_select_db("$db_name") or die("could not select database");
13/22页
mysql_query("set character set gb2312");
?>
3、index.php(功能说明:程序首页,查询输入界面。) <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML>
<HEAD>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312"> <TITLE> 六安公交查询系统 </TITLE>
<META NAME="Generator" CONTENT="EditPlus">
<META NAME="Author" CONTENT="">
<META NAME="Keywords" CONTENT="">
<META NAME="Description" CONTENT="">
</HEAD>
<BODY background="images/bj.gif">
<script type="text/javascript" src="js/main.js"></script>
<link href="css/bus.css" rel="stylesheet" type="text/css"
media="screen" /><link href="css/bus1.css" rel="stylesheet" type="text/css" media="screen" />
<table border=0 align=center>
<tr>
<td height=100>
</td>
</tr>
<tr>
<td>
<TABLE border=0 align=center height=300 width=630 bgcolor="#EDF3CD"> <tr>
<td colspan=3 align=center height=25%>
<img border="0" src="images/banner.jpg" width="400" height="75"></td> </tr>
<tr>
<td width=231 rowspan="3">
<table border=0>
<tr>
<td>
<?php
require "conn.php";
$query_all_path="select distinct(RouteGenName) from $table_Route"; $info=mysql_query($query_all_path);
while($it=mysql_fetch_array($info))
{
echo "<a
14/22页
href=searchpath.php?path=$it[RouteGenName]>".$it['RouteGenName']."</a>"." ";
}
?>
</table >
</td>
<td width=4 height="19">
</td>
<td width="381" rowspan="3">
<div class="headRi">
<div class="headMenu">
<span id="it_1" onclick="ishow('it',3,1,'open','')" class=
正先
2024-10-14 广告
2024-10-14 广告
智能公交站牌推荐上海正先电子科技有限公司,在智能公交电子站牌行业已十多年经验,软件硬件十年专注研发,上百种外观可定制,在全国80多个城市和地区都有电子站牌落地,市场占有率超过60%,公司拥有一支过硬的产品研发队伍,专业从事智能电子站牌的系统...
点击进入详情页
本回答由正先提供
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询