Hi Every Body
Any one tell me how i add login form and database in my site <URL SNIPPED> PLz Tell me

Dani AI

Generated

A concise plan that answers both the login/database question and the theming request in this thread.

For : implement a real login flow rather than storing plaintext or using old mysql_* calls. Typical steps: collect credentials with a POST form, look up the user with a prepared statement, verify the password with password_verify, then set a session and call session_regenerate_id. Use PDO (prepared statements) and PHP password functions for safety. Recommended docs: PDO (PHP) and password_hash / password_verify. Keep your users table minimal but useful: an id, username/email (unique), password_hash, timestamps, role and active flags.

Security checklist (apply before going live): require HTTPS, use CSRF tokens on forms, set session cookies with Secure and HttpOnly flags, limit login attempts / add throttling, escape output with htmlspecialchars to avoid XSS, and log failed attempts. OWASP’s authentication guidance is a good reference: OWASP Authentication Cheat Sheet. Also review PHP session security tips at .

For (dynamic look-and-feel): store only validated preferences (a theme_id or a small set of sanitized properties such as hex colors and approved font names). Apply them with CSS custom properties or by switching a small number of prebuilt theme stylesheets—avoid letting users submit arbitrary CSS. CSS variables are a practical, performant approach: see Using CSS custom properties (MDN). Validate color inputs server-side (simple regex for hex) and cache generated CSS to reduce load.

Quick troubleshooting tips: enable PDO exceptions during development, inspect server error logs for DB/permission issues, and test login flows with a staging HTTPS site before deploying. As noted, starter scripts help—harden any example code with the points above.

Recommended Answers

All 2 Replies

A script that I found to get me started with my sites can be found at

I did do several changes to my sites to make them a little more secure than this script offers, but it was a great start.

Hi Everybody,
I'm new in this forum, I'm a PHP developer looking for good solutions for changing colors, fonts, styles of a site on the fly. The idea is, the user will be given options to customize his/her web site's font, color of various elements etc. and then the site will be built accordingly. The look and feel will vary based on the user.

Can anyone give me a good solution how this can be done in a very efficient way.

Regards,
Sayaan

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.