15,891,431 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by Member 14024497 (Top 3 by date)
Member 14024497
18-Oct-18 12:56pm
View
yeah i think that was the issue for all this
i delete that line and now this shows
Optional("{\"Email\":\"jose.luar.1111@hotmail.com\",\"Password\":\"hi123\"}\r\n\r\n\r\n")
No `status` in result
Member 14024497
18-Oct-18 12:09pm
View
yeah php code already fix
but still getting same error it's so frustrating can't find the answer any place
<?php
session_start();
error_reporting(0);
echo '<meta charset="UTF-8">';
$host_db = "hehe";
$user_db = ":D";
$pass_db = "D:";
$db_name = "=DDD";
$conexion = new mysqli($host_db, $user_db, $pass_db, $db_name);
if ($conexion->connect_error) {
die("La conexion falló: " . $conexion->connect_error);
}
$sql = "SELECT * FROM Usuarios where Correo = '".$_POST['Email']."' and Password = '".$_POST['Password']."'";
$result = $conexion->query($sql);
if ($result->num_rows > 0) {
$row = mysqli_fetch_array($result);
$response['Email'] = $row['Correo'];
$response['Password'] = $row['Password'];
}
else
{
$response['Email'] = 'Error';
$response['Password'] = 'Error';
}
echo json_encode($response);
mysqli_close($conexion);
?>
Member 14024497
18-Oct-18 11:38am
View
can you be more specific?
the data is being sent to a URL which is linked to my PHP code
i'm consulting the data from xcode using json
let myURL = URL(string: "hehe")