suttercain Posted February 9, 2007 Share Posted February 9, 2007 Hey everyone, I have a site that runs on a php CMS (Nuke) system. A friend and I built a module for the site (he did most of it really) but now I am having a problem with it. There are two pages: index.php search.php The index contains 90% of the code and allows me to upload comic book titles, pictures, plots, etc. Up until about a week ago I was also able to enter the publication date using a drop down date menu (Day, Month, Year) but it just disappeared. the drop down no longer shows up for me to enter the date info. The same effect can be seen on the search page. Before a user could search not only by title but also between two dates... those menus have also vanished. I have not touched the code and to my knowledge nothing has been changed in mysql or on the server that would have caused this problem. SITE: This is the page where I can enter and upload the info... notice how it still says DATE: but doesn't give me the drop down menu. http://supermandatabase.com/modules.php?name=4ndvddb&rop=add_dvd This is the search page where I can no longer weed out comics by date: http://www.supermandatabase.com/modules.php?name=4ndvddb&op=modload&file=search The code is pretty big and this forum won't allow me to post it because "The message exceeds the maximum allowed length (40000 characters)." But here is the link to both files viewable via html Index.php http://www.supermandatabase.com/php/index.html Search.php http://www.supermandatabase.com/php/search.html Thanks in advance for any help or advice Quote Link to comment https://forums.phpfreaks.com/topic/37774-big-code-small-error/ Share on other sites More sharing options...
suttercain Posted February 12, 2007 Author Share Posted February 12, 2007 sniffle sniffle Quote Link to comment https://forums.phpfreaks.com/topic/37774-big-code-small-error/#findComment-183172 Share on other sites More sharing options...
redarrow Posted February 12, 2007 Share Posted February 12, 2007 ur have to post the form where the date is supose tO show and the date function ok. tried to get it no luck. you might of told the form where date is to be hidden dont no yet ok. Quote Link to comment https://forums.phpfreaks.com/topic/37774-big-code-small-error/#findComment-183177 Share on other sites More sharing options...
suttercain Posted February 14, 2007 Author Share Posted February 14, 2007 Okay. Thanks. I tried looking through this thing a hundred times, no luck. It was working fine one day, then stopped. I am in over my head. Quote Link to comment https://forums.phpfreaks.com/topic/37774-big-code-small-error/#findComment-184729 Share on other sites More sharing options...
effigy Posted February 14, 2007 Share Posted February 14, 2007 This area is calling DateInput("date", true, "YYYY-MM-DD"). After the page loads, I get an error in my javascript console saying "DateInput is not defined." Quote Link to comment https://forums.phpfreaks.com/topic/37774-big-code-small-error/#findComment-184740 Share on other sites More sharing options...
suttercain Posted February 19, 2007 Author Share Posted February 19, 2007 How would one define it? It's just so weird. Was working fine from August to November then stopped. Quote Link to comment https://forums.phpfreaks.com/topic/37774-big-code-small-error/#findComment-188362 Share on other sites More sharing options...
Asheeown Posted February 19, 2007 Share Posted February 19, 2007 post the code Quote Link to comment https://forums.phpfreaks.com/topic/37774-big-code-small-error/#findComment-188372 Share on other sites More sharing options...
suttercain Posted February 19, 2007 Author Share Posted February 19, 2007 See my first post... it's way to big to post here. It's in an HTML file on my server. Quote Link to comment https://forums.phpfreaks.com/topic/37774-big-code-small-error/#findComment-188377 Share on other sites More sharing options...
Asheeown Posted February 19, 2007 Share Posted February 19, 2007 Where is the function DateInput being built, or anything with it, it's just put there without any signs of it actually being defined Quote Link to comment https://forums.phpfreaks.com/topic/37774-big-code-small-error/#findComment-188383 Share on other sites More sharing options...
suttercain Posted February 19, 2007 Author Share Posted February 19, 2007 on which line? to be honest I am a newbie and I had most of the code done by a friend. Quote Link to comment https://forums.phpfreaks.com/topic/37774-big-code-small-error/#findComment-188384 Share on other sites More sharing options...
Asheeown Posted February 19, 2007 Share Posted February 19, 2007 In your script when you say DateInput("date", true, "YYYY-MM-DD")....How does PHP know what "DateInput" is supposed to do? For every function that you use that isn't built in PHP already you have to make For example <?php function DateInput($Variable,$AnotherVariable = "",$LastVariable) { // Do something with $Variable // Do something with $AnotherVariable // Do Something with $LastVariable // echo out a result } DateInput($Date,"true",$CurrentDate); ?> Thats how you would setup a function, of course that was thrown together in a matter of 2 minutes and your variables and such will actually be real , but it should give you a basic idea of how a function works, either that or you can look up a few tutorials on functions Quote Link to comment https://forums.phpfreaks.com/topic/37774-big-code-small-error/#findComment-188935 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.