Skip to content
Advertisement

Tag: sql

Printing number of rows in Laravel

I am trying to print number of rows in Laravel from MySQL but i get this error: htmlspecialchars() expects parameter 1 to be string, object given (View: C:wamp64wwwkontresourcesviewsprofile….

SQLSTATE[23000]: Integrity constraint violation: 1048 Column ‘feature_item’ & ”status’ cannot be null

in my form when i checked the checkedbox there is no error .but when i don’t want to check the checkedbox, I am getting the error SQLSTATE[23000]: 1048 Column ‘feature_item’ & ”status’ cannot be null. 1.my products table:- 2.my product.blade.php This is my form 3.my ProductsController This error I get: SQLSTATE[23000]: Integrity constraint violation: 1048 Column ‘feature_item’ & ‘status’ cannot

Add Year to NOW()

I am trying to add a year to a date going into a SQL database from PHP. I have tried DATEADD(Year,1,NOW()) And various other forms but can’t seem to get it to add a year onto it in SQL. <?php …

Advertisement