Tags:

stop other form1 from submitting when submitting form2 using php/javascript or jquery


this is the real code I am doing the first post contains the same problem, as you can see the form 1 buttons is to control the iteration of the $_SESSION[‘clicks’] value i am using sessions in this …

Tags:

Save product first publishing date as “First publish date” and set custom product badges


Currently I always always display a “new” product badge, when a product is created and published in the store. For that we use the standard WooCommerce function $product->…

Tags:

Use a String as a Seed for a Randomiser


It is possible to use a string as a randomiser seed to generate a number between two values in PHP. For example: $seed = ‘John’; srand($seed); echo rand(1, 10);

Tags:

Laravel fetch all the values of a column


The user_enabled_notifications table has 2 rows of data. i wanted to fetch all the values in the id column. $notificationData = UserEnabledNotifications::all(); dump($notificationData[‘id’]); shows …

Tags:

Redirect a web page URL to another website


I have a simple PHP website. Let’s call it youtubex.com. I want to redirect youtubex URLs (in the format shown on STEP2) to my website in the format shown on STEP3. Here, I am using YouTube, just for …

Tags:

Access Token Expires while using Google Oauth 2.0 API after some time [closed]


I started using Google Oauth 2.0 code in order to work on Google calendars for my project. Everything works perfectly and then suddenly after some time or almost a day the Access Token expires I tried …

Tags:

Hit Counter PHP, TXT, Image and Imagick


Some days Ago I started to create a SaaS Hit counter System, I founded some problems but solved, in the last answer about this I just talked about the problem so no codes have been posted with the …

Tags:

Render WooCommerce Block ‘Product Filter – Attributes’ in code rather than via backend


WooCommerce provides the Gutenberg block “Product Filter – Attributes”, which you can add to the sidebar or footer widgets or basically everywhere, where you can add Gutenberg blocks. …

Tags:

Multiple search clause for many-to-many relationships in Laravel


Good day. I have this stuff that has been a little bit problematic for me in my application. I have a Staff model which has a many to many relationship with a Company model. Hence, I have a …

Tags:

get the index number of data gotten from mysql database


I am trying to get all user data from my mysql table and i want to check the index number of where a particular data is for example if there are 10 users in the database and after getting the data …