jagadishwor 0 Newbie Poster

Hello everyone!

I am currently going to build a simple booking website for a restaurant using PHP which will have two major functionality. One will be to book for seats and other to possibly let people order takeaways. Now that will be the front end of the system. But I will need something for the owners of the restaurant to know the bookings and the order. I know there is some content management systems like Joomla and Drupal but I am thinking if there is some other way to provide a simple back-end. If anyone could point me some resources or give me some idea on this I would be grateful. Thank you.

6pandn21

Hey you can use php/asp/ any suitable for both.

jagadishwor 0 Newbie Poster

hey where is your form and how did you retrieve $POST data //

jagadishwor 0 Newbie Poster

Did you see the out put in this ??
I have found one php tag is not closed their
<?php
/* subject and email vars */
$emailSubject = 'someone commented on infront-design.com';
$toAddress = 'info@infront-design.com';
/* data colletction vars */
$nameField = $_POST ;
$mailField = $_POST ;
$commentsField = $_POST ;

$body = <<<EOD
<br><hr><br>
Name: $Name <br>
Email: $email <br>
message: $Comments <br>
EOD;

$headers = "From: $email\r\n";
$headers .= "Content-type: text/html\r\n";
$success = mail ($emailSubject, $toAddress, $body, $headers);
/* code change to html display upon form submission */

$formSuccess = <<<EOD

?>
Use a close tag anywhere you need. And now check again

jagadishwor 0 Newbie Poster

Nothing to do if you have changed some setting in your apache server then you will need to copy httpd.conf other. If you haven't change anythings in your httpd.conf file then no need to copy it.
You just done!!!.

jagadishwor 0 Newbie Poster

Don't worry! it's very easy way first of all backup all of your htdocs folder from xampp this is the folder where your files.
xampp\htdocs\-copy allfiles of htdocs .
and also now backup your database from mysql folder.
xampp\mysql\data-There is your database

If you have changed as your required in apache configuration then goto
xampp\apache\conf and copy the file httpd.conf

Now uninstall your xampp from C drive
And
Install it in your D drive

Copy above files in the particular directories.
You have dons.

jagadishwor 0 Newbie Poster

Hey Just search for PHP Mail Function in google you will get lots of codes. If u again got problem I will help u.

jagadishwor 0 Newbie Poster

Easy way to use like operator for you mysql query.

jagadishwor 0 Newbie Poster

Hi you can write code in php and javascript like

<a href="javascript:confirm('<?php echo $confirm;?>
<script language="JavaScript">
function confirm(value)
{
    if (confirm("Are you sure you want to signout '" + value + "'"))
    {
        window.location.href = '';
    }
}
</script>

It's easy to combine java and php.
I think you understand.

jagadishwor 0 Newbie Poster

Hi,
You are trying to keep whole page inside your page. So it's overriding because that page is just shown inside your page and that page contents all of the css style which the remote page have.
So Try other method so that you can access the content of that web.

jagadishwor 0 Newbie Poster

Can you post your few lines of upload code so that I can see what have been there . Have you used php_self method ?

jagadishwor 0 Newbie Poster

<?php
$conn = new mysql('localhost', 'root', 'adm1ns');
$sq1 ="INSERT INTO data VALUES(?,?,?);
$stmt = $conn->stmt_init();
$stmt->prepare($sql);
$stmt->bind_param("sss",$instance,$instance,$instance);
$stmt->execute();
$stmt->fetch();
?>


i use this code to store the data in mysql given by user...

in sixth line i am getting a error "unexpected T_STRING" i cant cant this error pls help me

<?php
$conn = new mysql('localhost', 'root', 'adm1ns');
$sq1 ="INSERT INTO data VALUES(?,?,?);
$stmt = $conn->stmt_init();
$stmt->prepare($sql);
$stmt->bind_param("sss",$instance,$instance,$instance);
$stmt->execute();
$stmt->fetch();
?>


Hey you have done mistake in your line 2.
look
$sq1 ="INSERT INTO data VALUES(?,?,?);
Close it like
$sq1 ="INSERT INTO data VALUES(?,?,?)";

ok
http://www.jagadishwor.com.np