overleaf errors












0















The following is my thesis preamble:



    documentclass[12pt,english]{article}
usepackage{subfig}
usepackage{graphicx} % for graphics
usepackage{subfigmat}
%usepackage[draft]{graphicx} % temporarily turn off graphicx
%usepackage{subfig}
%setcounter{lofdepth}{2}
%usepackage{parskip}
usepackage{caption} % Enable figure captions or figure notes
usepackage{subcaption} %Further enable sub captions
usepackage{booktabs} %for table
usepackage{amsmath} %for equations and mathematical symbols
usepackage{amssymb}
usepackage{rotating} %for table rotation
usepackage{lscape}
usepackage{float} % allow tables to self adjust
usepackage{morefloats}
usepackage[flushleft]{threeparttable}
usepackage{tabularx}
usepackage{adjustbox}
usepackage{hyperref} % allow hyper referencing
usepackage{breakcites}
usepackage{csquotes}
usepackage{enumerate} % to get all that enumeration offers
captionsetup{font=footnotesize}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
usepackage[round]{natbib} % for bibliography
%bibliographystyle{cambridgeauthordate}
usepackage{apalike}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%usepackage[natbibapa]{apacite} % load "apacite" with option "natbibapa"
%bibliographystyle{apacite} % specify the bibliography style

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

%{plainnat} % regular bibliography
usepackage[usenames, dvipsnames]{color} % coloring fonts
%%%%%%%%%%%%%%%%%%%%%%%
usepackage[T1]{fontenc}
usepackage{array}
usepackage{multirow}
usepackage{esint}
usepackage[toc,page]{appendix}
renewcommand{cite}{citeyear}
newtheorem{theorem}{Theorem}
newtheorem{corollary}{Corollary}
newtheorem{assumption}{Assumption}
newtheorem{definition}{Definition}
newtheorem{proposition}{Proposition}
makeatletter
providecommand{tabularnewline}{\}
usepackage{psfrag}usepackage{multirow}@ifundefined{definecolor}{usepackage{color}}{}
usepackage{colortbl}usepackage{float}usepackage{bm}usepackage[metapost]{mfpic}
% Tree-saver - if turn this on you lose page numbers
setlength{textwidth}{8.276in}
setlength{textheight}{11.405in}
% Allow 1 in margin on each side and nothing else
addtolength{textwidth}{-2in}
addtolength{textheight}{-2in}
setlength{oddsidemargin}{0pt}
setlength{evensidemargin}{oddsidemargin}
setlength{topmargin}{0pt}
addtolength{topmargin}{-headheight}
addtolength{topmargin}{-headsep}
newcommand{ds}{displaystyle}
newcommand{bs}{boldsymbol}
%pagenumbering{roman}
parindent=0pt
parskip=5pt
def@cite#1#2{{#1if@tempswa , #2fi}}
def@biblabel#1{}
defph#1{phantom{#1}}
renewcommand{baselinestretch}{1.0}

title{}
author{}

usepackage{babel}

date{today}
%usepackage{calc} % To reset the counter in the document after title page

makeatother

begin{document}

maketitle
begin{abstract}


I must use subfigure package for



begin{figure}[!ht]
setlength{lineskip}{1ex}% increase spacing
centering
subfloat[1998:1]{includegraphics[width=.3textwidth]{A1}}%
hspace{fill}
subfloat[1998:2]{includegraphics[width=.3textwidth]{A2}}%
hspace{fill}
subfloat[1999:1]{includegraphics[width=.3textwidth]{A3}}%
hspace{fill}
subfloat[1999:2]{includegraphics[width=.3textwidth]{A4}}%
hspace{fill}
subfloat[2000:1]{includegraphics[width=.3textwidth]{A5}}%
hspace{fill}
subfloat[2000:2]{includegraphics[width=.3textwidth]{A6}}%
hspace{fill}
subfloat[2001:1]{includegraphics[width=.3textwidth]{A7}}%
hspace{fill}
subfloat[2001:2]{includegraphics[width=.3textwidth]{A8}}
hspace{fill}
subfloat[2002:1][![enter image description here][1]][1]{includegraphics[width=.3textwidth]{A9}}
hspace{fill}
subfloat[2002:2]{includegraphics[width=.3textwidth]{A10}}
hspace{fill}
subfloat[2003:1]{includegraphics[width=.3textwidth]{A11}}
hspace{fill}
subfloat[2003:2]{includegraphics[width=.3textwidth]{A12}}
caption{label{figure12} Dynamic crisis transmission maps from 1998-2003}
end{figure}


