Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.php > #3868
| From | The Natural Philosopher <tnp@invalid.invalid> |
|---|---|
| Newsgroups | comp.lang.php |
| Subject | Hmm..why doesnt this work? |
| Date | 2011-11-22 16:10 +0000 |
| Organization | albasani.net |
| Message-ID | <jaghhf$867$1@news.albasani.net> (permalink) |
$old=(mysql_fetch_assoc(mysql_query(sprintf( "select login_name from employees where id='%d'", $_POST['id']))))['id']; Bitching about unexpected '[' But mysql_fetch_assoc() returns an array so what's wrong with mysql_fetch_assoc()['id']; ??
Back to comp.lang.php | Previous | Next — Next in thread | Find similar | Unroll thread
Hmm..why doesnt this work? The Natural Philosopher <tnp@invalid.invalid> - 2011-11-22 16:10 +0000
Re: Hmm..why doesnt this work? The Natural Philosopher <tnp@invalid.invalid> - 2011-11-22 16:19 +0000
Re: Hmm..why doesnt this work? tony@mountifield.org (Tony Mountifield) - 2011-11-22 16:22 +0000
Re: Hmm..why doesnt this work? The Natural Philosopher <tnp@invalid.invalid> - 2011-11-22 17:24 +0000
Re: Hmm..why doesnt this work? tony@mountifield.org (Tony Mountifield) - 2011-11-22 17:44 +0000
Re: Hmm..why doesnt this work? The Natural Philosopher <tnp@invalid.invalid> - 2011-11-22 17:49 +0000
Re: Hmm..why doesnt this work? The Natural Philosopher <tnp@invalid.invalid> - 2011-11-22 17:57 +0000
csiph-web