Click here to Skip to main content
15,563,248 members
Home / Discussions / Linux, Apache, MySQL, PHP
   

Linux, Apache, MySQL, PHP

 
QuestionPHP connecting to vb.Net Pin
Member 1296881918-Jul-17 20:48
Member 1296881918-Jul-17 20:48 
AnswerRe: PHP connecting to vb.Net Pin
Richard MacCutchan18-Jul-17 21:49
mveRichard MacCutchan18-Jul-17 21:49 
QuestionTrying to create a secure login script, just have a few questions. Pin
BlackMagix14-May-17 5:40
BlackMagix14-May-17 5:40 
AnswerRe: Trying to create a secure login script, just have a few questions. Pin
Superolmo10-Jul-17 10:09
Superolmo10-Jul-17 10:09 
QuestionSorting array and adding position numbers while/after sorting Pin
Member 131868238-May-17 5:15
Member 131868238-May-17 5:15 
QuestionHelp Pin
Member 1302311826-Apr-17 4:40
Member 1302311826-Apr-17 4:40 
AnswerRe: Help Pin
Jochen Arndt26-Apr-17 4:58
professionalJochen Arndt26-Apr-17 4:58 
GeneralRe: Help Pin
Member 1302311826-Apr-17 5:14
Member 1302311826-Apr-17 5:14 
I test this code but the same problem
<?php

	 // Check whether username or password is set from android	
     if(isset($_POST['username']) && isset($_POST['password']))
     {
		  // Innitialize Variable
      $link = mysql_connect("localhost", "root", "");
    mysql_select_db("projet_grh", $link);
		  $result='';
	   	  $username = $_POST['username'];
          $password = $_POST['password'];
		    
       $hash = password_hash($password, PASSWORD_BCRYPT);
		  // Query database for row exist or not
          $sql = mysql_query("SELECT password FROM fos_user WHERE  username = '$username' AND password = '$hash'", $link);
          
         $num_rows = mysql_num_rows($sql);
          
          
         
          if (($num_rows == 0)) 
          {
			 	 $result="false";
          }  
          else
          {
			  	$result="true";
          }
		  
		  // send result back to android
   		  echo $result;
  	}



?>

GeneralRe: Help Pin
Jochen Arndt26-Apr-17 5:43
professionalJochen Arndt26-Apr-17 5:43 
GeneralRe: Help Pin
Member 1302311826-Apr-17 5:55
Member 1302311826-Apr-17 5:55 
GeneralRe: Help Pin
Jochen Arndt26-Apr-17 6:01
professionalJochen Arndt26-Apr-17 6:01 
QuestionHow To Add More Than One Entry On A Single Cell/Array ? Pin
Member 129567898-Apr-17 15:17
Member 129567898-Apr-17 15:17 
AnswerRe: What is the difference between web development and Web designing? Pin
ZurdoDev21-Mar-17 2:48
professionalZurdoDev21-Mar-17 2:48 
QuestionWhere do I put my jquery and AngularJS libraries in wordpress? Pin
samflex17-Feb-17 9:14
samflex17-Feb-17 9:14 
QuestionTrying to connect categories and users through pivot table i Laravel Pin
Duško Oljača3-Feb-17 2:21
Duško Oljača3-Feb-17 2:21 
AnswerRe: Trying to connect categories and users through pivot table i Laravel Pin
Afzaal Ahmad Zeeshan3-Feb-17 3:10
mveAfzaal Ahmad Zeeshan3-Feb-17 3:10 
QuestionOutputting ROW QUERY result to main program Pin
ELMAGLAYA16-Jan-17 22:19
ELMAGLAYA16-Jan-17 22:19 
AnswerRe: Outputting ROW QUERY result to main program Pin
Richard MacCutchan16-Jan-17 22:53
mveRichard MacCutchan16-Jan-17 22:53 
QuestionHow to fix this error $_SESSION:Notice: Undefined offset: 0 Pin
ELMAGLAYA4-Jan-17 19:45
ELMAGLAYA4-Jan-17 19:45 
AnswerRe: How to fix this error $_SESSION:Notice: Undefined offset: 0 Pin
Jochen Arndt4-Jan-17 23:16
professionalJochen Arndt4-Jan-17 23:16 
GeneralRe: How to fix this error $_SESSION:Notice: Undefined offset: 0 Pin
ELMAGLAYA16-Jan-17 22:33
ELMAGLAYA16-Jan-17 22:33 
AnswerCentOS httpd can not access Symbolink Pin
njzt28-Dec-16 2:26
njzt28-Dec-16 2:26 
QuestionOpen Suse Linux Pin
ForNow27-Dec-16 14:42
ForNow27-Dec-16 14:42 
AnswerRe: Open Suse Linux Pin
Richard MacCutchan27-Dec-16 22:00
mveRichard MacCutchan27-Dec-16 22:00 
GeneralRe: Open Suse Linux Pin
ForNow28-Dec-16 3:11
ForNow28-Dec-16 3:11 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.