We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I can use the REPLACE INTO instead of INSERT, UPDATE and DELETE perfectly, but the object returns NULL.
This works, but $add returns null; $add = $db->query("REPLACE INTO ads (fk_user, ad_title, ad_description, ad_files, ad_type, ad_mode, ad_reward, ad_location, ad_cdate, ad_udate, ad_status, ad_slug, ad_tags, ad_solved, ad_reports) VALUES (1, 'title', 'description', 'files', 1, 1, 1.12, 'location', NOW(), NULL, 1, 'slug', 'tags', 1, 0)");
$add = $db->query("REPLACE INTO ads (fk_user, ad_title, ad_description, ad_files, ad_type, ad_mode, ad_reward, ad_location, ad_cdate, ad_udate, ad_status, ad_slug, ad_tags, ad_solved, ad_reports) VALUES (1, 'title', 'description', 'files', 1, 1, 1.12, 'location', NOW(), NULL, 1, 'slug', 'tags', 1, 0)");
The text was updated successfully, but these errors were encountered:
Well seems simple but I fix this adding || $statement === 'replace' at line 194 of Db.class.php and that query object return a int value successfully
|| $statement === 'replace'
;
Sorry, something went wrong.
No branches or pull requests
I can use the REPLACE INTO instead of INSERT, UPDATE and DELETE perfectly, but the object returns NULL.
This works, but $add returns null;
$add = $db->query("REPLACE INTO ads (fk_user, ad_title, ad_description, ad_files, ad_type, ad_mode, ad_reward, ad_location, ad_cdate, ad_udate, ad_status, ad_slug, ad_tags, ad_solved, ad_reports) VALUES (1, 'title', 'description', 'files', 1, 1, 1.12, 'location', NOW(), NULL, 1, 'slug', 'tags', 1, 0)");
The text was updated successfully, but these errors were encountered: