Going to try and make this as short as possible. I haven’t dabbled in SQL since college, and need some refreshing. What I need to happen is relatively simple.
Users will visit the page below, fill out the form, and they are then redirected to a thank you page where I need to display the First Name, Last Name, Event Date, and # of tickets. (feel free to enter in some test data).
Pittsburgh Vintage Grand Prix 2011
The guts of the form were already in place and use CoffeeCup flash, which seems to use xml for the variables within the form, and php for the emailing of the form and writing to the DB.
Here is the code used to pull the flash form on the first page.
<script type="text/javascript">var so = new SWFObject("pvgp.swf", "pvgp.xml", "500", "363", "7,0,0,0", "#ffffff");so.addParam("classid", "clsid:d27cdb6e-ae6d-11cf-96b8-444553540000");so.addParam("quality", "high");so.addParam("scale", "noscale");so.addParam("salign", "lt");so.addParam("wmode", "transparent");so.addParam("FlashVars", "xmlfile=pvgp.xml&w=500&h=363");so.write("CC5723836");</script>
Can someone please help me fill in the blanks below? I pulled this script from a google search, but need to fill in some blanks. (open source of course). There is an instance of phpMyadmin running on the ip address in question. (please see comments below)
<?php
#connect to MySQL
$conn=@mysql_connect("205.178.146.80","usernamehere","passwordhere") or die("Err:conn");
#select the specified database
$rs=@mysql_select_db("pvgp-2011", $conn) or die("Err:Db");
#create the query
$sql="select id,cat_name from table"; //This would be where I pull the First Name, Last Name, Date, and Tickets correct? I know the table name, but not sure what the cat_name is
#execute the query
$rs=mysql_query($sql,$conn);
#write the data
while( $row = mysql_fetch_array($rs) )
{
echo("ID: ".$row["id"]);
echo(" Print Data: ".$row["cat_name"]."<br>");
}
?>
Thanks so much ahead of time