But I end up getting errors as follows:



    LaTeX Error: Command c@subfigure already defined.

Or name end... illegal, see p.192 of the manual.

See the LaTeX manual or LaTeX Companion for explanation.
Type H <return> for immediate help.
...

l.113 newcounter{subfigure}
[figure]
Your command was ignored.
Type I <command> <return> to replace it with another command,
or <return> to continue without it.


And some more errors as attached enter image description here



HOW CAN I GET RID OF THESE ERRORS?










share|improve this question























  • You load subfig and subcaption, both are incompatible with another. Overall, the template you are using is just bad. Have a look at en.wikibooks.org/wiki/LaTeX/Scientific_Reports

    – Johannes_B
    32 mins ago
















0















The following is my thesis preamble:



    documentclass[12pt,english]{article}
usepackage{subfig}
usepackage{graphicx} % for graphics
usepackage{subfigmat}
%usepackage[draft]{graphicx} % temporarily turn off graphicx
%usepackage{subfig}
%setcounter{lofdepth}{2}
%usepackage{parskip}
usepackage{caption} % Enable figure captions or figure notes
usepackage{subcaption} %Further enable sub captions
usepackage{booktabs} %for table
usepackage{amsmath} %for equations and mathematical symbols
usepackage{amssymb}
usepackage{rotating} %for table rotation
usepackage{lscape}
usepackage{float} % allow tables to self adjust
usepackage{morefloats}
usepackage[flushleft]{threeparttable}
usepackage{tabularx}
usepackage{adjustbox}
usepackage{hyperref} % allow hyper referencing
usepackage{breakcites}
usepackage{csquotes}
usepackage{enumerate} % to get all that enumeration offers
captionsetup{font=footnotesize}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
usepackage[round]{natbib} % for bibliography
%bibliographystyle{cambridgeauthordate}
usepackage{apalike}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%usepackage[natbibapa]{apacite} % load "apacite" with option "natbibapa"
%bibliographystyle{apacite} % specify the bibliography style

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

%{plainnat} % regular bibliography
usepackage[usenames, dvipsnames]{color} % coloring fonts
%%%%%%%%%%%%%%%%%%%%%%%
usepackage[T1]{fontenc}
usepackage{array}
usepackage{multirow}
usepackage{esint}
usepackage[toc,page]{appendix}
renewcommand{cite}{citeyear}
newtheorem{theorem}{Theorem}
newtheorem{corollary}{Corollary}
newtheorem{assumption}{Assumption}
newtheorem{definition}{Definition}
newtheorem{proposition}{Proposition}
makeatletter
providecommand{tabularnewline}{\}
usepackage{psfrag}usepackage{multirow}@ifundefined{definecolor}{usepackage{color}}{}
usepackage{colortbl}usepackage{float}usepackage{bm}usepackage[metapost]{mfpic}
% Tree-saver - if turn this on you lose page numbers
setlength{textwidth}{8.276in}
setlength{textheight}{11.405in}
% Allow 1 in margin on each side and nothing else
addtolength{textwidth}{-2in}
addtolength{textheight}{-2in}
setlength{oddsidemargin}{0pt}
setlength{evensidemargin}{oddsidemargin}
setlength{topmargin}{0pt}
addtolength{topmargin}{-headheight}
addtolength{topmargin}{-headsep}
newcommand{ds}{displaystyle}
newcommand{bs}{boldsymbol}
%pagenumbering{roman}
parindent=0pt
parskip=5pt
def@cite#1#2{{#1if@tempswa , #2fi}}
def@biblabel#1{}
defph#1{phantom{#1}}
renewcommand{baselinestretch}{1.0}

title{}
author{}

usepackage{babel}

date{today}
%usepackage{calc} % To reset the counter in the document after title page

makeatother

begin{document}

maketitle
begin{abstract}


I must use subfigure package for



