Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8166603
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T19:55:55+00:00 2026-06-06T19:55:55+00:00

http://dl.dropbox.com/u/11246427/naysof_template.rar I am using XAMPP and set up my db using phpmyadmin. above is

  • 0

http://dl.dropbox.com/u/11246427/naysof_template.rar

I am using XAMPP and set up my db using phpmyadmin.

above is my current project. I am trying to set up a database to this “quote” template. As you may see, most of the user’s input are the <textarea>.

I want the invoice number to be auto-increment, and when save is clicked(i made a button on other template already), it will store the data into the database. I created database, tables but i am not sure how to set this up.

Do I include all textarea in this template to a single table, or do i make 2 tables? Because I am not sure if they can be combined together(like the address, title, invoice number in one table, AND item, price and such in another table). If so, how do i define them in my database? i am using “id” when linked to css, and the guides i have found all over internet are “name”. i am not sure if its going to be any different, but I am not getting a proper database saving/calling when following the guides.

and also, the guides i have been following are using <input> as the example. not sure how to work with <textarea>.

Here is my sql statement, i got an error while executing save function,

<?php

// Connect database 
mysql_connect("localhost", "root", "") or die (mysql_error());

// Select database
mysql_select_db("naysof_template") or die(mysql_error());

$strSQL = "INSERT INTO invoice_info(";

//$strSQL = $strSQL . "invoice_id, ";
$strSQL = $strSQL . "cust_address, ";
$strSQL = $strSQL . "title, ";
$strSQL = $strSQL . "date, ";
$strSQL = $strSQL . "signature_name) ";

$strSQL = $strSQL . "VALUES(";

//$strSQL = $strSQL . "' . $_POST["invoice_id"] . ', ";
$strSQL = $strSQL . "' . $_POST["cust_address"] . ', ";
$strSQL = $strSQL . "' . $_POST["title"] . ', ";
$strSQL = $strSQL . "' . $_POST["date"] . ', ";
$strSQL = $strSQL . "' . $_POST["signature_name"] . ')";

// The SQL statement is executed 
mysql_query($strSQL) or die (mysql_error());

// Close the database connection
mysql_close();

<h1>The database is updated!</h1>

?>

and this is the error, i didnt understand:

Parse error: syntax error, unexpected ‘”‘, expecting T_STRING or T_VARIABLE or T_NUM_STRING in C:\xampp\htdocs\naysof_template\insert.php on line 20

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T19:55:57+00:00Added an answer on June 6, 2026 at 7:55 pm

    There’s only HTML/CSS/JS code present in your project files even though the HTML is placed in *.php files there is no actual PHP code anywhere.

    HTML/CSS/JSS work on the visitors computer in the browser and they are called client-side technologies.

    Apache/PHP/MySQL work on the hosting computers (the server) and they are called server-side technologies.

    The client can request an item to be downloaded from the server and he will receive it (as that is the server’s default behaviour).

    The client by default has no ability to store information on the server. It can send information (such as forms) to the server but they will not be saved anywhere by default.

    There has to be some PHP code (that you wrote) on the server that inspects the received forms and decides what to do with them (save them in some MySQL tables for example).

    Edit (now that you’re showing us your PHP code):

    unexpected '"', expecting T_STRING or Means you did not use quotes correctly here:

    $strSQL = $strSQL . "' . $_POST["cust_address"] . ', ";
    

    You should be using them like this:

    $strSQL = $strSQL . "'" . $_POST["cust_address"] . "', ";
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a bare-bones sample project here: http://dl.dropbox.com/u/7834263/ExpandingCells.zip In this project, a UITableView has
I've written a custom slider for this project http://dl.dropbox.com/u/18292748/Sites/enblaze/index.html and it seems to work
This is a project example. http://dl.dropbox.com/u/23715281/TestRoo.zip And this is a details of project. entity
http://dl.dropbox.com/u/921159/desktopography/index.html I'm building a wallpaper blog and trying to use jquery to show/hide a
I have this form: http://dl.dropbox.com/u/14698783/project/register/form.htm The city input is hidden by default. I want
I'm trying to use enhance.js to load scripts only on desktops : http://dl.dropbox.com/u/426954/allora/index.html <script>
I'm looking at the Dropbox SDK for the Ruby platform http://www.dropbox.com/developers/start/setup#ruby , trying to
I have been trying to parse this ( http://app.calvaryccm.com/mobile/android/v1/devos ) URL using a SAX
http://dl.dropbox.com/u/13722201/Dorset%20Designs/index.html As you will see when you resize the browser everything does centralise until
http://dl.dropbox.com/u/24856/android_issue.PNG i have a text view on top running into the relative layout with

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.