Skip to content

Tag: php

SQL Query to join multiple tables

I have 4 tables that I need to connect in order to get the reports that I need. But I’m confused on how to write the query. Below are the sample of the tables: Client Table Consultant Perm Temp The end result of the report that I want to show is something like this: I’m trying to use the LEFT

Shortcut key in PhpStorm to move to HTML end tag

Having a section of HTML tag: Suppose the caret is at the begin of the tag <div>, is there any key to move the caret to the closing </div>? There is a similar concept on CSS (doesn’t work on HTML) that works fine: in this case, Ctrl + ]/[ moves to the code block end/start. Here is the PhpSto…

Codeigniter send email with attach file

I am trying to send email on codeigniter with attach file. I always receive email successfully. However , I never receive with attach file. Below is code and highly appreciate for all comments. Answer $this->email->attach() Enables you to send an attachment. Put the file path/name in the first parameter…

Regex for youtube channel URL

how can I validate youtube channel URL using REGEX ? I found this pattern but it doesn’t work properly Can anyone help me ? Answer Your problem is the extra pipe after user/ Here is the corrected regex: The reason this is a problem is because it make (channel|user) optional. A better way to write this r…

user verification using SMS (php)

I am stuck in a situation in which when a user registers, he/she get a confirmation SMS on his/her mobile number, and he/she able to confirm their application by replying to the confirmation SMS, be …