与朋友一起上课(索引.php)
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了与朋友一起上课(索引.php)相关的知识,希望对你有一定的参考价值。
<html> <head> <title> Facebook App </title> </head> <body> <? include ('fbconnect.php'); $fidQuery = "Select count(fid) as ct FROM users where fid =".$var4.""; if ($row1['ct'] == 1) { echo "<br>Welcome Back ".$var1."!<BR>"; } else { echo "<br>Hey...its your first time. Welcome!<br>"; mysql_query("INSERT INTO users (name, gender, email, fid, link) VALUES ('".$var1."','".$var2."','".$var3."','".$var4."','".$var5."')")or die(mysql_error()); } ?><br /><br /> Classes that students at Hofstra have enrolled in...<br /><br /> <? $query = "SELECT * from class order by day ASC"; $printedTitle = 0; $printedTitle2 = 0; { if ($printedTitle == 0 && $row['day'] == "MWF") { echo "Classes that run on Monday, Wed & Fridays<br>"; $printedTitle++; } if ($printedTitle2 == 0 && $row['day'] == "TTH") { echo "Classes that run on Tuesdays and Thursdays<br>"; $printedTitle2++; } echo $row['className'] ." at ". $row['time']. $row['day']." is in the department of ".$row['dept']."<a href='addfromindex.php?id=".$var4."&coursecode=".$row['className']."&time=".$row['time']."&day=".$row['day']."'>[+]</a><br>"; } ?> <br /> <br /> Dont see your class here? <a href="addClass.php?id=<? echo $var4;?>"> Lets Insert A Class Now!</a> or <a href="myclasses.php?id=<? echo $var4;?>">take a look at what classes you're in.</a> </body> </html>
以上是关于与朋友一起上课(索引.php)的主要内容,如果未能解决你的问题,请参考以下文章