Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var attributes = elem_name.attributes;
- text = ''
- for (var key in attributes) {
- /* Выбираем именно html-атрибуты */
- if (attributes[key].nodeName) {
- text += attributes[key].nodeName + ':' + attributes[key].nodeValue + ','
- }
- }
- $.ajax({
- type: "GET",
- url: "index.php",
- data: text
- }).done(function( data ) {
- });
- $сlass= $_GET['сlass'];
- $id= $_GET['id'];
- $con = mysqli_connect('bla','bla','bla','bla');
- $result = mysqli_query ($con,"INSERT INTO bla (class, id) VALUES ('$class','$id')");
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement