
nitiphone2021
Members-
Content Count
34 -
Joined
-
Last visited
Community Reputation
0 NeutralAbout nitiphone2021
-
Rank
Member
Recent Profile Visitors
The recent visitors block is disabled and is not being shown to other users.
-
Dear Friends. Just now I tried to create PHP to make Rest API for my mobile application and I would like to know that it's good coding and need any improve? it is my first time for Rest API. normally I just connect to PHP file directly on .htaccess RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^([0-9A-Za-z_]+)$ function.php?func=$1 [L,QSA] RewriteRule ^([0-9A-Za-z_]+)/$ function.php?func=$1 [L,QSA] on function.php $func = $_GET['func']; switch( $func) { case 'lab_info': //ໜ້າຫຼັກ define( '_FUNC', 'lab_info.php');
-
set website name for intranet on linux apache
nitiphone2021 replied to nitiphone2021's topic in Linux
Yes, You are right. Could it be on linux? -
set website name for intranet on linux apache
nitiphone2021 replied to nitiphone2021's topic in Linux
But on windows OS, I don't need to set up DNS la. Just install Xampp and access from other computer to the web computer by computer name -
Dear All, Now I am setthing Ubuntu server for my intranet network and now I can access the web intranet when we stay on the same wifi network but I can access only the website by IP address. like http://192.168.101.250 so I want to set website name like http://website...... Do you have any idea about it? This one can work on windows by setting computer name
-
This is the result: Httpful\Response::__set_state(array( 'body' => 'Not Found', 'raw_body' => 'Not Found', 'headers' => Httpful\Response\Headers::__set_state(array( 'headers' => array ( 'cache-control' => 'no-cache, no-store, max-age=0, must-revalidate', 'pragma' => 'no-cache', 'expires' => 'Mon, 01 Jan 1990 00:00:00 GMT', 'date' => 'Wed, 17 Mar 2021 07:58:44 GMT', 'vary' => 'Origin,Accept-Encoding', 'content-type' => 'text/html; charset=UTF-8', 'x-content-type-options' => 'nosniff', 'x-f
-
Dear Friend, I am learning to use PHP code for using API and I found that Httpful is good. so I tried to use it but it is error. I ever use this \ but not understand what's meaning of it
-
How can I use loop to get all information? it is information from database query and it has 2 rows
-
Sorry, my question is not clear. I want to loop to get all information from the array. it's information from database 2 rows
-
Dear All, How can I get information that return from this array Array ( [0] => Array ( [id] => 5 [t_test_date] => 2021-02-11 [t_test_number] => 1 [t_uid] => 202102110001 [t_test_type] => 1 [t_status_id] => 4 [t_test_result_pcr] => 1 [t_test_result_rdt] => 0 [t_test_time] => 2021-02-11 11:39:00 [t_report_date] => [p_first_name] => tesdt [p_last_name] => tesdt [p_gender] => 0 [p_nationality] => [p_date_birth] => [p_passport_no] => [p_personal_id] => [p_issue_country] => [p_date_expiry] => [phone] => [email] => [t_price] =
-
I am comming back to build website from my 10 years past. Now I am trying to learn new technology about bbuild website and i don't sure that my knowledge is correct? so I need your suugestion how can make website better. Now My knowledge : HTML, CSS, JS, PHP. JS I only use jquery library and PHP only real code, never use any framework I am thinking about use Axios replace jquery also but not sure it's better. my target is timming of build website faster. example normally I use 1 month for 1 website. How can I use only 2 weeks for 1 website. like this. also security issue. on JS part
-
datatable, condition to add class details-control
nitiphone2021 replied to nitiphone2021's topic in Javascript Help
It's for ad sub table of datatable as this picture -
As I am writting a project manager website and I found that I can use datatable to add button infront of row to add more sub program It's work but I want to add the class details-control by a condition So Any way I can do that? var table = $("#requests_lab").DataTable({ data: JSON.parse(data), "aoColumns": [ { "orderable": false, "mData": function (data){ if (data.Project_status >= 4) { return "className
-
javascript select option by data-value
nitiphone2021 replied to nitiphone2021's topic in Javascript Help
Yes, you are right, it is jshjohnson, now i am looking for the way to create javascript to select it. if on javascript, i have var name = AFG and AFG is a value of select option. How can I create javascript to select it? From example is mean create new choice? how about existing choice? const example = new Choices(element, { choices: [ { value: 'One', label: 'Label One' }, { value: 'Two', label: 'Label Two', disabled: true }, { value: 'Three', label: 'Label Three' }, ], }); example.setChoiceByValue('Two'); // Choice with value of 'Two' has now been selected. -
javascript select option by data-value
nitiphone2021 replied to nitiphone2021's topic in Javascript Help
I use choice js