Click here to Skip to main content
15,845,273 members
Home / Discussions / Android
   

Android

 
AnswerRe: Android Shopping Cart Pin
Richard MacCutchan12-May-17 4:13
mveRichard MacCutchan12-May-17 4:13 
QuestionRe: Android Shopping Cart Pin
David Crow12-May-17 10:48
David Crow12-May-17 10:48 
QuestionCorrect MVVM implementation to manually login to website, go to certain link in the website, read information from html element and display it in another View. Pin
JoJo8210-May-17 7:15
JoJo8210-May-17 7:15 
AnswerRe: Correct MVVM implementation to manually login to website, go to certain link in the website, read information from html element and display it in another View. Pin
Richard MacCutchan10-May-17 7:41
mveRichard MacCutchan10-May-17 7:41 
GeneralRe: Correct MVVM implementation to manually login to website, go to certain link in the website, read information from html element and display it in another View. Pin
JoJo8210-May-17 13:07
JoJo8210-May-17 13:07 
QuestionPrevious fragment visible under the new fragment issue Pin
Pavlex46-May-17 8:59
Pavlex46-May-17 8:59 
SuggestionRe: Previous fragment visible under the new fragment issue Pin
David Crow8-May-17 7:53
David Crow8-May-17 7:53 
QuestionHelp Pin
Member 1302311825-Apr-17 15:06
Member 1302311825-Apr-17 15:06 
Hello everyone i need to hashed my password when i put it in my login application android and then i need to compare it with my password in my table fos_user of symfony and the password in fos_user is encoders:bcrypt
This is my code:
<?php

     include 'config.inc.php';

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



?>

My file config.inc.php is this code
<?php

$servername = "localhost";
$username = "root";
$password = "";
$dbname = "projet_grh";

try {
    	$conn = new PDO("mysql:host=$servername;dbname=$dbname", $username, $password);
    	$conn->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
    	
    }
catch(PDOException $e)
    {
    	die("OOPs something went wrong");
    }

?>

QuestionRe: Help Pin
Richard MacCutchan25-Apr-17 22:28
mveRichard MacCutchan25-Apr-17 22:28 
AnswerRe: Help Pin
Member 1302311826-Apr-17 1:22
Member 1302311826-Apr-17 1:22 
QuestionRe: Help Pin
David Crow26-Apr-17 4:00
David Crow26-Apr-17 4:00 
AnswerRe: Help Pin
Member 1302311826-Apr-17 4:27
Member 1302311826-Apr-17 4:27 
SuggestionRe: Help Pin
David Crow26-Apr-17 4:36
David Crow26-Apr-17 4:36 
GeneralRe: Help Pin
Member 1302311826-Apr-17 4:38
Member 1302311826-Apr-17 4:38 
GeneralRe: Help Pin
Richard MacCutchan26-Apr-17 22:07
mveRichard MacCutchan26-Apr-17 22:07 
Questionhow can i open a rar file with password Pin
Member 1298133419-Apr-17 4:05
Member 1298133419-Apr-17 4:05 
AnswerRe: how can i open a rar file with password Pin
Nick_314159265419-Apr-17 5:08
Nick_314159265419-Apr-17 5:08 
AnswerRe: how can i open a rar file with password Pin
CHill6019-Apr-17 5:10
mveCHill6019-Apr-17 5:10 
SuggestionRe: how can i open a rar file with password Pin
David Crow24-Apr-17 10:55
David Crow24-Apr-17 10:55 
QuestionTrying to set Imageview with background operations Pin
Gizem Alpaydin18-Apr-17 7:09
Gizem Alpaydin18-Apr-17 7:09 
QuestionI don't find the mistake I make Pin
User 1106097926-Mar-17 5:15
User 1106097926-Mar-17 5:15 
AnswerRe: I don't find the mistake I make Pin
Richard MacCutchan26-Mar-17 8:00
mveRichard MacCutchan26-Mar-17 8:00 
GeneralRe: I don't find the mistake I make Pin
User 1106097926-Mar-17 8:38
User 1106097926-Mar-17 8:38 
GeneralRe: I don't find the mistake I make Pin
Richard MacCutchan26-Mar-17 8:40
mveRichard MacCutchan26-Mar-17 8:40 
GeneralRe: I don't find the mistake I make Pin
User 1106097926-Mar-17 8:44
User 1106097926-Mar-17 8:44 

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.