Click here to Skip to main content
15,891,951 members
Home / Discussions / Web Development
   

Web Development

 
SuggestionRe: MVC PostBackURL Pin
Sandeep Mewara21-Jun-12 17:28
mveSandeep Mewara21-Jun-12 17:28 
GeneralRe: MVC PostBackURL Pin
AghaKhan21-Jun-12 21:19
AghaKhan21-Jun-12 21:19 
Questionfrom .dbf FoxPro to MySql Pin
Susy Nainggolan18-Jun-12 18:16
Susy Nainggolan18-Jun-12 18:16 
AnswerRe: from .dbf FoxPro to MySql Pin
enhzflep18-Jun-12 18:58
enhzflep18-Jun-12 18:58 
GeneralRe: from .dbf FoxPro to MySql Pin
Susy Nainggolan18-Jun-12 21:00
Susy Nainggolan18-Jun-12 21:00 
GeneralRe: from .dbf FoxPro to MySql Pin
enhzflep18-Jun-12 21:18
enhzflep18-Jun-12 21:18 
GeneralRe: from .dbf FoxPro to MySql Pin
Susy Nainggolan18-Jun-12 22:42
Susy Nainggolan18-Jun-12 22:42 
GeneralRe: from .dbf FoxPro to MySql Pin
enhzflep18-Jun-12 23:37
enhzflep18-Jun-12 23:37 
Hmmm. Okay - that was actually the class I was going to recommend you use.

Now then, the text "length" appears in that document 3 times - each of these are in the comments.

I also see that it doesn't include any other php files, so I can only deduce that the error message is coming from MySql itself. Its very difficult to tell, since you didn't copy/paste the exact error message. (I doubt the error message is going to spell 'length' as 'lenght' Poke tongue | ;-P )

This makes me consider the possibility that there is in fact, nothing wrong with this code, and that the problem lies in the database structure.

Another alternative is that (& I don't know) perhaps the FoxPro database has a field with NULL in it and you're trying to insert that, but since there's no value, an empty parameter is being passed to mysql, rather than a zero or NULL value..

However, since the code has been around for so long, (at least since 2004) it seems unlikely that it still has an error.

I see that you've made this modification:
PHP
if (!file_exists($filename)) {
echo "<script>alert('Masukkan data DBF')</script>";
}


In the original code, there is an exit statement in that block, so that execution wont continue if there's a problem. In your case, it does! (continue if there's a problem)
I'd change that quick-smart!
PHP
if (!file_exists($filename)) 
{
        echo 'Masukkan data DBF'"
        exit;
}



I suggest that you add some more printf/echo statements to the class to let you know when execution passes certain arbitrary points. A good first location would be after the file has been read and then closed.

At least then you can know where processing gets to before failure - this lets you know which data is being processed at this point and dismiss or confirm that it's the data.

But in any case, often a quick way is to add more echo statements so you know where execution fails.

Good luck. Thumbs Up | :thumbsup:
GeneralRe: from .dbf FoxPro to MySql Pin
Susy Nainggolan18-Jun-12 23:46
Susy Nainggolan18-Jun-12 23:46 
GeneralRe: from .dbf FoxPro to MySql Pin
enhzflep18-Jun-12 23:57
enhzflep18-Jun-12 23:57 
Questionweb service + soap+ xml Pin
moiamal18-Jun-12 2:52
moiamal18-Jun-12 2:52 
AnswerRe: web service + soap+ xml Pin
Sandeep Mewara18-Jun-12 19:58
mveSandeep Mewara18-Jun-12 19:58 
AnswerMessage Closed Pin
19-Jun-12 0:21
moiamal19-Jun-12 0:21 
SuggestionRe: web service + soap+ xml Pin
Rahul Rajat Singh26-Jun-12 0:50
professionalRahul Rajat Singh26-Jun-12 0:50 
GeneralRe: web service + soap+ xml Pin
moiamal26-Jun-12 1:17
moiamal26-Jun-12 1:17 
Questionmysql format number Pin
Jassim Rahma18-Jun-12 2:52
Jassim Rahma18-Jun-12 2:52 
AnswerRe: mysql format number Pin
Bernhard Hiller18-Jun-12 4:16
Bernhard Hiller18-Jun-12 4:16 
QuestionHelp Vadim Segal To Create Contact Us Form For The Website Pin
VadimSegal17-Jun-12 21:40
VadimSegal17-Jun-12 21:40 
QuestionA .Net ligth-weight REST server framework Pin
CodingBruce16-Jun-12 6:08
CodingBruce16-Jun-12 6:08 
QuestionAttendance system in asp.net Pin
Ajit001016-Jun-12 1:45
Ajit001016-Jun-12 1:45 
AnswerRe: Attendance system in asp.net Pin
Sandeep Mewara16-Jun-12 3:09
mveSandeep Mewara16-Jun-12 3:09 
Questionredirect based on language Pin
Jassim Rahma14-Jun-12 5:10
Jassim Rahma14-Jun-12 5:10 
AnswerRe: redirect based on language Pin
Gerben Jongerius14-Jun-12 20:29
Gerben Jongerius14-Jun-12 20:29 
Questiontab in CodeIgniter Pin
Susy Nainggolan13-Jun-12 21:44
Susy Nainggolan13-Jun-12 21:44 
QuestionWeb Devlopment Pin
Okezie Victor12-Jun-12 0:27
Okezie Victor12-Jun-12 0:27 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.