HTML Code:
[code]
RaffleCP- Items
- Information
- Finalize
HTML Code:
[code]
RaffleCPYou need to post the rest of your code.
The above mentioned code it complete.
Do you want me to send you php code/css/js
Thanks
The code is not complete. Where is process.php?
[php]<?php
/**
*
$item1 =$_POST[‘item1’];
$info1 =$_POST[‘info1’];
$item2 =$_POST[‘item2’];
$info2 =$_POST[‘info2’];
$item3 =$_POST[‘item3’];
$info3 =$_POST[‘info3’];
$slots =$_POST[‘slots’];
$noofpeople =$_POST[‘noofpeople’];
$Duration =$_POST[‘Duration’];
$otherinfo =$_POST[‘otherinfo’];
$entfees =$_POST[‘entfees’];
$entinfo =$_POST[‘entinfo’];
// i need to enter this in databases…
$con=mysqli_connect($host,$user,$pass,$db);
// Check connection
if (mysqli_connect_errno())
{
echo "Failed to connect to MySQL: " . mysqli_connect_error();
}
mysqli_query($con,“INSERT INTO tstraffle VALUES (’$item1’, ‘$info1’,’$item2’,’$info2’,’$item3’,’$info3’,’$slots’,’$noofpeople’,’$Duration’,’$otherinfo’,’$entfees’,’$entinfo’)”);
if(mysqli_affected_rows($con) >=1)
{
echo ‘DONE’;
}
else{
echo ‘did you miss something??? cause its not done…’;
}
mysqli_close($con);[/php]