Code:
/*
Server: localhost
Database: byond
Table: variables
Columns: ckey, hp, cash
I started off by manually inserting a row into my table with my ckey, hp and cash
using phpmyadmin.
*/
mob
var
hp = 10
cash = 50
verb
Save()
Query("INSERT INTO `variables` (`ckey`,`hp`, `cash`) VALUES ('[ckey]','[hp]','[cash]');")
// Query("UPDATE `variables` SET `hp`='[hp]',`cash`='[cash]' WHERE `ckey`='[ckey]';")
Problem description: After changing my variables, I can update the existing row with my ckey without any bother. Using `INSERT INTO` on the other hand does not create a new row in the table.