(no subject)
May. 13th, 2008 10:47 amArcturus's second video card arrived. Whenever I get around to installing it, I think I'll put the old 17" and maybe the 15" on it, just for grins and giggles. Once the refi is finalized (we should hopefully hear about the appraisal results today) I should be able to buy the third and fourth monitors within two or three months. Whee.
Unrelatedly, what's wrong with this picture?
$result = $db->execute($sql);
$xml = dbresult_to_xml($result);
$result_simple = simplexml_load_string($xml);
foreach ($result_simple as $tag => $thing) {
...
}
I have no words. (I've used them all up exclaiming about this)
Unrelatedly, what's wrong with this picture?
$result = $db->execute($sql);
$xml = dbresult_to_xml($result);
$result_simple = simplexml_load_string($xml);
foreach ($result_simple as $tag => $thing) {
...
}
I have no words. (I've used them all up exclaiming about this)
no subject
Date: 2008-05-13 06:12 pm (UTC)$foo = "bar\nbaz";
$foo = nl2br($foo);
When I asked the guy why he didn't just write $foo="bar<br />baz"; he responded that he didn't know that that was possible.
I really wish I could fail some people's entire employment contract instead of just their code changes sometimes.
no subject
Date: 2008-05-13 07:41 pm (UTC)no subject
Date: 2008-05-14 01:11 am (UTC)Am I missing much? Also, why do I get a strong sense of deja vu when looking at this?
no subject
Date: 2008-05-14 02:08 am (UTC)Of course, I just love how no checking is done to make sure that there were any results from the query, or that the xml was loaded correctly by simplexml_load_string.
Among other errors, the cast of $result_simple to an array will probably generate warnings/notices. I suspect that whoever wrote this turned display_errors and log_errors off.
no subject
Date: 2008-05-14 02:11 am (UTC)no subject
Date: 2008-05-14 06:28 am (UTC)