Re: [PHP] Getting checkboxes as array

2005-06-09 Thread jack jackson
Whoops. I must be botching this syntax because this is printing ",,0,," as the query: All the first part of the query works and inserts records into the database, and it's when I try to get mysql_insert_id () that I seem to run into trouble. Ah. ave I not yet run the first query? The part of th

Re[2]: [PHP] Getting checkboxes as array

2005-06-09 Thread Richard Davey
Hello jack, Friday, June 10, 2005, 3:11:17 AM, you wrote: jj> All the first part of the query works and inserts records into the jj> database, and it's when I try to get mysql_insert_id () that I seem to jj> run into trouble. Ah. ave I not yet run the first query? The part of jj> the code that ac

Re: [PHP] Getting checkboxes as array

2005-06-09 Thread Sebastian
well, your trying to get the insert_id() without running the query first. so you have to add: mysql_query($query); before: $art_id = mysql_insert_id(); also, your foreach loop should be: foreach ($media_types as $type) (without the brackets []) i am assuming $media_types is an array already.

[PHP] failed to open stream error

2005-06-09 Thread Richard Kurth
Way do I get Warning: fopen(https://esos.state.nv.us/SOSServices/AnonymousAccess/CorpSearch/CorpDetails.aspx?CorpID=478765): failed to open stream: Invalid argument When I run this. I can access the page from the browser but not from inside of a script fopen("https://esos.state.nv.us/SOSS

<    1   2