Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
~2K People Reached
Favorite Forums
Favorite Tags
Member Avatar for Marco_4

Hello, how can I improve this form login with error alerts? For example, if the fields are empty, if entered data do not match any user, etc. etc. Right now my form is so, taking advantage of a class: if(isset($_POST['login'])){ //Retrieve the field values from our login form. $username = …

Member Avatar for diafol
0
391
Member Avatar for Marco_4

Hello, how can I extend the login session in my class? public function login($username, $password){ $this->db->query("SELECT * FROM users WHERE username = :username LIMIT 1"); $this->db->bind(':username', $username); $row = $this->db->single(); $count = $this->db->rowCount(); if ($count > 0) { if (password_verify($password, $row['password'])) { $_SESSION['session'] = array( 'id' => $row['id'], 'username' => …

0
110
Member Avatar for Marco_4

Hello, I ask information to you that you are much more experienced than me that I am learning. I would like to create an administrative panel with the only possibility to be logged in to the admin. Your wisest thing which is to carry out safely login? Let me explain, …

Member Avatar for Marco_4
0
287
Member Avatar for Marco_4

Hello, I'm using a function for uploading images on the server and database. The only problem is that I can not properly put to the various alerts for required fields or missing and with happened insertion message. For the moment my code, obviously wrong, is so: include_once 'function/upload.php'; if(isset($_POST['submit'])) { …

Member Avatar for TexWiller
0
165
Member Avatar for Marco_4

Hello, I'm having trouble uploading all the various data to the database, can you help? The code is this, I have done some testing but the original image and thumbnail are loaded properly in the directory, but all the data are not passed to the database. What is the correct …

Member Avatar for hericles
0
291
Member Avatar for Marco_4

Hello, just I ask for help because I can not find solution, despite my tests. How can I get the final image file should be alone **rand + original file name + extension** instead of the **rand + extension**. <?php // ************************************************************************* // **** Setup the variables for your script …

Member Avatar for pixelsoul
0
241
Member Avatar for Marco_4

Hello, simple information. I was creating the connection to the database files with various functions, such as: "Get One, getAll". I wondered if their syntax was safe against sql attacks, though in fact could be improved with the inclusion of the bind, but do not know how to make them …

Member Avatar for cereal
0
179
Member Avatar for Marco_4

Hello, kindly ask your help regarding a function to upload images in two folders, one original image and the "Thumb" folder for thumbnails. Well, I entered the rand code to rename the file name. Loading is performed properly in the root folder (Original image) but not in the thumb folder. …

Member Avatar for AleMonteiro
0
199
Member Avatar for Marco_4

Hello, I ask your help in order to use this class. I need your explicit example is the code and form to use it properly. http://www.phpclasses.org/package/9683-PHP-Validate-and-add-watermark-to-uploaded-image-files.html#view_files $upload = new ImageOperations(); ext and the correct form. Thank you in advance for your help.

Member Avatar for rubberman
0
146