• Welcome to MX Bikes Official Forum. Please login or sign up.
 
April 19, 2024, 11:26:56 AM

News:

MX Bikes beta18j available! :)


Programming/designing

Started by Ruubs, August 14, 2016, 12:18:40 AM

Previous topic - Next topic

Ruubs

I know there are a lot of programmers/designers in this community. In this topic you can post anything you want. A work in progress website, game, graphics kits, logos, everything related to programming/designing. I'll start.

I'm an interactive media designer student at the moment. Going onto my 3rd year of this study after the holidays, and I love it a lot! We mainly learn to design and program websites. Front-end to be exact. We also learn how to design posters, logos and we learn back-end development. I'm more of a developer (programmer) kind of guy than a designer, but I love both. I love learning new stuff and just figuring things out.

In these 8 weeks holidays I've done some programming as well. Not a whole lot, since I'm going to the gym as well, I have friends and I like to make content for both Mx Bikes and Mx Simulator. I've had a lot of problems with my code and my brain for some weeks now though. But I finally figured half of it out today!

The last months I've been working on something big for Mx Simulator racing. I've also started working on a new portfolio website. My new portfolio website will mainly exist of SVG drawings and a lot of small, fun interactive animations.

This is my prototype so far. Be sure to watch it on your desktop. The website is not responsive yet, so it won't work correctly on your phone.
http://www.rubenkuilder.com/portfolio/
I know it isn't much yet. But you get the idea.

My 'old' portfolio is http://www.rubenkuilder.com. This is the latest project from school before holidays. I never liked the design, and I always wanted to start over again. But we have deadlines, and I needed to finish it in time. I tried to achieve something different than everyone else. That led me to make a diagonal composition. Nothing here are images, except for the logo, project and footer images. All the diagonal blocks are regular divs. The website is made for wordpress, so adding new content is very very easy! I don't have to go into the code and add other divs and style everything again. I can just log in to wordpress and make a new post in the right category. It was a pain to make this website responsive, but it is! Again, I'm not happy with the result. This isn't something I'm proud of, I just wanted to show you guys something of my work.

Ruubs

Does anyone know if it's possible to make an IF statement in a WHILE statement in PHP? It should work for as far as I know but it doesn't work for some reason.

I want to make a CMS page. That page will be my normal index page, but with delete buttons to delete posts from the database.
I want to get the CMS page and the index page in one page (the index page). Therefore I have to check if the admin is logged in or not. If the admin is logged in I echo a div with the class 'deleteKnop' inside the other echo containing the whole post div.

Here's the code:
$stmt = $conn->prepare('SELECT * FROM berichten ORDER BY id DESC');
$stmt->execute();
while($row = $stmt->fetch(PDO::FETCH_ASSOC)) {
    echo "<div class='work'>";
    if (isset($_SESSION['loggedin']) && $_SESSION['loggedin'] = true){
        "<div class='deleteKnop'></div>"
    }
        echo "<div class='overlay'></div><img src='".$row['image']."'><div class='workTitel'>".$row['titel']."</div><div class='workText'>".$row['text']."</div><div class='arrow arrowRotated'><i class='fa fa-angle-up'></i></div></div>";
}
if (isset($_SESSION['loggedin']) && $_SESSION['loggedin'] = true){
    echo "logged in.";
}


phpcodechecker.com says:
PHP Syntax Check: Parse error: syntax error, unexpected '}' in your code on line 18
}

2tfanatic

I don't know if this is the right place to ask haha :D

Ruubs

November 18, 2016, 08:15:39 PM #3 Last Edit: November 25, 2016, 01:14:29 PM by Sandbiter
Quote from: Rhyveeo on November 18, 2016, 04:18:59 PM
I don't know if this is the right place to ask haha :D
Haha don't think either!

Luckly I figured it all out though. I had some syntax errors.



Reactive

Why not, next game for Piboso may be