Category Archives: Code

Last Minute!

I submitted my project on Friday which I am extremely pleased about! However, on the Thursday the day before, I had realised my upload file button hadn’t yet been coded to enable the uploading of PDF and video files. This … Continue reading

Posted in Code, Improvements, Issues | Leave a comment

Browser Compatibility

I have been testing MEDIA LINK on Google Chrome throughout the year and have just opened the website in Firefox and some aspects of the design are incorrectly placed! Admittedly, I should have checked this earlier on in the year, … Continue reading

Posted in Code, Design, Issues | Leave a comment

‘Setting Featured Work’ Function

<?php session_start(); if(!isset($_SESSION[‘session’])){ //if login in session is not set header(“Location: indexpage.php”); } require_once(‘homestart.php’); require_once(‘connectpage.php’); $userid = $_GET[‘userid’]; if(count($_POST[‘featured’]) <= 3){ $query = “UPDATE files set featuredwork = 0 where USERID = ‘$userid’”; mysqli_query($db_server, $query); foreach($_POST[‘featured’] as $selected){ $query1 = … Continue reading

Posted in Code | Leave a comment

No CAPTCHA reCAPTCHA

Recently I have implemented a Recaptcha box into my site, during the sign up page to protect my website against bots! When navigating to the Google Recaptcha page to register my site to use the Recaptcha API I noticed the … Continue reading

Posted in Code, Design, Improvements | Leave a comment

Portfolio Functionality

<!–UPLOAD A FILE–> <?php if( isset( $_POST) ) { // upload file if( $_FILES[‘file’][‘size’] > 0) { $origin = $_FILES[‘file’][‘tmp_name’]; $destination = ‘files/’.$_FILES[‘file’][‘name’]; $file = move_uploaded_file($origin,$destination); // insert into database $user_id = $_GET[‘user’]; $file_title = $_POST[‘title’]; $file_path = $_FILES[‘file’][‘name’]; $uploaded_date … Continue reading

Posted in Code | Leave a comment

Encrypting Passwords

Today I have encrypted the passwords of my site. On reflection, I should have done this at the very beginning of the project, not only for security reasons, but also for convenience. I was unaware that once a users profile … Continue reading

Posted in Code, Improvements, Issues | Leave a comment

Meltdown!

I felt it was appropriate to name this blog post: “Meltdown!” because that is what I have experienced this week! I have had some huge problems using the Foundation CSS framework. Originally, I had thought that I could use Foundation … Continue reading

Posted in Code, Design, Improvements, Issues, Supervisor Meeting | Leave a comment