Skip to content
Advertisement

Tag: append

PHP Append to empty string without error

I have got the following issue, my function appends code to a string $string ($string .= bla), but in the beginning the string is empty, so I get this error message A PHP Error was encountered Severity: Notice Message: Undefined variable: $string Filename: libraries/file.php Line Number: 90 Of course if I define the string in advance, like $string = NULL,

append php in jquery

I’m trying to dynamically create a div to show error messages using jquery. I’m able to use append() to create the HTML easily enough, but I need to call a php variable in order to display the content….

Advertisement