nav33n 472 Purple hazed! Team Colleague Featured Poster

Hi ! Welcome!

nav33n 472 Purple hazed! Team Colleague Featured Poster

Welcome to Daniweb !

nav33n 472 Purple hazed! Team Colleague Featured Poster

To "talk" to the database, you need a server side scripting language like php, asp, asp.net etc. How do you want to save the phone numbers ? When a user searches for a phone number, how do you want to retrieve it ? What are the required fields (eg., name, address, etc) ? Php is very easy to learn and use it with mysql. Check this tutorial.. http://www.w3schools.com/PHP/DEfaULT.asP

nav33n 472 Purple hazed! Team Colleague Featured Poster

If you google for javascript date picker, you will get many ! Eg. this one here

nav33n 472 Purple hazed! Team Colleague Featured Poster

we are top of the food chain. we make the rules.

Unfortunately, Yes. Its us who make the rules and also break the rules.

There have been petitions, for poaching of tigers, hunting seals, skinning domestic animals and what not. But none of them has made a noticeable impact. And as AD said, it will not stop. Being said that, I would also like to say, you wouldn't know what pain is unless you feel it.

nav33n 472 Purple hazed! Team Colleague Featured Poster

-975

nav33n 472 Purple hazed! Team Colleague Featured Poster

What exactly are you looking for ? You have a select box with some options. When the user selects an option, you want the value to be populated to a textbox ?

nav33n 472 Purple hazed! Team Colleague Featured Poster

Do you have a function called fe ? If yes, is it in a different file ? If no, what does

if(fe($_REQUEST[act]))

mean ?

nav33n 472 Purple hazed! Team Colleague Featured Poster

Welcome to Daniweb!

nav33n 472 Purple hazed! Team Colleague Featured Poster

Try total.value = '<?php echo $result[b]4[/b]['price']; ?>';

nav33n 472 Purple hazed! Team Colleague Featured Poster

Hey ! Welcome to Daniweb :)

nav33n 472 Purple hazed! Team Colleague Featured Poster

First of all, this isn't the solution. I saw some errors in the script, so, here they are.

$query4=mysql_query("select price from pricelist where item='$result3[item]'");
$result4=mysql_query($query4);

You have already executed the query and assigning the resource_id of the query to $query4. Then, again, you are trying to execute the query, $result4 = mysql_query($query4); You have to fetch the row by using mysql_fetch_array or mysql_fetch_row. $result4 will not hold any value(unless $result4 is an array and price is the key!). And,

total.value = <?$result4;?>;

is wrong. You have to echo the value to assign it to a variable. For example,

var variable1;
variable1 = <?php echo $val; ?>;
nav33n 472 Purple hazed! Team Colleague Featured Poster

Welcome to Daniweb!

nav33n 472 Purple hazed! Team Colleague Featured Poster

Welcome!

nav33n 472 Purple hazed! Team Colleague Featured Poster

Welcome!

nav33n 472 Purple hazed! Team Colleague Featured Poster

Welcome to Daniweb!

nav33n 472 Purple hazed! Team Colleague Featured Poster

Welcome!

nav33n 472 Purple hazed! Team Colleague Featured Poster

Welcome!

nav33n 472 Purple hazed! Team Colleague Featured Poster

Welcome!

nav33n 472 Purple hazed! Team Colleague Featured Poster

Welcome to Daniweb!

nav33n 472 Purple hazed! Team Colleague Featured Poster

Huh! He is a registered user from may 2006 !

nav33n 472 Purple hazed! Team Colleague Featured Poster

-973

nav33n 472 Purple hazed! Team Colleague Featured Poster

What is the scenario like ? You insert a record to form table and then insert one/many records to register table ?
If thats the case, then, blater's code should work. You can also try this.

