Skip to content

Tag: php

How to encrypt id in URL laravel

I want to encrypt the id in URL I’ll show my controller code and route. I’ve already used Crypt::encrypt($id); in my controller but it’s not working properly so I’ve commented that line in my controller this is my controller this is my route this is my blade Answer Use laravel builtin …

How to access php from html?

I am sorry if this is a repeating question, but I can’t find anyone who might have the same question as me yet. I am new in html and php, and I am trying to learn more by practising, basically …

SQL – Select doesn’t retrieve results

I’m using sqlsrv_num_rows in order to check if a user exists in the DB. When i’m running the query in my DB i’m getting 1 result, but in my PHP I’m not getting anything (echo doesn’t print anything). Why is that? Example query I’m using PHP and MSSQL. Answer Explanations: F…