Jump to content

what

New Members
  • Posts

    6
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

what's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. That did it. Thanks guys!
  2. while ($row = mysql_fetch_array($result)) { echo '<tr><td width="98%">'.$row["title"].'</td> <td width="1%"><input type="button" name="View" value="View" OnClick="location.href=\'/admin/files/'.$row["file"].'\'" class="button_60"></td> <td width="1%"><input type="button" name="Download" value="Download" OnClick="location.href=\'file.php?file='.$row["id"].'\'" class="button_60"></td> </tr>'; } @mysql_close();
  3. Hi thanks.. I think something is still missing? I was getting the following errors: Warning: Unexpected character in input: '\' (ASCII=92) state=1 Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ',' or ';' I thought I saw where it was missing a tick from your example (after ["file"] ?), but even though I added it and then I was able to see my page without errors, the button did not work when I clicked on it.
  4. I created a varialble to hold a path to a file folder but I'm having problems integrating it into my button. Can someone please advise? Below I want to replace '/admin/files/' with $files but my attempts just generate errors. <input type="button" name="View" value="View" OnClick="location.href=\'/admin/files/'.$row["file"].'\'" class="button_60"> Thanks
  5. Okay, but I think I need to convert the file names to all upper case because the hrefs are all named in upper case. What do I call this type of htacces file so I can find it, or can you post the code possibly?? Thanks for your advice.
  6. I was asked to help someone with their site and it's beyond me but on one of the pages that contains MANY links they have the page names mixed in upper and lower case, ie. <a href="PAGE.html"></a> The pages are a mixed bag of upper and lower pages too. There is no rhyme or reason for it, it was just a randome act of dumbness I guess. My question is, is there any php I can introduce that will make it not matter the case of the lettering and still find the page? I guess I will need to keep the extension as .html too because of the shear numbers that I will need to change (a few hundred pages and anchor tags) thanks
×
×
  • 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.