![]() |
| ||
| Run time error!!!!!! Pls help... Dear All,, My php page having a search query is not displaying the result when it is loaded... But when i check this same query in php my admin it is working correctly... for ex: If i search with the field "Marital Status" Single... There are totol 3 records having marital status "single", but the result will be getting only of 1... The miracle is that when i test this same query in the php myadmin then i get the full 3 records..... This means there is no prob in mysql_connection(); Please help me i am very confused!!!!!!!!! Jino. |
| ||
| Re: Run time error!!!!!! Pls help... Code please. |
| ||
| Re: Run time error!!!!!! Pls help... This is the query $query ="SELECT SQL_CALC_FOUND_ROWS * FROM reg_personal inner join reg_english_level inner join reg_services inner join reg_status ON(reg_personal.personal_code=reg_english_level.english_code AND reg_english_level.english_code=reg_services.services_code AND reg_services.services_code=reg_status.status_code)WHERE $query_string LIMIT 0, 30"; and it is working in php myadmin correctly and not working when the page is loaded!!!!!! ///echo statements are given below.. echo" <tr> <td width='503' height='19'><font face='Arial' style='font-size: 9pt'> $row[personal_name];<b>($row[personal_code])</b>,$row[personal_present_address],Tel: $row[personal_phone], E-mail: <a href='mailto:$email'><font color='#000000'> $email</font></a>,<b>Joined $course_name1,$course_name2,$course_name3, at $eng_date - Total Paid $total_paid/-. Balance $balance/- payment $payment_date.</b></font></td> <td width='169' height='19'> <font face='Arial' style='font-size: 10.5pt'><b> <a href='registration-result-reports.php?id=$p_code'>Continue to Payment >></a></b></font></td> </tr>"; waiting for ur reply.!!! Jino. |
| ||
| Re: Run time error!!!!!! Pls help... Hi jino, you are not returning your query. try adding this line directly after your query. $result = mysql_query($query) or die(mysql_error()); and see if this works:) |
| ||
| Re: Run time error!!!!!! Pls help... Where is the while loop ? Let me show you an example. $query="select * from table"; Well, thats the way to fetch all the records. |
| ||
| Re: Run time error!!!!!! Pls help... Thank u nav.... As it was a very big coding.. i hardly noticed that Thank u once more.. chears.... |
| ||
| Re: Run time error!!!!!! Pls help... You are welcome :) |
| All times are GMT -4. The time now is 10:50 am. |
Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC