Very URGENTT :S [SOLVED]

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
amirbwb
Forum Commoner
Posts: 89
Joined: Sat Oct 30, 2010 6:10 pm

Very URGENTT :S [SOLVED]

Post by amirbwb »

Hello, I am new into selling softwares ... today I have noticed a big problem in the software and don't know how to fix it:

The software I have created is about 65 pages
every thing works fine only in a 3 pages (pages where admin can update some data) ... when updating a form, a complete message appears but the data are not updated !!

I have created this software on my localhost and I tried it on 2 pcs and it is working fine ... but when I uploaded it to a free webhost (amir.comoj.com/najla from 000webhost.com) and I was doing a check up then I noticed that the three update pages are not working !!
Any idea about what is happening ?

I have attached the 6 files if anyone would like to check the code .....
Attachement:
uns.php is the design part(html code) and uns_c.php is the code part (php)
same thing for the 2 others ...

plz it's very urgent i want to present my software the next week :S :S
Thank youu !!
Last edited by amirbwb on Sun Nov 13, 2011 12:29 pm, edited 3 times in total.
User avatar
amirbwb
Forum Commoner
Posts: 89
Joined: Sat Oct 30, 2010 6:10 pm

Re: Very URGENTT :S

Post by amirbwb »

if you want to check the page and how it looks like visit:
amir.comoj.com/najla/
enter
username: **********
password : **********
and to go to the pages that are not working go to:
http://amir.comoj.com/najla/**************
http://amir.comoj.com/najla/**************
http://amir.comoj.com/najla/**************

thank you
Last edited by amirbwb on Sun Nov 13, 2011 7:13 am, edited 1 time in total.
User avatar
Celauran
Moderator
Posts: 6427
Joined: Tue Nov 09, 2010 2:39 pm
Location: Montreal, Canada

Re: Very URGENTT :S

Post by Celauran »

Have you tried to echo your update queries to see what's being sent to the database?
User avatar
amirbwb
Forum Commoner
Posts: 89
Joined: Sat Oct 30, 2010 6:10 pm

Re: Very URGENTT :S

Post by amirbwb »

i will try it but i think there is nothing wrong cuz it is working on my localhost
but if u have check the attachement files, i think the problem is from if(!isset($error)) but can't understand why it doing this on my free domain !!
User avatar
Celauran
Moderator
Posts: 6427
Joined: Tue Nov 09, 2010 2:39 pm
Location: Montreal, Canada

Re: Very URGENTT :S

Post by Celauran »

I tried looking at the files you uploaded. I found one problem in unnv_c.php on line 10; you have is_numeric with no argument. This could lead to $visit staying set to 0. I can't run it locally, though, so I can't really test or play around much.
User avatar
amirbwb
Forum Commoner
Posts: 89
Joined: Sat Oct 30, 2010 6:10 pm

Re: Very URGENTT :S

Post by amirbwb »

ahh thank you but i does not change the update part :/ ... do you think that the problem is from the web hosting and from the software ??
because this is not explicable !!
User avatar
Celauran
Moderator
Posts: 6427
Joined: Tue Nov 09, 2010 2:39 pm
Location: Montreal, Canada

Re: Very URGENTT :S

Post by Celauran »

I suppose it's not impossible that the change in hosting explains it, but I doubt that's the case.

Everything looked normal when you echoed the query?
User avatar
amirbwb
Forum Commoner
Posts: 89
Joined: Sat Oct 30, 2010 6:10 pm

Re: Very URGENTT :S

Post by amirbwb »

ok i'll try it tomorrow thank you a lot =) hope i can solve it after echoing the query =)
User avatar
amirbwb
Forum Commoner
Posts: 89
Joined: Sat Oct 30, 2010 6:10 pm

Re: Very URGENTT :S

Post by amirbwb »

halilouyaaa i catch the error .... i forgot to write mysql_select_db($datavase_connection,$connection) or die(mysql_errir());

thank you anyway =)
Post Reply