Skip to content

A short library to make creating user profiles in MySQL easy.

Notifications You must be signed in to change notification settings

StickmanNinja/MySQL-User-Library

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MySQL User Library

I created this library to make building user profiles easier with PHP and MySQL.

How to start:

First, you need to install Medoo framework using composer into your local (or global directory). Look up how to do that.

Basic table setup.

<?php
	
  // These variables must be set before requiring UserLibrary.php for the library to work.
	$databasename = "DataBase";                			         
	$ipaddress = "192.168.1.1";                                  
	$username = "User";                                         
	$password = "password";                                 			
	$usertablename = "tablename";												           

	// Require file.
	require "UserLibrary.php";

	// This always needs to run to ensure that a table exists.
	CreateUserDataTable();
	
	// This adds a new column to the table;
	addUserTableColumn("messages", "text", "NOT NULL");

?>

You now have a table with columns for a username, password, and messages that you can reference later!

About

A short library to make creating user profiles in MySQL easy.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages