Search Results

Showing results 1 to 25 of 25
Search took 0.01 seconds.
Search: Posts Made By: ProfessorPC ; Forum: PHP and child forums
Forum: PHP Feb 4th, 2009
Replies: 24
Views: 951
Posted By ProfessorPC
Are you using textarea?
Forum: PHP Jun 15th, 2008
Replies: 16
Views: 2,254
Posted By ProfessorPC
you can send it through the address

<a href="yourpage.php?info=imageinfo">


then on your other page you can grab the info using

$info = $_GET['info'];

this will grab whatever info your...
Forum: PHP Jun 1st, 2008
Replies: 4
Views: 736
Posted By ProfessorPC
Do you have an example?
Not sure what type of situation you are referring to.
Forum: PHP Jun 1st, 2008
Replies: 4
Views: 775
Posted By ProfessorPC
Missed your email question. I have used this in the past.


$emailcheck = $_POST['email'];
$check = mysql_query("SELECT email FROM users WHERE email = '$emailcheck'")
or die(mysql_error());...
Forum: PHP Jun 1st, 2008
Replies: 4
Views: 775
Posted By ProfessorPC
Sounds like you got it right. I had ran into the same problem. I had created the random password and inserted that into the db as their password. Sent them a link including and identifier...
Forum: PHP May 31st, 2008
Replies: 3
Views: 567
Posted By ProfessorPC
your welcome. would you mind marking this as solved so others will know the solution is displayed.
Forum: PHP May 31st, 2008
Replies: 3
Views: 567
Posted By ProfessorPC
the reason you are getting this error is because all headers must be sent before anything is displayed. moving the php code to the top of the script may take care of your problem.
Forum: PHP May 30th, 2008
Replies: 5
Views: 883
Posted By ProfessorPC
Forum: PHP May 29th, 2008
Replies: 16
Views: 2,420
Posted By ProfessorPC
i will agree with that. more secure the better if its being stored. didnt really think having a SSL setup was needed since it is a class project but if its live it is a must have.
Forum: PHP May 29th, 2008
Replies: 16
Views: 2,420
Posted By ProfessorPC
you can store the data in the db but you definatly need to encrypt. i would suggest not even storing it personally. But that is just me.
Forum: PHP May 29th, 2008
Replies: 25
Views: 1,613
Posted By ProfessorPC
ok i thought the pilotid was an int. so change the second query to:
[code=php]
$arrival = mysql_query("Select arr_airport from flight2 where pilotid2 = '".$row['pilotid1']."' order by...
Forum: PHP May 29th, 2008
Replies: 25
Views: 1,613
Posted By ProfessorPC
The CPC912 is an aircraft type correct?
sorry its the other query i was needing. the second query and while loop.
Forum: PHP May 29th, 2008
Replies: 25
Views: 1,613
Posted By ProfessorPC
can you post what you have for line 44? (the query)
Forum: PHP May 29th, 2008
Replies: 25
Views: 1,613
Posted By ProfessorPC
give this a try. i added another query to pull the arr_airport by date below. its pretty straight forward.

$query = "SELECT firstname, lastname, pilotid1, pilotid2, COUNT(flight_time) AS flights,...
Forum: PHP May 29th, 2008
Replies: 25
Views: 1,613
Posted By ProfessorPC
ok your grouping this by pilotid. this is taking the info from the tables and displaying the information in one row per pilotid. and you want this to display with more then one row per pilotid?
Forum: PHP May 29th, 2008
Replies: 25
Views: 1,613
Posted By ProfessorPC
would it be possible to get a couple examples so i can insert into my mock db and test?
ok i got the data in. give me a few minutes to use this query
Forum: PHP May 29th, 2008
Replies: 25
Views: 1,613
Posted By ProfessorPC
hm... you already have it grouped by then orderby other fields. this field is associated to one of the other fields previously order by correct? guess i am a little confused by the structure.
maybe...
Forum: PHP May 28th, 2008
Replies: 25
Views: 1,613
Posted By ProfessorPC
get somebody outside of the project helps alot. your welcome
Forum: PHP May 28th, 2008
Replies: 25
Views: 1,613
Posted By ProfessorPC
sure you can add it.

}elseif($row['block']>99.9 && $row['flights']>319){
Forum: PHP May 28th, 2008
Replies: 25
Views: 1,613
Posted By ProfessorPC
ok so block is a field from the db. you need to have that included in your if statement.

if($row['block']>99.9){
echo $var1;
}elseif($row['block']>399.9){
echo $var2;
}

if im understanding...
Forum: PHP May 28th, 2008
Replies: 25
Views: 1,613
Posted By ProfessorPC
first what is block? variable? you can try removing the quotes too since it is numeric
maybe something like this:

if($block>99.9){
echo $var1;
}elseif($block>199.9){
echo $var2;
}
//and so on
Forum: PHP May 28th, 2008
Replies: 12
Views: 2,666
Posted By ProfessorPC
see your using a little protection for sql injection. good deal. ok you are setting the label to store id. will you try changing your storeid part of the form to this:

<form action="sox.php"...
Forum: PHP May 28th, 2008
Replies: 12
Views: 2,666
Posted By ProfessorPC
can you post a bit of your form too? you want to make sure everything is the correct case. you are dealing with case sensitive items. if you can post a bit of your form code i think it will help a...
Forum: PHP May 28th, 2008
Replies: 12
Views: 2,666
Posted By ProfessorPC
have you echoed the $_POST['store_id'] to see what is there?
Forum: PHP May 28th, 2008
Replies: 12
Views: 2,666
Posted By ProfessorPC
will the user be able to access other pages to display more information?
if this is the case you can set the id into a session. also with letting the users know this number and depending on the...
Showing results 1 to 25 of 25

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC