Entering Data Problem


Posted on 16th Feb 2014 07:03 pm by admin

Code: $result = mysql_query("SELECT * FROM flights");
while ($row = mysql_fetch_array($result))
{

Did you know?Explore Trending and Topic pages for more stories like this.
if ($flight_num == $row['flight_num']){
echo "<center>Flight Number Used!</center>";
}else{

$sql=mysql_query("INSERT INTO flights (`flight_num`, `dep_icao`, `dep_time`, `dep_name`, `arr_icao`, `arr_time`, `arr_name`, `route`, `aircraft`, `days`, `duration`, `status`)
VALUES ('$flight_num','$dep','$dep_time','$dep_name','$arr','$arr_time','$arr_name','$route','$aircraft','$days','$duration','$status')");
header ('Location: ?page=flt_ctr');

}}
No comments posted yet

Your Answer:

Login to answer
196 Like 47 Dislike
Previous forums Next forums
Other forums

Calander layout
Hi i know this sounds like a simple question but i cant find the answer to it anywhere i have added

Suggestions for Functional module
Hello experts,
I Have done B.Sc(Mathematics) and MCA & have learnt SAP/ABAP but do n

Multiple Dropdown Selections
I have a form that let's a user insert a page with the ability to select categories. I want them to

PHP page is blank
Hi Everyone,

I have a site in which I am able to open the first PHP webpage in my browser but

TimeZoneOffset
Hello,

Please i need your help. I have a system that users can use to punch in and out. This

retrieving images from mysql database using php
So I've been trying to figure out how to store images in a mysql database, and as far as i can tell

List/Menu Box
On an edit page when you want something to select what a user has previously selected from the datab

pull content
I have an existing page, domain/adverts.php which has a good PR. I've just rebuilt my site and the n

Points for Wiki contribution
Hi everyone,

I want to know how long does it take for the moderator to award points for a

Filename like the user name
I am creating a form and storing the values in file. Could anyone please tell me how to write a code

Sign up to write
Sign up now if you have flare of writing..
Login   |   Register
Follow Us
Indyaspeak @ Facebook Indyaspeak @ Twitter Indyaspeak @ Pinterest RSS



Play Free Quiz and Win Cash