MySQL Errors

Object Oriented Style Turn on error reporting Displaying error with ->prepare() sql statement There is an issue with this in that you need to first use $stmt=False; if using $stmt again, otherwise $maindb->error will be empty. Explanation here: https://stackoverflow.com/questions/40719953/mysqli-prepare-returns-false-but-mysqli-error-is-an-empty-string Procedural Style Displaying A MySQL Error die(mysql_error()) is very handy when debugging why a MySQL function isn’t […]

Read More

Error Handling

@function_name Prefixing a function with an @ will hide any error message generated by thefunction. If a function will possibly fail, you can prefix it with the @,then check the return value to see if the function did infact work or not.

Read More

.CSS General

DIV vs SPAN DIV’s cause a new line.  To change the stule of text min line use SPAN Using Div’s Without A Style <div style=”margin-top: 10px;”> ‘.’ or ‘# # is for ID You use ‘#somename’ when its an <div id=”somename” ID’s can be useful to suround an area so that you can use this […]

Read More

Submit Button

Styling See here Using An Image For The Button Multiple Submit Buttons Using the button name parameter Using the buttons “value” Different Value and Button Text Cancel button You have to create on, there’s no standard cancel button In the form: When handling the form:

Read More

.Input Boxes

Input box types Text Background text Text that vanished when you start typing into the box Feel free to comment if you can add help to this page or point out iss Numeric Integer values Allow values with decimal places Specifying A Value Automatically Submit On Enter Key Pressed Read Only Password Entry “password” will cause […]

Read More