I have a table like this id worktime_l 1 120 1 120 1 150 1 210 1 120 …
Passing values to blade using redirect() and back() functions
I have successfully pass values from form to controller. Calculation is is working well, since its dump all the values using dd($fee); dd($vat); dd($Transaction_vat);. But now, when I try to pass the values to blade using return redirect()->back()->with(‘fee’, $fee ,’vat’, $vat ,…
odbc_exec(): SQL error: [Microsoft][ODBC Microsoft Access Driver] Too few parameters. Expected 1., SQL state 07001 in SQLExecDirect
I have some problem in PHP using MS Access database, when I running the query in PHP show error odbc_exec(): SQL error: [Microsoft][ODBC Microsoft Access Driver] Too few parameters. Expected 1., SQL state 07001 in SQLExecDirect But when I’m going echo the “$query” variable and running the sy…
PHP display name of login user
I am trying to display the name of a user when they are logged in. My code uses $_SESSIONS to store the name, but since there no input in my login in page, the name doesn’t get assign and it ends up being just hello, instead of something like hello, John Smith. I’ve tried using sql to select the n…
PHP multidimensional array search by value using another value
I need to get the the distinct ‘uid’ and its corresponding ‘name’ , how can I do this in a multidimensional array? $userdb = array( array( ‘uid’ => ‘100’, ‘name’ => ‘Sandra Shush’, ‘…
how to update an email with unique role in Form Request Validation
I need to update an email with a unique role in the Form Request Validation. I have no problem with creating the user, but the problem is when I try to update the email, it shows that the email is …
Factory creating multiple models with different number of relationships
I’m using the following code to create 20 posts, each of which has 3 comments. Instead I’d like to create 20 posts, each of which has a random number of comments (e.g. post 1 has 2 comments, post 2 has 4 comments, etc.) This did not work, each post had the same (random) number of comments. How can…
How to add payment fee to cart in Prestashop?
I want to add payment fee to cart with a product created for payment fees. But when i add to cart the product for fee then i use $cart->getOrderTotal(), it doesn’t show the real price with fee. It shows the order total as product price without fee. I use SpecificPrice class for this action. And i thi…
How to set subfolder in nginx
Im trying to set index.php file in my html folder as localhost:5555 and my second index.php file in html/highlighter folder as localhost:5555/highlighter with first everything okay, but with second …
Speed of inserting to BigQuery – should this be batched in background?
I have simple URL shortener (PHP) where I’m tracking clicks. Every click is saved to database (mysql currently) as separate row because I need also info about device, country etc. It works great but when table grows and grows queries becomes slow, so I want to migrate to BigQuery (I know they are differ…