$insert_to_form = "insert into form (col1, col2) values ('1','2')";
mysql_query($insert_to_form);
//since form has an autoincrement field, the last record inserted will have the maximum value (of the auto incremented field)
$get_last_autoincrement_id = "select max(id) as last_id from form";
$res = mysql_query($get_last_autoincrement_id);
$row = mysql_fetch_array($res);
$last_id = $row['last_id'];
//then insert into register table
$insert_to_register = "insert into register (form_id, col1,col2 ) values ('$last_id','1','2')";
mysql_query($insert_to_register);
$insert_another_record_to_register = "insert into register (form_id, col1,col2 ) values ('$last_id','3','4')";
mysql_query ($insert_another_record_to_register);
nav33n 472 Purple hazed! Team Colleague Featured Poster

-971

nav33n 472 Purple hazed! Team Colleague Featured Poster

Yep. If its a csv file, then you can make use of fgetcsv to do the required operation.

nav33n 472 Purple hazed! Team Colleague Featured Poster

2 tables at the same time, possible. 2 different databases at the same time, not possible. You have to open one database first, then the second one.

Edit: It might be possible ! Check the post by "buzz at oska dot com" here. http://nl2.php.net/mysql_select_db

nav33n 472 Purple hazed! Team Colleague Featured Poster

-969

nav33n 472 Purple hazed! Team Colleague Featured Poster

You SHOULDN'T echo anything before header and setcookie functions.

Edit: Not even a whitespace.

nav33n 472 Purple hazed! Team Colleague Featured Poster

Welcome to Daniweb!

nav33n 472 Purple hazed! Team Colleague Featured Poster

Welcome to Daniweb!

nav33n 472 Purple hazed! Team Colleague Featured Poster

Welcome!

nav33n 472 Purple hazed! Team Colleague Featured Poster

Welcome to Daniweb!

nav33n 472 Purple hazed! Team Colleague Featured Poster

Welcome!

nav33n 472 Purple hazed! Team Colleague Featured Poster

Welcome to Daniweb!

nav33n 472 Purple hazed! Team Colleague Featured Poster

You can't have an echo, print or any html tag before session_start and header functions. You cannot even have a whitespace.

nav33n 472 Purple hazed! Team Colleague Featured Poster

We can have an onchange event for the select box to submit the page.

nav33n 472 Purple hazed! Team Colleague Featured Poster

There is a typo in ENCTYPE. It should be form-data.

nav33n 472 Purple hazed! Team Colleague Featured Poster

You just have to check if $_POST is equal to the value of the option. If it is equal, echo selected, else echo nothing..

nav33n 472 Purple hazed! Team Colleague Featured Poster
nav33n 472 Purple hazed! Team Colleague Featured Poster

-965

nav33n 472 Purple hazed! Team Colleague Featured Poster

-961

nav33n 472 Purple hazed! Team Colleague Featured Poster

Umm.. not really.. sorry ! But, google is your friend :)

nav33n 472 Purple hazed! Team Colleague Featured Poster

You need to put mysql_query inside the foreach loop as well..

$values = $_GET['tta'];
echo "size of array = ".sizeof($values)."<br>"; 
foreach ($values as $question_equation) {
$sql = "INSERT INTO venn (question_equation) VALUES ('$question_equation')
	";
	if (@mysql_query($sql)) {
echo '<p>questions added</p>';
} else {
echo '<p>ERROR questions not added' .
	mysql_error() . '</p>';
}
	//echo $values;
echo $question_equation;
}
nav33n 472 Purple hazed! Team Colleague Featured Poster

I disagree with #3, free T shirts are great :D

To wear at home, ofcourse ;)

nav33n 472 Purple hazed! Team Colleague Featured Poster

Welcome!

nav33n 472 Purple hazed! Team Colleague Featured Poster

Welcome to Daniweb!

nav33n 472 Purple hazed! Team Colleague Featured Poster

Welcome!

nav33n 472 Purple hazed! Team Colleague Featured Poster

Maybe someone with rep power more than 20 gave her a negative rep and now its not visible ?

nav33n 472 Purple hazed! Team Colleague Featured Poster

Lol.. About the advice, well, it depends on the topic ! If you need some advice/help on hadware, post it in the hardware forum, if you need help on php, post it in php forum ! :)

Clear enough ?

nav33n 472 Purple hazed! Team Colleague Featured Poster

Welcome Victor !