How to store “single variable value” with array values in every rows…??
Share
How to store “single variable value” with array values in every rows…??
The first thing you can learn HTML, whether you want to become a professional web developer or just want to learn more about how websites work. The basic language for developing web pages and web applications is HTML. A server ...
Asynchronous Javascript One of AJAX’s benefits is it provides instantaneous feedback to the user because it requests information asynchronously from the backend web server. However, using AJAX does not guarantee the user will not wait for the asynchronous JavaScript and ...
How To Make Cookie Free Domain An HTTP cookie (also known as a web cookie, Internet cookie, browser cookie, or simply cookie) is a small piece of data sent from a website and stored on the user’s computer by the ...
For saving pHp Array into MySQL. You can have to create a function like:
function saveArrayInPHP($ArrayData) {
$c = connect();
foreach ($ArrayData as $key => $val) {
$query = ”INSERT INTO tablename (id,”.
implode(’,’,array_keys($val)).
”) VALUES ($key,”.
implode(’,’,$val).
”)”;
$result = mysql_query($query,$c);
}
mysql_close($c);
}
In this function saveArrayInPHP you can pass your array and process that according to the foreach as done above and insert them all in the each row.