begin{figure}[!ht]
setlength{lineskip}{1ex}% increase spacing
centering
subfloat[1998:1]{includegraphics[width=.3textwidth]{A1}}%
hspace{fill}
subfloat[1998:2]{includegraphics[width=.3textwidth]{A2}}%
hspace{fill}
subfloat[1999:1]{includegraphics[width=.3textwidth]{A3}}%
hspace{fill}
subfloat[1999:2]{includegraphics[width=.3textwidth]{A4}}%
hspace{fill}
subfloat[2000:1]{includegraphics[width=.3textwidth]{A5}}%
hspace{fill}
subfloat[2000:2]{includegraphics[width=.3textwidth]{A6}}%
hspace{fill}
subfloat[2001:1]{includegraphics[width=.3textwidth]{A7}}%
hspace{fill}
subfloat[2001:2]{includegraphics[width=.3textwidth]{A8}}
hspace{fill}
subfloat[2002:1][![enter image description here][1]][1]{includegraphics[width=.3textwidth]{A9}}
hspace{fill}
subfloat[2002:2]{includegraphics[width=.3textwidth]{A10}}
hspace{fill}
subfloat[2003:1]{includegraphics[width=.3textwidth]{A11}}
hspace{fill}
subfloat[2003:2]{includegraphics[width=.3textwidth]{A12}}
caption{label{figure12} Dynamic crisis transmission maps from 1998-2003}
end{figure}


But I end up getting errors as follows:



    LaTeX Error: Command c@subfigure already defined.

Or name end... illegal, see p.192 of the manual.

See the LaTeX manual or LaTeX Companion for explanation.
Type H <return> for immediate help.
...

l.113 newcounter{subfigure}
[figure]
Your command was ignored.
Type I <command> <return> to replace it with another command,
or <return> to continue without it.


And some more errors as attached enter image description here



HOW CAN I GET RID OF THESE ERRORS?










share|improve this question























  • You load subfig and subcaption, both are incompatible with another. Overall, the template you are using is just bad. Have a look at en.wikibooks.org/wiki/LaTeX/Scientific_Reports

    – Johannes_B
    32 mins ago














0












0








0








The following is my thesis preamble:



    documentclass[12pt,english]{article}
usepackage{subfig}
usepackage{graphicx} % for graphics
usepackage{subfigmat}
%usepackage[draft]{graphicx} % temporarily turn off graphicx
%usepackage{subfig}
%setcounter{lofdepth}{2}
%usepackage{parskip}
usepackage{caption} % Enable figure captions or figure notes
usepackage{subcaption} %Further enable sub captions
usepackage{booktabs} %for table
usepackage{amsmath} %for equations and mathematical symbols
usepackage{amssymb}
usepackage{rotating} %for table rotation
usepackage{lscape}
usepackage{float} % allow tables to self adjust
usepackage{morefloats}
usepackage[flushleft]{threeparttable}
usepackage{tabularx}
usepackage{adjustbox}
usepackage{hyperref} % allow hyper referencing
usepackage{breakcites}
usepackage{csquotes}
usepackage{enumerate} % to get all that enumeration offers
captionsetup{font=footnotesize}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
usepackage[round]{natbib} % for bibliography
%bibliographystyle{cambridgeauthordate}
usepackage{apalike}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%usepackage[natbibapa]{apacite} % load "apacite" with option "natbibapa"
%bibliographystyle{apacite} % specify the bibliography style

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

%{plainnat} % regular bibliography
usepackage[usenames, dvipsnames]{color} % coloring fonts
%%%%%%%%%%%%%%%%%%%%%%%
usepackage[T1]{fontenc}
usepackage{array}
usepackage{multirow}
usepackage{esint}
usepackage[toc,page]{appendix}
renewcommand{cite}{citeyear}
newtheorem{theorem}{Theorem}
newtheorem{corollary}{Corollary}
newtheorem{assumption}{Assumption}
newtheorem{definition}{Definition}
newtheorem{proposition}{Proposition}
makeatletter
providecommand{tabularnewline}{\}
usepackage{psfrag}usepackage{multirow}@ifundefined{definecolor}{usepackage{color}}{}
usepackage{colortbl}usepackage{float}usepackage{bm}usepackage[metapost]{mfpic}
% Tree-saver - if turn this on you lose page numbers
setlength{textwidth}{8.276in}
setlength{textheight}{11.405in}
% Allow 1 in margin on each side and nothing else
addtolength{textwidth}{-2in}
addtolength{textheight}{-2in}
setlength{oddsidemargin}{0pt}
setlength{evensidemargin}{oddsidemargin}
setlength{topmargin}{0pt}
addtolength{topmargin}{-headheight}
addtolength{topmargin}{-headsep}
newcommand{ds}{displaystyle}
newcommand{bs}{boldsymbol}
%pagenumbering{roman}
parindent=0pt
parskip=5pt
def@cite#1#2{{#1if@tempswa , #2fi}}
def@biblabel#1{}
defph#1{phantom{#1}}
renewcommand{baselinestretch}{1.0}

