2
votes
2answers
3k views

Chat with PHP, MySql, Ajax: How to improve it?

I made this simple chat in php. You have suggestions on how I can improve it? This file configures the connection to the server This file is a simple form "login" ( only username required ) ...
2
votes
1answer
315 views

How should I re-factor this code?

In my system there are 3 main functionalists. Add users to database Delete users from database Updater users This is the screenshot in my UI When clicking on the button of add new user, ...
1
vote
2answers
198 views

Assist cleaning up messy HTML/PHP code

I really hate messy code, but I seem to be rolling in it. I just want to see if anyone has some helpful advice on how to tidy this up. ...
5
votes
1answer
2k views

Create a table from MySQL using PHP PDO

I am trying to simply present a table in HTML that is stored in a MySQL database. I would like to use Object Oriented PHP to access and fetch the data for the table. I have spent some time learning ...
-2
votes
1answer
115 views

Optimisation for random generator code in PHP [closed]

I'm really confused about combining MySQL queries and please could you lend me a hand? Please explain in simple English. The code is: ...
2
votes
1answer
88 views

I've embedded several PHP/HTML/Javascript in one page. How can I improve on the efficiency/performance?

Just a quick preface, I'm not a web developer. I'm simply doing this as a favor for a friend. My goal is to be done with it as quickly as possible, but still not have the coding be horrendous. With ...
1
vote
1answer
115 views

<select> has extra blank <option>'s and I have no idea why. please help me get them out [closed]

This is the result of the code it has extra option tags no idea why. I have no idea why It produces the extra option box. Below is the result of the query. Correct number of rows correct ...