HAN! Posted October 26, 2007 Share Posted October 26, 2007 i really dont know what is the use of this forum, i have posted my simple question from half an hour and i didnt get any answer yet, well i dont understand how this is a help forum. i just want to know how to use arrays in forms. Quote Link to comment https://forums.phpfreaks.com/topic/74845-objection/ Share on other sites More sharing options...
LemonInflux Posted October 26, 2007 Share Posted October 26, 2007 Being more specific helps. Quote Link to comment https://forums.phpfreaks.com/topic/74845-objection/#findComment-378434 Share on other sites More sharing options...
HAN! Posted October 26, 2007 Author Share Posted October 26, 2007 im using a value of input box of a form in a php array, how i can do this? <?PHP include"connection.php"; $query="SELECT * FROM registration"; $result=mysql_query($query); $num=mysql_num_rows($result); for($i=0;$i<$num;$i++) { if($_POST['type'][$i]=='a') //this is where i get it from the form: type. { $first=mysql_result($result,$i,"First Name"); $query1="INSERT INTO administrator VALUES ('','$first')"; mysql_query($query1); } }   Quote Link to comment https://forums.phpfreaks.com/topic/74845-objection/#findComment-378437 Share on other sites More sharing options...
GingerRobot Posted October 26, 2007 Share Posted October 26, 2007 Posting multiple times isn't going to help you. Quote Link to comment https://forums.phpfreaks.com/topic/74845-objection/#findComment-378455 Share on other sites More sharing options...
Barand Posted October 26, 2007 Share Posted October 26, 2007 And to enable the non-telepaths out here to verify that code, what does your form code look like? Â Â WOW! 30 minute wait. Are you under the illusion that we are on your payroll and jump whenever you post? And if you can't be bothered to give a reasonable amount of detail regarding your problem, why should we struggle to guess, and maybe waste time answering the wrong problem. Quote Link to comment https://forums.phpfreaks.com/topic/74845-objection/#findComment-378477 Share on other sites More sharing options...
GingerRobot Posted October 26, 2007 Share Posted October 26, 2007 And to enable the non-telepaths out here to verify that code, what does your form code look like? Â You mean your not telepathic? And there i was, thinking you were omniscient... Quote Link to comment https://forums.phpfreaks.com/topic/74845-objection/#findComment-378481 Share on other sites More sharing options...
Barand Posted October 26, 2007 Share Posted October 26, 2007 I sent $500 to a guy on Ebay who was advertising a "telepathy upgrade board" for my PC. That was months ago and I'm still waiting. Quote Link to comment https://forums.phpfreaks.com/topic/74845-objection/#findComment-378483 Share on other sites More sharing options...
GingerRobot Posted October 26, 2007 Share Posted October 26, 2007 I would let you borrow mine, but, you know, it's kinda necessary. Quote Link to comment https://forums.phpfreaks.com/topic/74845-objection/#findComment-378485 Share on other sites More sharing options...
premiso Posted October 26, 2007 Share Posted October 26, 2007 This thread should be stickied as "How NOT to ask Questions". Quote Link to comment https://forums.phpfreaks.com/topic/74845-objection/#findComment-378725 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.