iOS & Android PHP MySql Login and Registration Tutorial | Shopping Cart eCommerce Flipkart Clone App
ฝัง
- เผยแพร่เมื่อ 8 ธ.ค. 2024
- This is the video tutorial# 20 of Flutter GetX Shopping App with Backend (flutter clothing app) in PHP MySQLi using Client Server Architecture with flutter getx advanced state management. HTTP Post send request & receive request and much more you will learn in this course.
A REST API (also known as RESTful API):
is an application programming interface (API or web API) that conforms to the constraints of REST architectural style and allows for interaction with RESTful web services. REST stands for representational state transfer and was created by computer scientist Roy Fielding.
Server Side:
PHP is a server-side, HTML-embedded scripting language that may be used to create dynamic Web pages. It is available for most operating systems and Web servers, and can access most common databases, including MySQL. PHP may be run as a separate program or compiled as a module for use with a Web server.
Third party APIs:
are APIs provided by third parties - generally companies such as Facebook, Twitter, or Google - to allow you to access their functionality via JavaScript and use it on your site. One of the most obvious examples is using mapping APIs to display custom maps on your pages.
client-server architecture:
client-server architecture, architecture of a computer network in which many clients (remote processors) request and receive service from a centralized server (host computer). Client computers provide an interface to allow a computer user to request services of the server and to display the results the server returns.
#flutter #getx #restapi #mysql #backend #php #webservice
Hello all, for those who are getting formatException(Unexpected character(character 1) error it may be because of the sql query defined in PHP file. I encountered this error because i was using mysqli_connection instead of mysqli_query. Changing to mysqli_query($con,$query) fixed the error.
for me it is still not fixed, do you have any solution?
but i am not using msqli_query still getting it
@@abubakarkamal1187 i just fixed it, i just reinstalled the vsc and retype the code in login.php and it runs.
@@kyleangela1053 still getting it
and what i did last debug it was deleting conn.php and adding in every file connect not using from another file as (include '../conn.php'), this gonna help just try it.
Sir i am buy your project from udemy help me sir one problem Format exception Unexpected character please help me sir
Thanks sir.
But it has an error accurred for me that is: formatException(Unexpected character(at line5, character 1)
What do u think about this error??
you have write something wrong in backend .php file. Please check.
@@CodingCafe I don't think sooo, bkz sometime it insert empty record on db.
And also from admin panel it works fine. And insert signup new users.
Just it shows error in application.
And
I have the source code. I literally copied and pasted his source code of all the PHP files until now. Still got the same error. What makes me even frustrated is his arrogant attitude. He doesn't think his code is wrong. I can send you guys the source code if you need.
@@yananmatthewxie revisa en tu php de signup o sino ve probando con mensajes de flutter hasta que llegues al punto donde te muestre el error y con eso puedes ver el lugar exacto donde se esta generando el error y poder solucionar
@@yananmatthewxie can i have the source code?
thank u sir
sir i have test my api in post man and there is no error in backend api but im getting formatException:unexpected character ( at character 1) please help to resolve this if u want me to help in this course
Do you have the solution to fix it?
solution?
@@rajeeell do you have the solution?
Working fine with me..
You used Android studio and VScode. Can i use Vscode for both?
thanks a lot
Hello i have also an error in valide_email.php file undefined index user_email how can I fix it?
I have the same problem and .. the same problem whit singup.php
do u have a solution for your problem?
@@adamouseydou8993 no but today i will try to find it
I can fix it. Please show me your code.
@@kyawthu3755 how
I have error but not showing what's the error. When I tap on the sign up button, there is not pop up or anything. Can someone help me with this error?
my register section why doesn't the notif appear below yes sir? guess what went wrong?
same here, did you fix it?
@@kyleangela1053 nope
@@Ichanyr btw i can run it properly It's my fault that I forgot on the signup_screen. dart file put validateUserEmail(); but yeah tnx for the reply :)))
@@kyleangela1053 I need a video of your problem
@@kyleangela1053 same have u a solution
Format exception: SyntaxError: unexpected token 'C', "Connection"...is not valid JSON
How to solve these error sir ?
look the replies at @isaqpasha394
error type 'String' is not a subtype of type 'int' of 'index'
Hm.... Error in Format Exception : syntax error is not valid JSON. because body : {'user_email': emailController.text.trim()} if i comment this, register successfully but my email validate not work.
How to solve?
FormatException: Unexpected character (at character 1)
did anyone solve this error?
Mee two bro
But it has an error accurred for me that is: formatException(Unexpected character(at line5, character 1) how can solved it, anyone help me please
you have write something wrong in backend .php file. Please check.
I have the source code. I literally copied and pasted his source code of all the PHP files until now. Still got the same error. What makes me even frustrated is his arrogant attitude. He doesn't think his code is wrong. I can send you guys the source code if you need.
@@yananmatthewxie mr. with due respect, why i will be arrogant with you. Please don't be rude. Error, simple indicates that you have problem in your backend php file. Instead of copy paste, please watch video step by step and you will learn and make your own fully functional app.
Or you can directly contact me instagram: alizeb438
@@yananmatthewxie Any solution?
❤
HOW TO FIX THE ERROR
next video plz
Hi sir
it has an error accurred for me that is: formatException(Unexpected character(at line5, character 1)
Is it working for you??
@@atena_ma412 same error me bro, how can solved this error, please help me
I don't know, if u solve it , plz share me
you have write something wrong in backend .php file. Please check.
@@CodingCafe there is nothing wrong 😑 maybe u forget to show us an important step so that is why most of the comments have the sammmmme error
Hi sir I am facing this error while validating the email means it runs a catch block while the status code is 200 it means it is hitting the api but there is somewhere formate is not correct please help me to get ride of this
FormatException: Unexpected character (at character 1)
I/flutter ( 7330):
I/flutter ( 7330): ^
It's done and ready to go....
How do you fix it bro?
@@toontalesanimation how did you fix the error?
How did u fix it😭
Do you have the solution to fix it?
my register button didnt work, and on my php validate have this error
Warning: Undefined array key "user_email" in C:\xampp\htdocs\aid_planner\user\validate_email.php on line 4
Fatal error: Uncaught mysqli_sql_exception: Unknown column '' in 'where clause' in C:\xampp\htdocs\aid_planner\user\validate_email.php:8 Stack trace: #0 C:\xampp\htdocs\aid_planner\user\validate_email.php(8): mysqli->query('SELECT * FROM s...') #1 {main} thrown in C:\xampp\htdocs\aid_planner\user\validate_email.php on line 8
Just Follow Ali's video carefully, even i got the same issue and I got rectified...
did you solve the first error i couldn't know why ?
excuse me sir i have a question in insta thank you
FormatException: Unexpected character (at character 1) did anyone solve this error ?
fixed , i had ( ) in validation email and not [ ] $userEmail = $_POST['user_email'];
Me