AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Off-Topic (https://forums.alliedmods.net/forumdisplay.php?f=15)
-   -   SQL table | How to create this file to SQL!! (https://forums.alliedmods.net/showthread.php?t=312414)

ultimatgold 12-02-2018 10:22

SQL table | How to create this file to SQL!!
 
Hi!
I forgot to save the SQL table, and reinstall webhosting. Unfortunately, only the one who reads from the SQL database has left but can not because unfortunately there is no.
This should make one .sql file:
PHP Code:

PREPARE("SELECT id FROM  `users` WHERE username = :username");
PREPARE("SELECT id FROM `users` WHERE megerosito = :megerosito");
PREPARE("SELECT id FROM `ftpd` WHERE User = :username");
PREPARE("SELECT id FROM `users` WHERE email = :email");
PREPARE("SELECT id FROM `servers` WHERE port = :port");
PREPARE("SELECT id FROM `servers` WHERE owner = :owner");
PREPARE("SELECT id FROM `servers` WHERE port = :port AND owner = :owner");
PREPARE("SELECT id FROM `log` WHERE ki = :ki");
PREPARE("SELECT rank FROM `users` WHERE id = :id");
PREPARE("SELECT * FROM `beallitasok` WHERE karbantartas = :id");
PREPARE("SELECT username FROM `users` WHERE id = :id");
PREPARE("SELECT gamename FROM `games` WHERE id = :id");
PREPARE("SELECT gameid FROM `servers` WHERE port = :port");
PREPARE("SELECT uid FROM `ftpd` WHERE Uid = :uid");
PREPARE("SELECT created, expire FROM `servers` WHERE port = :port");
PREPARE("SELECT inactive FROM `servers` WHERE port = :port");
PREPARE("SELECT expire FROM `servers` WHERE port = :port");
PREPARE("SELECT owner FROM `servers` WHERE port = :port");
PREPARE("SELECT configfile FROM `games` WHERE id = :id");
PREPARE("SELECT gameinstall FROM `games` WHERE id = :id");
PREPARE("SELECT accepted FROM `bizonylatok` WHERE port = :port ORDER BY accepted ASC LIMIT 1");
PREPARE("SELECT startfile FROM `games` WHERE id = :id");
PREPARE("SELECT email, fullname FROM `users` WHERE username = :user");
PREPARE("SELECT id FROM `log` WHERE ki = :ki");
PREPARE("UPDATE `users` SET megerosito = :megerosito WHERE username = :owner");
PREPARE("UPDATE `users` SET password = :pass, megerosito = :megerosito WHERE username = :owner");
PREPARE("INSERT INTO `log` (ki, mit, mikor, ip) VALUES (:username, :mit, :mikor, :ip)"); 


ultimatgold 12-06-2018 03:13

Re: SQL table | How to create this file to SQL!!
 
Hi :D This is strong question? XD

This help maybe?
Code:

users:
  'id',
  'username',
  'password',
  'megerosito',
  'email',
  'rank',
  'fullname'
 
ftpd:
  'id',
  'uid',
  'User',
servers:
  'id',
  'port'
  'owner'
  'gameid',
  'expire',
  'inactive'
log:
  'id',
  'ki'
  'mit',
  'mikor',
  'ip'
beallitasok:
  'karbantartas'
games:
  'id',
  'gamename',
  'configfile',
  'gameinstall',
  'startfile'
bizonylatok:
  'accepted',
  'port'



All times are GMT -4. The time now is 21:48.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.