[llvm-commits] CVS: llvm-www/devmtg/talkInfo.php

Tanya Lattner tonic at nondot.org
Thu Oct 1 19:16:40 PDT 2009



Changes in directory llvm-www/devmtg:

talkInfo.php added (r1.1)
---
Log message:

Adding script to get talk info.


---
Diffs of the changes:  (+32 -0)

 talkInfo.php |   32 ++++++++++++++++++++++++++++++++
 1 files changed, 32 insertions(+)


Index: llvm-www/devmtg/talkInfo.php
diff -c /dev/null llvm-www/devmtg/talkInfo.php:1.1
*** /dev/null	Thu Oct  1 21:16:15 2009
--- llvm-www/devmtg/talkInfo.php	Thu Oct  1 21:16:05 2009
***************
*** 0 ****
--- 1,32 ----
+ <?
+ // Database details. 
+ include("connectDB.php");
+ 
+ mysql_connect("127.0.0.1", $user, $password) or die(mysql_error());
+ mysql_select_db($database);
+ 
+ virtual("../header.incl");
+ ?>
+ <?
+ $id = $_GET['id'];
+ $sql = "SELECT lastName, firstName, organization, title, summary from presenters WHERE id=$id";
+ 
+ $results = mysql_query($sql);
+ $count = 0;
+ while($row = mysql_fetch_array($results)) {
+   print '<p><b>Speaker: </b>';
+   print $row['firstName'];
+   print ' ';
+   print $row['lastName'];
+   print ', <i>';
+   print $row['organization'];
+   print '</i></p><p><b>Title: </b>';
+   print $row['title'];
+   print '</p><p><b>Summary:</b></p><p>';
+   print $row['summary'];
+   print '</p>';
+ }
+ ?>
+ <?
+ virtual("../footer.incl")
+ ?>






More information about the llvm-commits mailing list