Form for user’s input Login action page: Connection with database Retrieve user’s input Select a record from user’s table with same email and password Count the number of row in result If one row is selected then fetch its values and store in session variable, otherwise send an error message on main page
28 trang | Chia sẻ: dntpro1256 | Ngày: 23/11/2020 | Lượt xem: 1122 | Lượt tải: 0
FILES super global variable File uploading in PHP Storing reference of uploaded file in database User registration in CONNECTIONS web application with file upload
29 trang | Chia sẻ: dntpro1256 | Ngày: 23/11/2020 | Lượt xem: 921 | Lượt tải: 0
Create database Database name: connections Table name: users Table columns: user_Id int 4 User_Name text 25 User_Email varchar 35 User_Password varchar 20 User_Picture varchar 50
20 trang | Chia sẻ: dntpro1256 | Ngày: 23/11/2020 | Lượt xem: 1041 | Lượt tải: 0
strpos(): finds the position of the first case-sensitive occurrence of a substring in a string strpos($string,sub-string); strrpos(): finds the position of the last case-sensitive occurrence of a substring in a string strrpos($string,sub-string); substr_count(): returns the number of times one string occurs within another substr_count($stri...
30 trang | Chia sẻ: dntpro1256 | Ngày: 23/11/2020 | Lượt xem: 923 | Lượt tải: 0
session_start()- is used to start a session $_SESSION[‘variable_name’]- is used to store data in session variable session_destroy()- is used to destroy a session unset($_SESSION[‘variable_name’])- is used to unset a specific variable
35 trang | Chia sẻ: dntpro1256 | Ngày: 23/11/2020 | Lượt xem: 898 | Lượt tải: 0
Associative arrays: $array-name[‘element-name’]=value $players[‘yousuf’]=“Muhammad Yousuf”; Adding element in an array: $players[‘younus’]=“Younus Khan”; Accessing element in an array: echo $players[‘yousuf’];
40 trang | Chia sẻ: dntpro1256 | Ngày: 23/11/2020 | Lượt xem: 1002 | Lượt tải: 0
Chapter 2, “Beginning PHP6,Apache,Mysql web development” by Matt Doyle, Wrox publishers, 2009, ISBN: 0470413964 Chapter 3, “Beginning PHP and MySQL” by W. Jason Gilmore, Apress publisher, 4th edition; 2010, ISBN-13 (electronic): 978-1-4302-3115-8.
32 trang | Chia sẻ: dntpro1256 | Ngày: 23/11/2020 | Lượt xem: 877 | Lượt tải: 0
Rắn gồm đốt đầu và các đốt thân Khi di chuyển, các đốt thân có thể nằm ngang hoặc dọc Vậy cần ít nhất 3 ảnh Đầu Thân ngang Thân dọc
66 trang | Chia sẻ: dntpro1256 | Ngày: 23/11/2020 | Lượt xem: 983 | Lượt tải: 0
Sử dụng map thay cho vector để lưu số lần đoán sai mỗi từ
map
52 trang | Chia sẻ: dntpro1256 | Ngày: 23/11/2020 | Lượt xem: 1108 | Lượt tải: 0
Có bỏ phần getVowelGuess() được không ? Xử lý trường hợp từ cần đoán không có trong từ vựng, tức là filteredWordList.size() == 0 Kết thúc 1 ván chơi, hỏi có muốn chơi tiếp ? Cho chơi tiếp nếu người chơi đồng ý. Nếu không đoán được từ (guess == 0) hoặc thua cuộc, hỏi từ của người chơi rồi thêm vào vốn từ vựng và ghi xuống file (giúp lần chơi sau...
54 trang | Chia sẻ: dntpro1256 | Ngày: 23/11/2020 | Lượt xem: 970 | Lượt tải: 0