[PHP] convert array to HTML GET request

2005-10-02 Thread Martin van den Berg
Newbe question: How does one convert an array into a HTML GET request easely? Are there any standard functions? Same for HTML POST requests. Thanks, Martin. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] parallel execution of php code?

2005-08-09 Thread Martin van den Berg
> I have lots of places where I used to do this. Since MySQL 4.1 I've > changed it to something like: > > "INSERT INTO mytable SET id = 123, bla = '$x' ON DUPLICATE KEY UPDATE > bla='$x'" > > This saves you a query, and makes it easier to isolate the insert/ > update as it will play nicely with aut

[PHP] parallel execution of php code?

2005-08-08 Thread Martin van den Berg
I have this piece of php-code which inserts data into a database. Before inserting it must verify if the data is unique. The php code looks something like: $query = "SELECT id FROM mytable WHERE bla LIKE " . $x ."; $rows = execute( $query ) if ( $rows == 0 ) { /* some more processing */ $quer