Php Autoscript

Create your mysql database. Use PHPAutoScripter to create code in less than 5 minutes that will use your data in thousands of different ways. Contact us to get your beta version.

Runs on all versions of windows and will run by copying into any folder.

How does it work?

You can export the table structure from phpmyadmin and this program will create all of the files necessary to add, edit, delete, view records and upload files. It uses embed points to allow the insertion of code to customize the output. The code generated is well formated to view what is going on.

Before conversion

CREATE TABLE IF NOT EXISTS `purchases` (
`purchaseid` mediumint(11) NOT NULL AUTO_INCREMENT,
`vendor` varchar(30) NOT NULL,
`methodid` tinyint(4) NOT NULL,
`amount` decimal(8,2) NOT NULL,
`description` varchar(200) NOT NULL,
`date` date NOT NULL,
`personal` tinyint(4) NOT NULL,
`reimbursed` tinyint(4) NOT NULL,

After conversion and suppling some switches

purchases,0,0,cm,100,q
purchaseid,mediumint,i,u,h,q
vendor,varchar,pvendor@vendors,"l,f",n,q
amount,decimal,t10,t2,n2,q
description,varchar,a0499,n,n,q
date,date,t12,n,o0d,r
methodid,tinyint,omethod@method,n,n,"n,r"
personal,tinyint,c,n,"`date` DESC",r
reimbursed,tinyint,c,n,n,r

By using the switches created after preping the info, you can create total columns, control multiple sorts, add multiple search fields and add dummy fields to do calculations and sums. View the switches below to see what kind of code you can generate.

Switches

col 1 col 2 ** col 3col 4col 5col 6
1st Row:Table NameDatabaseUsernamePassword
cm
ch
chm
Report RowsRename File
2nd row to 200
rows

field

names

variable types:
varchar
text
mediumint
decimal
int
smallint
tinyint
date
datetime
dummy *

a
c
e
h
i
o
p
q
r
tn
un
f
h
l
n
p
u
s
t
c
l
h
n
o
s
t
a
c
d
e
f
h
l
n
p
q
r
s
t
u
v
w
z
$
* dummy = any non-database variable ** cannot mix variables
Column 3 Switches (Cannot mix switches)
atextarea (add 4 digit code like 4099 which represents 40 rows and 99 cols. default 1080)
ccheck box. tinyint is field type
eembed code follow by the `code` area (example field,smallint,egalleryshowid,n,n,n)
hhidden
iautoincrement
ocombobox-use formula (Displayfield@tablex) to provide external field and the table it resides in.
psame as o but uses text BOX to supply info. the combo is optional if text box is left blank
qsame as o but uses text AREA to supply info. the combo is optional if text box is left blank
rradiobuttons-use formula (Displayfield@tablex) to provide external field and the table it resides in OR r|dbvalue|visualvalue|. Always end with a | or program crashes.
ttext size=n maxlength=n
uMULTIPLE RECORD INPUT! Like "t" above. Requires seting the multiple records checkbox. text size=n maxlength=n. CLICK on the now visible "txtbox" hyperlink to switch views.
vMULTIPLE RECORD INPUT! LIKE "a" above. Requires seting the multiple records checkbox. TEXTAREA CLICK on the now visible "txtbox" hyperlink to switch views.
4th column or Form Switches (Can mix switches. Must be between quotes)
ffirst caps
hhide from update in Verify.php
llocate
nnormal
pprotect! update will not happen on this field if it is null. Does NOT affect insert
uupdate
ssecurity
ttotal this field (t2 means 2 decimal places) Add number to format column. Do not forget to format the number in column 5 below:
5th column or Report Switches (Cannot mix switches)
ccheckboxed field
llink field to previous field
hHide field from Report
nNormal. Adding number x at end to create a grand total field decimal places x.
oOrder by option if another field is selected for sort. Add number after "o" to define importance. "o1d" means it is descending. "o1m" means changes when 0 changes.
sSort my records on this field.
ttitle for field example tEmail/Url
6th column or Report Switches (Can mix switches. Must be between quotes)
aarray Value is stored in an array. The array can be filled in the "Report Start" embed point. syntax: a-myarray
cclone..adds content from this record into a new one. MUST BE APPLIED TO THE UPDATE FIELD
dDelete check to prevent orphans on another table. MUST BE APPLIED TO THE UPDATE FIELD Syntax: dmytable
eemail (creates form javascript)
ffiltered report from another report created from h. GIVE the filename to link back to h. This should be used an a table that is the child to a parent table
hhyperlink filter. Parent table to a Child table. FOLLOW with the file you are linking to. "f" should be used in other file
lminimum and maximum size. Follow with length. l-5-50 (creates form javascript)
nnumber (creates form javascript)
pphone (creates form javascript)
qno check
rrange filter
sstring (creates form javascript)
Ttitle for field example TEmail/Url
tupload file. default jpg. add extension like .pdf (example u../logos|.jpg). THUMBS ARE CREATED IN EXISTING FOLDER ending in 'logos/thm'.
uupload file. default jpg. add extension like .pdf (example u../logos|.pdf)
vpicture link created in view
wweb address- does not check but makes url into a hyperlink.
zzip code type field.
$If a field is formatted using example t2(col 4) and/or n2 (col 5). This will add a dollar sign to the front of the number