113 Posted Topics

Member Avatar for CutRobot

Do you intend to back the data up to a file or to another table? Inserting data into a table does not create a file. If you want to create a file you can use the PHP file functions [iCODE]$handle = fopen("backup.txt", "w");[/iCODE] and then write to the file. If …

Member Avatar for sudeepjd
0
76
Member Avatar for sundeep_g

You have posted the entire code but not specified what problem you are facing. Please specify the problem, any error messages you are getting and at which locations. We should then be able to help.

Member Avatar for sudeepjd
0
221
Member Avatar for nukabolhi

Make the following changes to the code [B]Line7:[/B] Encapsulate all the variables and correct the $$result[fruit_charges] the code would be [CODE]echo "<label> <input type='checkbox' name='fruit[]' value='{$result[fruit_id]}' id='Test_0' > {$result[fruit_name]} | {$result[fruit_charges]} </label> ";[/CODE] [B]Line 17:[/B] Add in the following line [CODE]$fruit=$_POST['fruit'];[/CODE] This would pick up the [I]fruit[/I] array from the …

Member Avatar for nukabolhi
0
145
Member Avatar for keshavgarawal89

If I'm right, you are using Flash. Check if there is any script in the first frame of the movie. I know this sounds quite basic but I've made mistakes like this before and broke my head over it before finding that out.

Member Avatar for keshavgarawal89
0
106
Member Avatar for Noorul Ariff

The registered users would be references in a table in the database. In the same table, a column should be created (name: [B]Login[/B])to store following values 1. When the user logs in using the login form update the table and set "logged in" status in login column for that user. …

Member Avatar for diafol
0
122
Member Avatar for Magic_Turtle

There is one major reason why your code is not working as it should. While pulling the $data into the for loop, you need to give a sizeof to set an upper bound for the loop. As a web designer, I would like to give you a few tips. [LIST=1] …

Member Avatar for sudeepjd
0
750
Member Avatar for stangn99

You have not specified as to what backend your using. I'm assuming your using PHP (this is the PHP forum) and the data which the user is entering is being stored in a mySQL DB (or any other). There is a simple way to do this if this is the …

Member Avatar for sudeepjd
0
126
Member Avatar for ismael ahm@d

I'm not going to give you the code directly but I'll tell you how to do it. 1. Assign an ID to each of the row elements. This should be fine if you already have a primary key in your table. 2. Normally you would be looping through each of …

Member Avatar for freddavis
0
102
Member Avatar for facarroll

The problem is that your table is currently inside the while loop, this causes the table itself to get recreated. What you need to do is to place the <table> tags outside the loop. This would put each loop on a separate row. Here's the code [CODE] <?php // Query …

Member Avatar for facarroll
0
103
Member Avatar for goodguy73

Use this template... It should help.... [CODE] <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Untitled Document</title> <style type="text/css"> <!-- body { font: 100% Verdana, Arial, Helvetica, sans-serif; background: #666666; margin: 0; padding: 0; text-align: center; color: #000000; } .wrapper #container { …

Member Avatar for sudeepjd
0
210
Member Avatar for pabzzmike

You dont need PHP for this. You can use javascript, css and layers. To show use [iCODE]document.getElementById("maintopright_tour").style.display="block";[/iCODE] To hide use [iCODE]document.getElementById("maintopright_cab").style.display="none";[/icode]. Show and hide the layer based on the click event. I believe I had previously implemented a version of what you are asking for one of the sites I …

Member Avatar for sudeepjd
0
69
Member Avatar for stefansaye

When you use a HTML form, all the input elements will be sent. What you can do is to pick out the ones you want. You can do this by naming the checkbox as an array [iCODE]echo "<input type=\"checkbox\" name =\"check[]\" id=\"check[]\" value=\"$uid\" Checked onClick=\"chooseOne(this);\">";[/iCODE] This would pull the values …

Member Avatar for sudeepjd
0
243
Member Avatar for arunpatyal1987

In order to store images you have two options 1. Store the image directly in the database using a [I]blob[/I] datatype. For this there is a nice tutorial at [URL="http://www.phpriot.com/articles/images-in-mysql"]http://www.phpriot.com/articles/images-in-mysql[/URL]. 2. Store the image as a file in a folder and then store the link to the file in the …

Member Avatar for sudeepjd
0
101

The End.