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 wOOdy-Soft 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: *

  1. CliffLandin

    Problems with LIKE clause in query

    I am encountering a strange issue. I am querying a mysql database for keyword results using: SELECT * FROM table WHERE title LIKE '%keyword%' and it works fine... but only for certain words. For example, I have 2 properties, Viking Lodge #213 and Franz Klammer Lodge. If I search for Viking...
  2. CliffLandin

    Alpha Transparent background with Image in front

    I am trying to create a div that has a alpha transparent background, but contains images. The problem is that the images inherit the transparency as well. I have tried to give them different z-indexes, wrap them in there own div with backgrounds and setting the divs transparency to none and a...
  3. CliffLandin

    Convert an XML doc to a string

    The Background: I am developing a site that queries a booking agent that returns an XML doc full of booking information. I use file_get_contents to return the data as a string which is then parsed using simplexml_load_string. I had been using simplexml_load_file and passing it the url, but I...
  4. CliffLandin

    IE7 and alpha transparent PNGs

    What do I have to do to make .pngs with alpha transparency work in IE7. I was under the impression that IE7 was supposed to handle them correctly, but it appears that what was the bane of my work day continues to be the bane of my work day. Any help would be appreciated. Thanks, When in...
  5. CliffLandin

    Copying images off of a site

    I need to copy around 7,000 images from a site to my computer. I have a csv file with the image names and the path to the images. I have tried using this... <?php $urlPath = "http://pathtoimages/"; $csvFile = "nameof.csv"; $cnt = 0; $openCSV = fopen($csvFile, "r"); while (($data =...
  6. CliffLandin

    Apache / php Debian Etch

    I have just installed Debian Etch on my laptop and when I try to access any php files on my localhost I get a message saying "Direct Access to this location is not allowed." I can access .html files no problem. I have been using Debian Sarge and Ubuntu for a couple of years and have never had...
  7. CliffLandin

    Postgres Blogs

    I am using an SMC that uses Postgresql and I am trying to find an easy to use blog that uses Postgres. Any suggestions? The client asked me if they could use WordPress, but that uses mySQL. So I am looking for something WordPress like, but using Postgres. When in doubt, go flat out...
  8. CliffLandin

    Creating new fields in Postgres

    I need to add a field to a Postgres db. I have poured over the postgres manual and can't find out how to do it. Any help would be appreciated. Thanks When in doubt, go flat out! http://www.soprisinteractive.com
  9. CliffLandin

    Finding Height and Width Attributes

    Is there a way to find out the height and width attributes of an image? I have a gallery page that displays images from a database. I want the user to be able to enter pictures of any size (within reason) and display them at maximum size if bigger or the correct size if smaller than the max...
  10. CliffLandin

    PNG's, IE, transparency and JS

    I am trying to use a .png as a navigation bar. I am using 'usemap' to create the links and am using JS to lose the grey/blue background created by IE when using transparent PNGs. Here in lies the crux of the problem. The IE/png fix somehow is killing the usemap. It all works fine in any other...
  11. CliffLandin

    Postgres for Mac

    Howdy, I am a Linux user and sometime Windows user, but I am doing some work for someone using thier new OS/X G5 Mac. It has been a long time since I have used a Mac, but it is coming back. I am using the Mac to scan in sketches by this artist and cleaning them up in Photoshop. I have offered to...
  12. CliffLandin

    Relational DB

    I am quite new to relational database programming and I have a quick question.I have created a table that contains job information. The main id is the jobid which is SERIAL. I also have a table that contains photos for each job. They are associated with the job by the jobid. My question is "If...
  13. CliffLandin

    Error checking!

    Okay, I was practicing my postgresql dbase programming when I ran into a problem. Not postgres problem a php problem. The problem is: Using php/html I create a form with the user information. So I check to see that all required fields are filled in using something similar to <code> $user =...
  14. CliffLandin

    !IsSet with $_POST

    Can anyone tell me why this doesn't work. $userName = $_POST["user"]; $passWord = $_POST["pWord"]; if (!IsSet($_POST["user"])) header("Location: http://www.../index.php?error=1"); elseif (!IsSet($_POST["pWord"])) header("Location: http://www.../index.php?error=2"); If I change it to...
  15. CliffLandin

    Validation issues with SESSION variables

    I am almost finished with a site that uses $_SESSION variables which works just fine. However, when I try to validate the page via the W3C validation site (http://validator.w3.org/) I get a slew of errors stemming from the sessionID being passed with every link. I guess that it would be easier...
  16. CliffLandin

    Spaces - the final frontier

    I am not sure how to handle spaces in mysql. As it stands now, using &nbsp enters into the dbase as  or something like that. As a result, when I read from dbase the  is displayed. If the space is represented with %20 it displays properly, but I'm not sure how or why the %20 gets in the dbase...
  17. CliffLandin

    First Field isn't read using SELECT

    I am trying to gather information from a dbase, displaying it as I go. The script works fine except the first field that matches the criteria isn't read or displayed. For example: On this page I check to see if a session variable 'tripNumb' is set. If it isn't, it goes to the dbase and gets...
  18. CliffLandin

    SELECT doesn't work the first time but does the second?

    I am fairly new to mysql but have been using small snippets here and there while writing php pages. I have a site that I am creating that has a simple sign in page and a few other mysql uses. The problem that I am having is that when I first go to the page and try to log on using my username...
  19. CliffLandin

    $_SESSION issues!!!

    I am having a problem with session variables. I can't seem to consistently read them. This how I declare the session variable: session_start(); header("Cache-control: private"); $_SESSION['user'] = $user; This is how I read the variable: session_start(); header("Cache-control: private"); if...
  20. CliffLandin

    issue reading $_COOKIE a second time.

    I am having an issue reading the value from a cookie that I had no problem reading in an earlier page. I have a sign in page that sets a cookie when you sign in. If you then return to the sign in page during the session it will redirect you to the next page, no sign in required. The cookie holds...

Part and Inventory Search

Back
Top