Search found 88 matches

by Mr. MacKenty
22 May 2019, 09:05
Forum: Designing Solutions Through Programming
Topic: Identifying Javascript
Replies: 1
Views: 188

Re: Identifying Javascript

In general, anything wrapped in a script tag is javascript. Javascript can alter CSS. In the code snippet you provided below, it looks like clicking on a button shows a div with an id called "myDropDown". Is the section below javascript or simply a css element? <script> document.getElementById("myBt...
by Mr. MacKenty
08 May 2019, 09:18
Forum: Designing Solutions Through Programming
Topic: Adding image through forms
Replies: 1
Views: 178

Re: Adding image through forms

Hello :-)

What a cool idea!

This is a bit tricky, but if you carefully the instructions at the following 2 files, you'll be off to a good start:

1. upload.php
2. upload_process.php
by Mr. MacKenty
08 May 2019, 08:56
Forum: Designing Solutions Through Programming
Topic: Destroying a session PHP
Replies: 1
Views: 168

Re: Destroying a session PHP

Please use this: <?php // This file logs out a user. // in order to destroy a session we must first open one! // this page will redirect a user to index.php after loggin out. // This file should be named logout.php session_start(); if (isset($_SESSION['unique_id_of_logged_in_user'])) { $unique_id_of...
by Mr. MacKenty
10 Apr 2019, 08:10
Forum: Designing Solutions Through Programming
Topic: Please post your question here
Replies: 4
Views: 592

Re: Please post your question here

In general when we link from one page to another, we want to use an a tag. A few examples and links are below:

Code: Select all

<a href="https://www.cnn.com">Click here to go to cnn.com</a>
A link with further information can be found by clicking here.
by Mr. MacKenty
05 Apr 2019, 09:54
Forum: Designing Solutions Through Programming
Topic: Please post your question here
Replies: 4
Views: 592

Re: Please post your question here

It looks like you have a apostrophe instead of a back-tick after event_date. event date should look like this: `event_date` but right now it looks like this: `event_date' $result = mysqli_query($connect, "INSERT INTO `events` (`title`, `event_text`, `event_start`, `event_end`, `event_time_start`, `e...
by Mr. MacKenty
02 Apr 2019, 17:57
Forum: Designing Solutions Through Programming
Topic: MYSQL
Replies: 1
Views: 161

Re: MYSQL

wow. So if the user DOESN'T choose an option, you want the choice to be none. Is that right? I think you can test, using php, if the value is empty. If the value IS empty, then you can assign a wildcard character, which would select ANY restaurant of that type. For example, Let's say I ONLY choose a...
by Mr. MacKenty
02 Apr 2019, 09:35
Forum: Other programming languages
Topic: I don't understand this snippet
Replies: 0
Views: 146

I don't understand this snippet

I don't understand how this works, can you please help me?

Code: Select all

        var index = board.indexOf(square);
        if (index > -1) {
            board.splice(index, 1);
        }
by Mr. MacKenty
01 Apr 2019, 20:22
Forum: Solving complex problems through programming
Topic: VSC
Replies: 1
Views: 187

Re: VSC

Hello Tony,

If you downloaded it onto a Mac, make sure that visual studio code is in your applications folder, and not your desktop or download folder.

Please let me know if this helps.

Warmly,

Mr. MacKenty