[PHP] Re: DUMB QUESTION I'M SURE
on the line that starts with $query = there's an extra . the line should be: $query = SELECT shops.name FROM shops WHERE name = .$name; []s Fernando Adam French [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... I'm just starting out, this is my script... ? $name = $_POST['username']; $name = $name; $db = mysql_connect(localhost); mysql_select_db(vinyldealers,$db); $query = SELECT shops.name FROM shops WHERE name = .$name.; $result = mysql_query($query); while ($record = mysql_fetch_assoc($result)) { while (list($feildname, $feildvalue) = each ($record)) { echo $feildname. : B .$feildvalue. /BBR; } echoBR; } ? This is the error I get... Parse error: parse error, unexpected ':' in C:\Xitami\webpages\php\result1.php on line 12 I dunno what I'm doing wrong. Help please??? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Dumb POST Array question
David Russell wrote: Hi all, I have a multiple select called Consultants[] In one page. On the target page, how would I reference it? Would it be: $_POST['Consultants'][0] $_POST['Consultants'][1] Etc Since $_POST['Consultants'] contains an array, you can indeed use the above syntax. Grtz Erwin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Dumb question
In article 000901c2498b$ce972950$0e00a8c0@luke, [EMAIL PROTECTED] says... Hey guys, got a basic question for you... ? function getvar() { $vari = bollocks; } getvar(); echo $vari; ? How do I make that function return the variable? Thanks, Liam Strangely, by using return. function getvar() { $vari = bollocks; return $vari; } $answer = getvar(); echo $answer; ? -- David Robley Temporary Kiwi! Quod subigo farinam -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: dumb
I we can all do that But what about the fact that this moron is out there.. he subscribed to the mailinglist and can't read to save his life... He must be stopped... online.no is receiving an email plus a zipped copy of all the spams he has sent. Sorry for all the bad words and stuff said Cheerz ;) Brendan P. Caulfield [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... this is dumb. can we just ignore this and move. we are all smart enough to block his posts. let's just do it and quit wasting all of our time and get back to doing what we do here. respectfully, -brendan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: dumb
OK... Now that i've mailed online.no I've unsubscribed the creep from the list so that we don't get no more crap and get back to work :D Brendan P. Caulfield [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... this is dumb. can we just ignore this and move. we are all smart enough to block his posts. let's just do it and quit wasting all of our time and get back to doing what we do here. respectfully, -brendan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php