Search code examples
xampplocalhostlanhosts

DNS for localhost while accessing through router or access point on mobile


i'm running a website in college LAN which is accessed by 200+ members on mobile only.
they are accessing it by server ipaddress 192.168.0.***.
i wanna assign a name for this ipaddress.
i've tried to modify the hosts file. it worked on system alone,but didnt worked on mobile.
i need some suggestions. im using xampp as server
everything works on localhost, no internet connection is involved anywhere

hosts file

127.0.0.1   yep
192.168.0.110 yep.com

Solution

  • you forgot the point before and after the variables.

    $query="insert into logs(`from`,`to`) VALUES (  '".$caller."',  '".$callto."')";
    

    btw change your quote to double quotes just like my code.