![]() |
work with local but it's not with on line server
1 Attachment(s)
:confused: dear friends
I have this question my following code work with local but it's not with on line server the the pages code is attached please have a look & tell me how to do with it remember that code works OK on local host |
Re: work with local but it's not with on line server
What error does it give when run online.
|
Re: work with local but it's not with on line server
dear shabbir
good day the error showing when I run it online is: Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/umma/public_html/db/data/view.php on line 11 |
Re: work with local but it's not with on line server
This means it is nothing to do with your online or offline issue but your code is not well coded to work.
What is the code you have on line 11 |
Re: work with local but it's not with on line server
dear Shabbir
good day I attached text file for my pages code with my post anyhow the code in line 11 is: $myrow = mysql_fetch_array($result); |
Re: work with local but it's not with on line server
Don't expect that someone will download your txt file. Split code into each files. Upload. test and tell you what could be the changes needed. Will you do the same for someone's query?
Coming back to your issue. You are having this query. $result = mysql_query("SELECT * FROM personnel WHERE id=$id"); $myrow = mysql_fetch_array($result); So I can sense that your query and id variables does not have the right values to return the right result set. |
Re: work with local but it's not with on line server
dear Shabbir
my view.php code like this: Code:
<head> |
Re: work with local but it's not with on line server
What does $id contain in SELECT * FROM personnel WHERE id=$id
|
Re: work with local but it's not with on line server
dear Shabbir
thank you for your reply good day in my code $id contain (int) id for personnel record |
Re: work with local but it's not with on line server
dear Shabbir
good day I would like to thank you very much for your time & help I inform you that my problem solved the missing was to identified $id the following line is missing in my code $id=(int)$_GET['id']; thank you very much |
| All times are GMT +5.5. The time now is 13:55. |