Skip to content

Tag: php

Doctrine 2: Update query with query builder

Hi I’ve got the following query but it doesn’t seem to work. This returns the following error message: Fatal error: Uncaught exception ‘DoctrineORMQueryQueryException’ with message ‘[Semantical Error] line 0, col 38 near ‘testusername WHERE’: Error: ‘testusernam…

dompdf and img tag, image wont show

Here is the HTML just before $dompdf->render() and $dompdf->output() are called: All other invoices display the image fine when viewing in the browser, or printing it, or emailing it as HTML. When I click ‘Generate PDF’ inside of our application, it renders the invoice in PDF, except the log…

PHP state machine framework

I doubt that is there any state machine framework like https://github.com/pluginaweek/state_machine for PHP. I’ve had to define many if-else logical clauses, and I would like something to help make …

PHP append one array to another (not array_push or +)

How to append one array to another without comparing their keys? At the end it should be: Array( [0]=>a [1]=>b [2]=>c [3]=>d ) If I use something like [] or array_push, it will cause one of these results: It just should be something, doing this, but in a more elegant way: Answer array_merge is the…