Jump to content

ErcFrtz

Members
  • Posts

    27
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

ErcFrtz's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. I figured out why it wasn't working and have got it working. Problem solved.
  2. My problem is this. I have javascript that when a link is clicked it displays the link in a layer over the current page. The new layer is included using the php include command. However when the new layer is displayed, the javascripts that are supposed to run in the new layer do not work. Code examples follow: Original page: <head> <script src="scripts/createAjaxObject.js" type="text/javascript" language="javascript"></script> <script src="scripts/radiocheck.js" type="text/javascript" language="javascript"></script> <script src="scripts/popupscript.js" type="text/javascript" language="javascript"></script> </head> <body> <?php include('search.php'); ?> <table id="blocks"> <tr><td> <h1><a onClick="javascript:displaysearch();">Search</a></h1> </td></tr> </table><br /> The search page that's included: <div id="searchpopup"> <div id="closeBox">Close ⊗</div> <div id="wrapper"> <div id="popupcontent"> content... <p> <input name="searchType" type="radio" value="general" id="generalsearch" onClick="changeInfo('general','single');"> <label for="generalsearch">Search for multiple pigs based on general information.</label> </p> </div> </div> </div> The javascripts: function createObject() { var request_type; var browser = navigator.appName; if(browser == "Microsoft Internet Explorer") { request_type = new ActiveXObject("Microsoft.XMLHTTP"); } else { request_type = new XMLHttpRequest(); } return request_type; } var http = createObject(); function changeInfo(type1, type2) { document.getElementById(type1 + "Display").style.display = 'block'; document.getElementById(type2 + "Display").style.display = 'none'; } function showInfo(type) { if(document.getElementById(type + "Display").style.display == 'none') {document.getElementById(type + "Display").style.display = 'block';} else {document.getElementById(type + "Display").style.display = 'none';} } function displaysearch() { document.getElementById('searchpopup').style.display = 'block'; document.getElementById('closeBox').onclick = function(){document.getElementyById('searchpopup').style.display = 'none';} } Now when I click the link on the original page is shows the searchpopup just fine. However, my closebox doesn't actually hide the searchpopup and the changeinfo() does not seem to show/hide the information it's supposed to either. Do I have to have the actual php/hmtl in the original file and not included using the php include command?
  3. I have a couple of websites that access databases as well as utilize programs to create output and then has the option of mailing this information to the users email. I use the mail() function to do this and everything was working fine. A couple of days ago it stopped working. Everything in the php scripts runs fine except it does not email the files anymore. The user doesn't receive any emails. I am not the administrator of the server that the websites are hosted on but I know who is and he claims that nothing has changed that should cause that to stop working, but if all the scripts just stopped working at once, I would assume it to be something with the server. Does anyone have any suggestions on how to go about testing things to determine where the problem lies? I have searched and at least in my searches found that there is no reliable way to capture errors from mail(). Any help would be appreciated. Thanks.
  4. It's set at E_ALL & ~E_NOTICE
  5. I used the code to turn on error reporting in case it was off, but I still get a blank page. It's almost like the php script isn't even attempting to run. And I would do this through the command line if I could, but I'm creating a website for users that have no programming experience at all, so that they can pull the information from the database using a webpage.
  6. I have searched and searched for an answer to the following question but have been unable to find an answer. I even searched these forums. Perhaps I am searching using the wrongs terms. Well here is the question. I have a PHP script that executes a large mysql query (60,000 separate entries for 1 individual with up to 200 individuals selected at a time) and the PHP script immediately returns a blank page. I'm sure it's not an error in my script because it works for smaller queries. Is doing a query of this size possible?
  7. Thank you. using trim() worked.
  8. This method is not working. I've tried exploding the string and eliminating it that way too but it's a single word on each line and it doesn't seem to eliminate the problem at all.
  9. Hello, I have the following code: if(file_exists($pigIDFile) && is_readable($pigIDFile)) { $readFile = file($pigIDFile); foreach($readFile as $line) { $pigIDarray[] = $line; } } My question is with this code it puts the new line character at the end of each entry and I just want each line without that new line character. How do I eliminate it from $line so that my array is populated with each line without the new line character?
×
×
  • 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.