title{}
author{}

usepackage{babel}

date{today}
%usepackage{calc} % To reset the counter in the document after title page

makeatother

begin{document}

maketitle
begin{abstract}


I must use subfigure package for



begin{figure}[!ht]
setlength{lineskip}{1ex}% increase spacing
centering
subfloat[1998:1]{includegraphics[width=.3textwidth]{A1}}%
hspace{fill}
subfloat[1998:2]{includegraphics[width=.3textwidth]{A2}}%
hspace{fill}
subfloat[1999:1]{includegraphics[width=.3textwidth]{A3}}%
hspace{fill}
subfloat[1999:2]{includegraphics[width=.3textwidth]{A4}}%
hspace{fill}
subfloat[2000:1]{includegraphics[width=.3textwidth]{A5}}%
hspace{fill}
subfloat[2000:2]{includegraphics[width=.3textwidth]{A6}}%
hspace{fill}
subfloat[2001:1]{includegraphics[width=.3textwidth]{A7}}%
hspace{fill}
subfloat[2001:2]{includegraphics[width=.3textwidth]{A8}}
hspace{fill}
subfloat[2002:1][![enter image description here][1]][1]{includegraphics[width=.3textwidth]{A9}}
hspace{fill}
subfloat[2002:2]{includegraphics[width=.3textwidth]{A10}}
hspace{fill}
subfloat[2003:1]{includegraphics[width=.3textwidth]{A11}}
hspace{fill}
subfloat[2003:2]{includegraphics[width=.3textwidth]{A12}}
caption{label{figure12} Dynamic crisis transmission maps from 1998-2003}
end{figure}


But I end up getting errors as follows:



    LaTeX Error: Command c@subfigure already defined.

Or name end... illegal, see p.192 of the manual.

See the LaTeX manual or LaTeX Companion for explanation.
Type H <return> for immediate help.
...

l.113 newcounter{subfigure}
[figure]
Your command was ignored.
Type I <command> <return> to replace it with another command,
or <return> to continue without it.


And some more errors as attached enter image description here



HOW CAN I GET RID OF THESE ERRORS?










share|improve this question














The following is my thesis preamble:



    documentclass[12pt,english]{article}
usepackage{subfig}
usepackage{graphicx} % for graphics
usepackage{subfigmat}
%usepackage[draft]{graphicx} % temporarily turn off graphicx
%usepackage{subfig}
%setcounter{lofdepth}{2}
%usepackage{parskip}
usepackage{caption} % Enable figure captions or figure notes
usepackage{subcaption} %Further enable sub captions
usepackage{booktabs} %for table
usepackage{amsmath} %for equations and mathematical symbols
usepackage{amssymb}
usepackage{rotating} %for table rotation
usepackage{lscape}
usepackage{float} % allow tables to self adjust
usepackage{morefloats}
usepackage[flushleft]{threeparttable}
usepackage{tabularx}
usepackage{adjustbox}
usepackage{hyperref} % allow hyper referencing
usepackage{breakcites}
usepackage{csquotes}
usepackage{enumerate} % to get all that enumeration offers
captionsetup{font=footnotesize}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
usepackage[round]{natbib} % for bibliography
%bibliographystyle{cambridgeauthordate}
usepackage{apalike}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%usepackage[natbibapa]{apacite} % load "apacite" with option "natbibapa"
%bibliographystyle{apacite} % specify the bibliography style

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

