954,174 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Need Litle Help MYSQL & PHP

Hello,
I'm new in PHP and MYSQL..
I need a small help...

Here is what i got:
CONDITIONS

<form action="update_conditions.php" method="post" >
<table class="maxWidth" cellspacing="0">

<tr><td >Method</td><td>Commisions</td><td>Proccess Time</td><td>Min Deposit</td><td>Max deposit</td></tr>

<tr>
<td>  <input type="checkbox" name="ud_bank_wire" value="<? echo "$bank_wire"?>"   /> Bank Wire</td>

<td><input name="ud_b_w_com" class="update_by" type="text"  value="<? echo "$b_w_com"?>"></td>

<td><input name="b_w_proc" class="update_by" type="text"  value="<? echo "$b_w_proc"?>"></td>

<td><input name="b_w_mim_d" class="update_by" type="text"  value="<? echo "$b_w_mim_d"?>"></td>

<td><input name="b_w_max_d" class="update_by" type="text"  value="<? echo "$b_w_max_d"?>"></td>
</tr>

</table>


UPDATE_CONDITIONS

<?php

include 'db.php';
/*ID and NAME*/
$ud_id=$_POST['ud_id'];

/*UPDATE*/

/*CONDITIONS*/
$ud_bank_wire=$_POST['ud_bank_wire'];
$ud_b_w_com=$_POST['ud_b_w_com'];
$ud_b_w_d=$_POST['ud_b_w_d'];




mysql_query("UPDATE presentation SET bank_wire='$ud_bank_wire', b_w_com='$ud_b_w_com', b_w_d='$ud_b_w_d' WHERE id='$ud_id'") or exit(mysql_error());

require('../Forex_Brokers/updated.php');
mysql_close();

?>

I need to make it somthing like that:

If (Method) Bank Wire is checcked = Show (on other page) details: commissions, proccess time, min deposit and max deposit.

So if this box is checcked it will show details and if not dont show any thing.

I hope i explane it well :-/

Thanks to all!

artvor
Light Poster
29 posts since Jul 2010
Reputation Points: 10
Solved Threads: 0
 
<td><input name="ud_b_w_com" class="update_by" type="text"  <strong>value="<? echo "$b_w_com"?>"</strong>></td>

Where these data collected from and there should be

<strong><?php</strong> echo "$b_w_com"?>


The above(yours) are two seperate files or written in a single file?

rajarajan07
Nearly a Posting Virtuoso
1,447 posts since May 2008
Reputation Points: 167
Solved Threads: 239
 

This data is collected from my DB Table= conditions.

Checked = Bank Wire
Commisions = 1%
Proccess Time = 1 day
Min Deposit = 50 $
Max Deposit = No limits

****
How can i insert into my db(table=conditions) that checkbox is checked?

If it's checked it will display data also =commisions, proccess time, min deposit and max deposit.

And if it's not checked it will be blank (do not display)

***

I hope i explane it well

Any way thanks for trying to help me..

artvor
Light Poster
29 posts since Jul 2010
Reputation Points: 10
Solved Threads: 0
 

Still I can't get you, where is the input for the fields to insert into database, I mean whether you are going to type in the textbox or what?

rajarajan07
Nearly a Posting Virtuoso
1,447 posts since May 2008
Reputation Points: 167
Solved Threads: 239
 

Ok, forgot my previous code.

How can i do this:

Insert into my db that checkbox is checked?

If it's checked it will display data also =commisions, proccess time, min deposit and max deposit.

And if it's not checked it will not display nothing.

Thanks for helping me.

artvor
Light Poster
29 posts since Jul 2010
Reputation Points: 10
Solved Threads: 0
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: