Registered: 14 years ago
We use the structure we've provided you with. That is, your database is (should be) the same as mine. So I don't need the structure. If I run your code (I just need to change your database login and password to fit mine) then all should work.
the awesome part about doing it this way is if i had say 7 different forms that i run sql on, i would only need to change the database name in one place if for some reason the databases name changed...
what i would do from here is include this on the page that i do my sql queries on:
if this file is not in the same folder as the file with the sql statement in it, then i would have to specify the path to the location of the file.
once the file has been included, the variables can be used straight in my code: