--
You received this message because you are subscribed to the Google Groups "Flutter Development (flutter-dev)" group.
To unsubscribe from this group and stop receiving emails from it, send an email to flutter-dev...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/flutter-dev/6f4d4ed0-080b-4415-9eeb-9c0c0c5280b1o%40googlegroups.com.
I felt that you know what to do. Match student’s level (SQFLite) when fetching questions in MySQL.What is the challenge for you?
On Sat, Aug 8, 2020 at 07:26 Mohamed Yanis <mmoham...@gmail.com> wrote:
Hello,I have a backend server i.e. I have an external MySQL database (localhost) that contains a "questions" table characterized by their level (Easy, Medium, Hard) and their class(1st class, 2nd class, 3rd class).I have an internal database (SQFLite) that contains a "students" table with level and class attributes that contain in the external MySQL database.I want to post only the questions that correspond to the level and class of the student that is already added in the internal database "SQFLite".I posted all the questions in the JSON form but did not match the level and class of the student currently added, But I want when I add a new student with their level and class in the internal database"SQFLite", the questions that are displayed must be matched to that of the student.--
You received this message because you are subscribed to the Google Groups "Flutter Development (flutter-dev)" group.
To unsubscribe from this group and stop receiving emails from it, send an email to flutt...@googlegroups.com.
I want to post only the questions that correspond to the level and class of the student that is already added in the internal database "SQFLite".
I posted all the questions in the JSON form but did not match the level and class of the student(Displaying all questions), But I want when I add a new student with their level and class in the internal database"SQFLite", the questions that are displayed must be matched to that of the student.
--
You received this message because you are subscribed to the Google Groups "Flutter Development (flutter-dev)" group.
To unsubscribe from this group and stop receiving emails from it, send an email to flutter-dev...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/flutter-dev/fe48074f-0f7a-4a01-ad05-56e13c3f604bo%40googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to flutt...@googlegroups.com.
I want to post only the questions that correspond to the level and class of the student that is already added in the internal database "SQFLite".
I posted all the questions in the JSON form but did not match the level and class of the student(Displaying all questions), But I want when I add a new student with their level and class in the internal database"SQFLite", the questions that are displayed must be matched to that of the student.
Le samedi 8 août 2020 13:26:16 UTC+2, Mohamed Yanis a écrit :
--
You received this message because you are subscribed to the Google Groups "Flutter Development (flutter-dev)" group.
To unsubscribe from this group and stop receiving emails from it, send an email to flutter-dev...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to flutt...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to flutter-dev...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/flutter-dev/c4260c70-ff83-41bb-be48-c58d7039e540o%40googlegroups.com.
Hi Suzuki ,It's good I already did but the problem is not there,the problem is how to synchronize between the data of the student (their level, their class) "SQFLite" and the data of Mysql ( level, class)
Please, Why and How to send QFlite data to the Mysql server?
I used it, can you consult this link : https://stackoverflow.com/questions/63318698/how-to-match-student-s-level-student-s-class-sqflite-when-fetching-questions-i
But, I want to get data (questions) from MySQL database Not Post it!
unfortunately, I did not understand, and I do not know how to do it?
Hi, Suzukithe user is a student. who must complete the form on the mobile app (SQFLite) which contains their name, level, and class.As soon as it is added, only the questions (Get it from MySQL) that correspond to their level should be displayed and their class is not the questions of all levels .I edited the code in StackoverflowTHE PROBLEM :display of all questions of all levels and classes without depending on the student added.
do we specify a parameter for the level like this :
getMethod()async{
String theUrl = 'http://10.0.2.2/Try/Try.php/?idlevel';
var res = await http.get(Uri.encodeFull(theUrl),headers:{"Accept":"application/json"});
var responsBody = json.decode(res.body);
return responsBody;
}if the parameter specification for the level is not like this tell me how to do it?
my PHP code is working normally.
But it still displays all questions and does not display questions that match the level and class of the student.what do I have to do?
I modified my request in the PHP code to this one:
"SELECT * FROM questions where level =? & class=?"
instead of :
"SELECT * FROM questions",but there remains the same problem "display all questions"?
Hi, Is the problem in requesting PHP code? if yes tell me what should I change ?
I did, but it didn't work
here is the request which we write in the PHP file: "SELECT * FROM questions where level=?"Is there a change in the query?
Hi Suzuki,Please, Can you correct my query?
"SELECT * FROM questions where level=?"