Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: anders2002
  • Content: Threads
  • Order by date
  1. anders2002

    Findout the page we're in?

    Hi I would like an include in a PHP script to indentify the page into which it has been included....how can I do this? Tried the $http_referer but that's not giving me the right answer as it tells me the link that loaded the page that calls the include file... Cheers, Anders
  2. anders2002

    Autoload a webpage

    Hi, How do I setup a linux system using CRON to automatically open/view a PHP page (or just execute its content!) Ideally I want a php page to be run every morning at 1am that performs a number of email routines via data from a mysql database. Is CRON the right area to be looking in for this...
  3. anders2002

    Search scripts

    Hi, I've got a problem with a search I am trying to perform in MySQL: I have a company table and a contacts table. They are linked by a table called contactassocs which simply assigns an ID to an entry where the companyId and contactID and entered. This is the assocID. I want to do a 'like'...
  4. anders2002

    Alias Directory

    Hi, I am trying to setup my apache installation so that when a php script attempts the following include: /var/www/main/glcorp_php_settings/settings.php it actually looks at: C:/Program Files/Apache Group/Apache/htdocs/glcorp_php_settings/settings.php How can this be done? I have tried...
  5. anders2002

    NOT distinct???

    Hi, Is it possible to run a simple query that will return entries in a table that are NOT distinct? Like: Select !distinct from categoryassocs The table contacts ID1 and ID2 and I need to know where there are duplicates? Any ideas? Thanks, Anderz
  6. anders2002

    Multiple DB import/export

    Hi, Can anyone explain how to export multiple (i.e. ALL) DBs from one server as a single file then import then to a new server in one go? Anderz
  7. anders2002

    PDF creation problem in Quark 4.11

    Hi, Can anyone help explain why it is that when I try to send my 4-page Quark file to Acrobat Distiller only the 1st page prints? When I send it to a paper printer all pages print??? It is only in this specific Quark file that I am having the problem. Has anyone else come across this issue...
  8. anders2002

    Refresh/Reload Problem

    Hi, I use this code: onClick=\"opener.parent.mainFrame.location.reload();window.close();\" To close a window and refresh the parent window. However, becuuse the parent output is set by it first of all retrieving a $_GET variable from PHP I get a browser error stating that "The...
  9. anders2002

    Cookie timeout

    Hi, Can anyone explain how to make a cookie last 1hr but to erase on browser close? Thanks, Anderz
  10. anders2002

    Form field blanks on carriage return

    Hi, Bit of an odd problem: I have a simple form with a text field, and next to it a 'Submit' button. When entering text into the field and pressing the carriage return button on my keyboard the text field goes blank and nothing is submitted. It is only when I click the Submit button with the...
  11. anders2002

    Scoring a MYSQL result

    Hi, Is there a way to score a mysql query result not in how many rows it produces but in how many cells it returns per row that contain data and are not null? Cheers, Anders
  12. anders2002

    Using a PHP page to provide a complete MySQL DB Backup

    Hi, Is there a simple way I can have a PHP page/Link automatically create a backup of a MySql DB when it is accessed? I currently use PHPMYADMIN but would like to learn how this is done from scratch so I can put a small link in an online system I have written that allows Administrators to...
  13. anders2002

    Exporting mysql db from PHP

    Hi, Does anyone know how to export the contents of a mysql db via PHP? Ideally, I'd like to have a button on a website that will export the contents of the mysql DB to a text file (as you can using phpmyadmin) and save it away as a backup? Many thanks, Anders
  14. anders2002

    Timeout on A HREF Title

    Hi, Does anyone know how i can make a title on an <a href> tag appear indefinately or even for longer than default? At the moment it stays on screen for about 5-10 seconds and then disappears? Cheers, Anders
  15. anders2002

    Read access problem with fopen

    Hi, Can anyone help me find out why this line will not work on a remote php server (it simply outputs a 'page not found' error) but when i host it locally it works? $fp = fopen(&quot;temp.csv&quot;,&quot;r&quot;) or die(&quot;Couldn't open&quot;); If i change it to write access &quot;w&quot...
  16. anders2002

    Complicated string output problem

    Hi, I', trying to write a piece of code that reads a string and only outputs the information that sits before a space: i.e. &quot;anders@dwl.co.uk Subject:&quot; would be outputted as &quot;anders@dwl.co.uk&quot; I need to do this as I am trying to strip email addresses from a large CSV...
  17. anders2002

    Meta Tags

    Hi, I am editing a website so that its index.html pages forward to index.php files so I can make the pages dynamic without changing any existing links. My question is - can I move all the meta tag keywords and descriptions to the index.php files and remove them from the index.html pages without...
  18. anders2002

    Does a &quot;Like&quot; Command Exist??

    Hi, Is there such a think as the 'like' command in PHP that can be used as: if ($value like &quot;hello&quot;){ print &quot;whatever&quot;; } As you can in MySQL?? Thanks, Anders
  19. anders2002

    Date comparison in MS SQL

    Hi, I am trying to compare dates in MS SQL where the dates are stored in a 'Enddate' table in this format: dd/mm/yyyy I am trying to return records where the Enddate is less than 3 days away, and the less than 7 and more than 3. Can anyone help? I cannot get datediff to work? I am...
  20. anders2002

    Date comparisons

    Hi, Can anyone tell me how i can get mySQL to tell me how many days there are between two dates stored in a mysql database? cheers, Anders

Part and Inventory Search

Back
Top