Forum: PHP Feb 4th, 2009 |
| Replies: 24 Views: 951 |
Forum: PHP Jun 15th, 2008 |
| Replies: 16 Views: 2,254 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 Do you have an example?
Not sure what type of situation you are referring to. |
Forum: PHP Jun 1st, 2008 |
| Replies: 4 Views: 775 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 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 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 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 |
Forum: PHP May 29th, 2008 |
| Replies: 16 Views: 2,420 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 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 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 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 can you post what you have for line 44? (the query) |
Forum: PHP May 29th, 2008 |
| Replies: 25 Views: 1,613 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 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 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 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 get somebody outside of the project helps alot. your welcome |
Forum: PHP May 28th, 2008 |
| Replies: 25 Views: 1,613 sure you can add it.
}elseif($row['block']>99.9 && $row['flights']>319){ |
Forum: PHP May 28th, 2008 |
| Replies: 25 Views: 1,613 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 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 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 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 have you echoed the $_POST['store_id'] to see what is there? |
Forum: PHP May 28th, 2008 |
| Replies: 12 Views: 2,666 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... |