Jump to content

objection


HAN!

Recommended Posts

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);
}
}

 

 

Link to comment
https://forums.phpfreaks.com/topic/74845-objection/#findComment-378437
Share on other sites

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.

Link to comment
https://forums.phpfreaks.com/topic/74845-objection/#findComment-378477
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.