Jump to content
Stef's Coding Community

All Activity

This stream auto-updates

  1. Today
  2. RichardE


    Why doesn't Python create something that would combine the Python shell and the py file ?
  3. Yesterday
  4. Hmm I see But when I try to change the columns to varchar(should it be something else?), then it is not possible to change the primary column. Because then I get an error-box that says: #1063 - Incorrect column specifier for column 'name'. I can only change the other column it seems. So after I changed this column to varchar I now get another type of error. Which says: "Static analysis: 1 errors were found during analysis. Ending quote ' was expected. (near "" at position 44) SQL query: Copy INSERT INTO people (name) VALUES ('Stefan
  5. Hello im getting this error: Fatal error: Uncaught Error: Call to a member function prepare() on null in D:\wamp\www\shop\app\models\m_categories.php on line 35 here is my code for m_categories.php <?php /* Categories Handles all tasks related to retrieving and displaying categories */ class Categories { private $Database; private $db_table='categories'; function __construct() { global $Database; $this->Database=$Database; } /* Settting/Getting categories from database */ /** * Return an array with cat
  6. Last week
  7. Sounds like you set that field to be of the datatype INT, so when you try to insert a string datatype, you will get that error. Makes sense? Stef
  8. It's good you asked as there had been something I couldn't quite put my finger on. I like the overall style and the footer is fine, but after a bright clear start with "Hi there, I'm Ryan Van Dyke" it's black all the way to the footer. It's too much darkness. I think keeping an eye on the times we live in is a good idea, and there's a lot of darkness and uncertainty in the air right now, and a lighter tone without being in your face might help to lift the mood. And you've almost got that. Context is important. I remember the old wild west days of the internet when black websites wer
  9. Hi :) So I am doing the PHP and MySQL-course in the studioweb-course. And I am using Xampp on a Mac, so the fields in my SQL version does not look exactly like they do in the video. I am currently at the video "PHPMyAdmin and Basic MySQL: part 2". When I write in the value of " INSERT INTO people (name) VALUES ('Stefan’); " around 2.55 into the video, I get the message: " INSERT INTO people (name) VALUES ('Stefan’); #1366 - Incorrect integer value: 'Stefan' for column `DATABAS2`.`people`.`name` at row 1 ". Any idea on what that means and how to solve it? And w
  10. Question: do you think the coloring looks good overall? Or should change the footer color as shown here? Or does it look fine as gray like it is now? Also , do you think the images and element spacing look fine overall? thanks!
  11. I wouldn't change anything, you're well on the way, just set it up to link to your email the way you want it to. What I wouldn't do is put "email me." "Me" is such an overused word, it makes me think of a youtuber desperate for subscriptions, but maybe that's just me. "Get in touch" is open and friendly and works well enough, stick with it. And your email and phone number is good and prominent in the footer too. Edit: I forgot to say watch your spelling/typing, it's probably a typo but in the projects section writing only has one "t", first impression and all that.
  12. Thanks for the kind review! Helped a lot. I think I may just do a form and validate it with JS at the end of the page. But , like you said, it doesn't leave a traceable message. I tried to make the contact button as easy as possible to press and link to my email immediately. Maybe I should put "Email Me" for the button so the user knows what to open it with.What would you suggest? Also, in the footer it contains my phone number and email address.
  13. I like it. It's clean and sharp and the nav bar is ever present, which isn't always the case. Is the contact button unfinished? If not maybe reconsider the pop up asking how you'd like to open this. Personally how easily accessible a website makes it to contact them can be a deal breaker for me. If you go with a contact form to fill in with enquiries/comments I'd also leave your contact email easily visible too. Again it's a personal preference but I prefer to copy an email address and send from my own email account as forms usually leave no trace of when a message was sent leaving you to
  14. Hey all, here is my portfolio site (http://greenlightcoding.net/#main) . I am going to add my projects soon. What do you think so far?
  15. Hi, You need to add the identifier attributes to your form elements so your PHP code can capture the form data people enter. Example: <input type="text" id="nameFirst" name="nameFirst"> PHP needs the ID attribute for each form element that captures info. Please refer to the PHP course.
  16. Since mLab and heroku do't work together anymore, I have been having excessive difficulty in learning the new procedures of deploying web applications. It has been this one obstacle that has prevented me from being able to focus mainly on the coding and more so on how to get deploying webapps to a free hosting platform so then I can have example projects inserted on a rebuilt portfolio|personal site. So that I would have showcase examples for employers and as well as clients for freelancing. My issue with deployment t this time is that when following the steps in the documentation for migra
  17. Thank's for the reply, I fixed the original error but now I have another one. After I login into the admin page the editable fields do not show up.
  18. Hey guys! So far my website is looking great! Just trying to get this contact form to function. Wondering if everything lines up: HTML code: <!--contact-form-------------------> <section id="contact-form"> <form> <!--left---------------------------------------> <div class="contact-left"> <h1 class="c-l-heading"><font style="border-bottom: 3px solid #1ED98B;">Writ</font>e Me</h1> <!--name--------> <div class="f-name"> <font >Name</font> <input type="te
  19. So, about the time when covid-19 started it's mean streak, I decided to pursue my goal of a career change, from pre-school teacher to a full-fledged nerd. Through my life I've been a nerd in hiding so to speak, so I figured out, hey! let's give coding a chance! I found udemy.com and started a masterclass in Java... just to bite off more than I could chew. I followed along the course, to about 60% completion before I realized: I'm following blindly, trying to learn something new, but I'm really not learning "anything". I also realized that the tutor had mad skills when it came to Java, but wasn
  20. Hello, I've been doing the "lets build a CMS with MVC" tutorial in Stefan's web design course. and ran into a problem. Basically, the CMS doesn't want to open a login form, all though I've been following the tutorial pretty closely. Idk how this forum works. So I am attaching a couple of links. Here's the problematic code from a post on Code Project: https://www.codeproject.com/Questions/5286592/Call-to-a-member-function-load-on-null-when-trying And a link to a github repo with my code: https://github.com/DmitrijusKazakovas/CMS Thank you for the help.
  21. Hey all, Starting up my website. Wondering what is the best hosting company. Anyone have any suggestions? many thanks
  22. Hi Stefan, Thanks for replying. "He"? Is that a typo? I still don't understand.
  23. Earlier
  24. This is done easily with include statements which all server side programming languages will support. You can do this most easily with PHP. Check out my PHP course: https://school.studioweb.com/store/course/php_7_foundations
  25. Hey guys, Making my own site right now. Wondering how to insert a scroll bar into my site. Thanks !
  26. Hello everyone, I'm new here and this is my first post. I've a question for this vibrant and smart community: I’d like to be able to create what some people call a template engine. This allows you to change the text in the footer or the navigation for example and the change you make in one file will affect all the HTML pages. Which language is best to learn to achieve this? I've a fairly good knowledge of HTML and CSS and can create simple, yet responsive, static pages using HTML5 and CSS3. However, I know nothing about JavaScript, PHP, Python or the other languages out there. I appr
  1. Load more activity
  • Create New...