Kevin Powell - Community

KPC

Kevin Powell - Community

A friendly place for developers to meet other devs, ask questions, get help, and just have a good time 🙂.

Join Server
M$MucaUnejsi12/12/2023

In Search of MySQL Workbench Projects with ER-Diagrams for Upcoming Presentation

Esteemed colleagues, I trust this message finds you well. I am reaching out with a specific request for assistance that pertains to my upcoming presentation. I am currently in search of valuable resources related to MySQL Workbench projects, particularly those accompanied by ER-diagrams. If any of you could kindly guide me towards videos, links, or readily available projects that align with this requirement, I would be immensely grateful. The information will play a crucial role in enhancing the content of my presentation, scheduled just a few days from now....
QQWGames ™12/12/2023

Headers already sent error PHP form

Why this form is causing "headers already sent error": ```html <div class="form-container upload"> <form class="default-form upload" action="upload-game" method="post" enctype="multipart/form-data"> <label for="title">Title: </label>...
DDanKaplanSES12/12/2023

Is there a way to reinitialize jQuery?

I'm trying to get some help on this stackoverflow question I wrote: https://stackoverflow.com/questions/77602661/is-there-a-way-to-reinitialize-jquery To summarize: I'm using JSDOM to load my webapp and my webapp uses jQuery. JQuery holds onto references of the current global window/window.document (this is an oversimplification and full details are in the question) once jquery is initialized. This prevents me from running tests that use different HTML and that is highly restrictive. I'm looking for a way to reinitialize jQuery in my test code so that I can use a different document per test. Is there a way to do this without modifying my production code that already import jQuery from 'jquery's? PS: Is this question more suitable for #front-end ? IMO, it's kind of both....
DDimitriUI12/11/2023

Should i learn PHP or ASP?

I started learning recently html, css and javascript basic stuff. I want now to start learning back end and try make an ecommerce site. I tryed PHP but i found it extremely hard and messy. The syntax i hate it, also is annoying with filtering variables to not run scripts inside and security. I managed to insert and read data into MySql database, but to make login, logout and session it kills my brain. I saw ASP.net and seems way much cleaner and easier to use. Should i let go PHP and go for ASP.net? What you recomand for a newbie in web development?...
RRiαnẍα12/10/2023

include not working

I don't get it 😦 I'm using include for every page to get my server and my header. But on one reason doesn't work on this page… ```php...
SSantos.12/9/2023

Laravel

Hi people, I am a student of web development and recently I have invested a little more in my github and I follow a lot of the content of kevin and it is simply amazing, after some work on front-end I liked to create my first full-stack project that would be a kind of wine warehouse with database etc, in my course I have some knowledge with mySQL, PHP, but I would like to use this project laravel any of you have some council/ youtube channel etc who advises me where I can learn more about larava...
No description
E13eck12/7/2023

SQL Table Definition

I'm trying to make a database for a TTRPG (Fate, if you're wondering and am trying to figure out how to handle one specific part of the database. Fate characters have both stress (plot armour) and consequences (long-term harm). My issue is that stress is a numeric (a character has X number of stress boxes) and consequences are textual (it's a short phrase describing the injury). I currently am thinking that I need 2 tables: one for stress and one for consequences (as their enherit datatypes are different) but is there a way to have one "vitals" table (the term used on the character sheet for both stress and consequences) so I don't need to do too many joins (I already have a table for skills, aspects, stunts, and basic character stuff like name, etc)....
ZZomaTheMasterOfDisaster12/7/2023

Prevent spamming of api calls when Refresh is pressed or back + forward continuously

What I need to do is store the user's results of the first call and then either cache or localstorage / sessionstorage so when the user presses the buttons mentioned above, the page will load that data instead of doing multiple calls. I also need a timer to do another call after an hour to update for any weather changes. Any ideas on this?
Nnick1112/6/2023

mongodb

Just want to ask some question , can we implement all the basic features of an e commerce delivery backend just via mongodb queries and aggregation pipeline ( db is mongo) , just asking coz i am facing difficulties in aggregation pipeline.
WWitcher12/6/2023

how to publish asp.net project with sql server to godaddy

how can i publish asp.net project that is connected with sql server on godaddy so that database functionality and operations work perfectly.
Eelhanan12/5/2023

Mastercard mpgs integration with wordpress donation website

Hello friends, I am having really hard time with integrating my donate button on my wordpress template with mastercard mpgs, so that any user can donate using mastercard API. Can someone please give me a hint?...
Llazzzer.12/5/2023

Jest for testing?

What are your thoughts? I guess it is good because it is what you use whit React as a default. Exicited to hear what you have to say.!...
FFurki4_412/5/2023

Need Help for Database Structure

Hi folks! I'm building an Online Turkish Dictionary where I want users can contribute to the dictionary by adding, editing and maybe removing the words, meanings, pronunciations and so on. (using t3-create-app, app dir with drizzle and postgres) You can see the initial ER Diagram in the first picture. ...
No description
Kkingtigerknight12/5/2023

How to deploy your website without other users getting into your database user and password file?

Lets say I want to deploy a folder into github and it's connected to a database and I name it a file called db.php. Is there a way to make it so that when I upload this to GitHub, I can still connect to the database but other people cannot find the file? Dose the gitignore file dose that? I never thought about it until now....
MMatt12/4/2023

Setting up server (Webdock.io)

Hello, I purchased a server from WebDock.IO to host a website I built. I followed this documentation (https://webdock.io/en/docs/webdock-control-panel/shell-users-and-sudo/using-putty-connect-your-webdock-server). Generated Public / Private key with Putty Gen. Added public key to a user. Then logged in with Putty. But once I type in the username, it prompts (see pic)...
No description
JJonathan12/2/2023

Needing to add security to my website

I am needing to know how to add security to my website. Can someone help?
JJonathan11/29/2023

I am curious as to why I am getting an 404 error with my contact page.

I am using .php and html. here are two screenshots. I am needing help with this. Am I missing something? If you need me to clarify anything let me know....
No description
HHHammad Hamdani11/29/2023

How to create Custom Project Templates in Webstrom IDE

Hi Devs! If anyone of you is using Webstrom IDE than you must know that it provides project templates for React, Vue, Express etc and we can create projects from these. Can anyone guide me on how to I can create custom Project Templates like that?...
Tthethingisback11/29/2023

PHP Type Coercion with echo(), data-type of output. Is my example correct?

I have some examples in the attachment picture here, and I just want to confirm that the data types that I think I'm 'coercing' into are actually correct. For example, echo(string) true returns 1. Here, I think that means that the returned 1 is a string data-type, and that it's a string data-type because of my 'string' argument. Whereas, for another example, echo(int) 3.14 <-- here I'm coercing a float into an integer. So when this returns a 3, I can assume that the 3 is an integer correct? Because I used the 'int' argument, right? ...
No description