%{plainnat} % regular bibliography
usepackage[usenames, dvipsnames]{color} % coloring fonts
%%%%%%%%%%%%%%%%%%%%%%%
usepackage[T1]{fontenc}
usepackage{array}
usepackage{multirow}
usepackage{esint}
usepackage[toc,page]{appendix}
renewcommand{cite}{citeyear}
newtheorem{theorem}{Theorem}
newtheorem{corollary}{Corollary}
newtheorem{assumption}{Assumption}
newtheorem{definition}{Definition}
newtheorem{proposition}{Proposition}
makeatletter
providecommand{tabularnewline}{\}
usepackage{psfrag}usepackage{multirow}@ifundefined{definecolor}{usepackage{color}}{}
usepackage{colortbl}usepackage{float}usepackage{bm}usepackage[metapost]{mfpic}
% Tree-saver - if turn this on you lose page numbers
setlength{textwidth}{8.276in}
setlength{textheight}{11.405in}
% Allow 1 in margin on each side and nothing else
addtolength{textwidth}{-2in}
addtolength{textheight}{-2in}
setlength{oddsidemargin}{0pt}
setlength{evensidemargin}{oddsidemargin}
setlength{topmargin}{0pt}
addtolength{topmargin}{-headheight}
addtolength{topmargin}{-headsep}
newcommand{ds}{displaystyle}
newcommand{bs}{boldsymbol}
%pagenumbering{roman}
parindent=0pt
parskip=5pt
def@cite#1#2{{#1if@tempswa , #2fi}}
def@biblabel#1{}
defph#1{phantom{#1}}
renewcommand{baselinestretch}{1.0}

title{}
author{}

usepackage{babel}

date{today}
%usepackage{calc} % To reset the counter in the document after title page

makeatother

begin{document}

maketitle
begin{abstract}


I must use subfigure package for



begin{figure}[!ht]
setlength{lineskip}{1ex}% increase spacing
centering
subfloat[1998:1]{includegraphics[width=.3textwidth]{A1}}%
hspace{fill}
subfloat[1998:2]{includegraphics[width=.3textwidth]{A2}}%
hspace{fill}
subfloat[1999:1]{includegraphics[width=.3textwidth]{A3}}%
hspace{fill}
subfloat[1999:2]{includegraphics[width=.3textwidth]{A4}}%
hspace{fill}
subfloat[2000:1]{includegraphics[width=.3textwidth]{A5}}%
hspace{fill}
subfloat[2000:2]{includegraphics[width=.3textwidth]{A6}}%
hspace{fill}
subfloat[2001:1]{includegraphics[width=.3textwidth]{A7}}%
hspace{fill}
subfloat[2001:2]{includegraphics[width=.3textwidth]{A8}}
hspace{fill}
subfloat[2002:1][![enter image description here][1]][1]{includegraphics[width=.3textwidth]{A9}}
hspace{fill}
subfloat[2002:2]{includegraphics[width=.3textwidth]{A10}}
hspace{fill}
subfloat[2003:1]{includegraphics[width=.3textwidth]{A11}}
hspace{fill}
subfloat[2003:2]{includegraphics[width=.3textwidth]{A12}}
caption{label{figure12} Dynamic crisis transmission maps from 1998-2003}
end{figure}


But I end up getting errors as follows:



    LaTeX Error: Command c@subfigure already defined.

Or name end... illegal, see p.192 of the manual.

See the LaTeX manual or LaTeX Companion for explanation.
Type H <return> for immediate help.
...

l.113 newcounter{subfigure}
[figure]
Your command was ignored.
Type I <command> <return> to replace it with another command,
or <return> to continue without it.


And some more errors as attached enter image description here



HOW CAN I GET RID OF THESE ERRORS?







subfloats subcaption overleaf






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked 34 mins ago









R.IslamR.Islam

215




215













  • You load subfig and subcaption, both are incompatible with another. Overall, the template you are using is just bad. Have a look at en.wikibooks.org/wiki/LaTeX/Scientific_Reports

    – Johannes_B
    32 mins ago



















  • You load subfig and subcaption, both are incompatible with another. Overall, the template you are using is just bad. Have a look at en.wikibooks.org/wiki/LaTeX/Scientific_Reports

    – Johannes_B
    32 mins ago

















You load subfig and subcaption, both are incompatible with another. Overall, the template you are using is just bad. Have a look at en.wikibooks.org/wiki/LaTeX/Scientific_Reports

– Johannes_B
32 mins ago





You load subfig and subcaption, both are incompatible with another. Overall, the template you are using is just bad. Have a look at en.wikibooks.org/wiki/LaTeX/Scientific_Reports

– Johannes_B
32 mins ago










0






active

oldest

votes












Your Answer








StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "85"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f482539%2foverleaf-errors%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes
















draft saved

draft discarded




















































Thanks for contributing an answer to TeX - LaTeX Stack Exchange!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f482539%2foverleaf-errors%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

A CLEAN and SIMPLE way to add appendices to Table of Contents and bookmarks

Calculate evaluation metrics using cross_val_predict sklearn

Insert data from modal to MySQL (multiple modal on website)