Jump to content

Recommended Posts

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

Link to comment
https://forums.phpfreaks.com/topic/37774-big-code-small-error/
Share on other sites

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

Link to comment
https://forums.phpfreaks.com/topic/37774-big-code-small-error/#findComment-188935
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.