I’m trying to store something like this in MYSQL table with php : 1+2+3+4
ex: $apple=’1+2+3+4′;
But it only insert the first number “1” in the row apple of my table and drop the rest of the chain
Blancer.com Tutorials and projects
Freelance Projects, Design and Programming Tutorials
Category Added in a WPeMatico Campaign
I’m trying to store something like this in MYSQL table with php : 1+2+3+4
ex: $apple=’1+2+3+4′;
But it only insert the first number “1” in the row apple of my table and drop the rest of the chain
I’m currently using php’s uniqid()
since the requirement is not to exceed 15 chars alphanumeric. But I’m worried if there’s any chances of duplication/collision because of more than thousand entries each day.
I can’t use salt
since it exceeds 15 chars. Is it okay to just use uniqid()
or is there a better solution?
products.push({'<?php echo $this->security->get_csrf_token_name(); ?>':'<?php echo $this->security->get_csrf_hash(); ?>'});
fetch(url + 'createProducts' ,{
method: 'POST',
credentials: 'same-origin',
mode: 'same-origin',
headers: {
'Accept': 'application/json',
'Content-Type': 'application/json',
},
body: JSON.stringify(products)
}).then(()=>{alert('done'); console.log(response.json());})
.catch(()=>{alert('error AJAX')});
in products, I have an array of products for my project
ad I am pushing my csrf token too.
But still getting 403 error, please help me resolve this.
Thank You