:::
社大學員專用

以$_GET接收了一個"tour_name"的值,如何在同一檔案中的兩段php碼中使用?

discuss pic 2008-04-20 19:08:55
Dear 老師:
    您好!想要偷懶問您一下,請別介意!我以
$_GET接收了一個"tour_name"的值,但是我想要在同一檔案中的兩段php碼中使用,請問這樣的語法,應該如何寫才是正確的呢?

節錄部分原始碼如下:

<title>
<?php
 $tour_name=$_GET['tour_name'];
 echo $tour_name;
 ?>

 </title>
<link href="kimozi_main.css" rel="stylesheet" type="text/css" />
</head>

<body>
<?php
require_once('Connections/TravelService.php');
$group_sn=$_GET['op'];
    $sql=" SELECT * FROM `tour_schedule` WHERE `group_sn` LIKE '$group_sn'";
    $result=mysql_db_query(_DBNAME,$sql,$TravelService) or die("抓取資料失敗:<BR>{$sql}");
    $mian="<div align="center"><font size="7" face="標楷體">$tour_name</font></div>";
........
您今天kimozi~~e了嗎?
http://www.kimotour.com.tw
discuss pic 2008-04-21 02:10:30
老師,搞定了!
不好意思,自己不太用功!
您今天kimozi~~e了嗎?
http://www.kimotour.com.tw
:::

搜尋

QR Code 區塊

https%3A%2F%2Ftad0616.net%2Fmodules%2Ftad_discuss%2Fdiscuss.php%3FDiscussID%3D996%26BoardID%3D4

線上使用者

221人線上 (13人在瀏覽討論留言)

會員: 0

訪客: 221

更多…