Jump to content

XpertWorlock

Members
  • Posts

    123
  • Joined

  • Last visited

Everything posted by XpertWorlock

  1. My problem was with WAMP. A separate directory for a project was causing your '/' to look in the 'localhost' directory. Is there any easy way of having it work both on a site and offline? Example project being http://localhost/testProject Looks for CSS or whatever in localhost directory and not testProject, or am I required to load everything straight into the localhost folder?
  2. -SNIP- I got it, thanks for your help cags
  3. I know what you mean, and I must be missing something, perhaps from the .htaccess file The link to the css file in the test file, which is in the root directory: <link rel="stylesheet" type="text/css" href="css/stylesheet.css"/> So naturally searching test.php?id=1 would work fine, but since it's being changed to test/1 it isn't... Sorry to repeat myself, but better more info than less. Here is what the .htaccess file is. Options +FollowSymLinks RewriteEngine On RewriteRule ^test/([0-9]+)/?$ test.php?id=$1 [NC] Correct?
  4. you say absolute and than relative? you mean the full absolute url in each css file like http://whatever.com/css/stylesheet.css ?
  5. Question, when doing a mod rewrite when it comes to long urls lets say for example ; test.php?id=1 to test/1 Now, all the files (css, js) are looking for them in the "1" directory which obviously does not exist. I have listed everything as relative. Is the fix for this to link everything absolute?
  6. How can I make the height of a hyperlink in IE work. <a href="test.html" style="position:absolute; height:30px; width:57px; overflow:hidden"></a> This works in firefox, but IE doesn't seem to take the height into effect. Am I wrong, or is their a different way, without javascript
  7. What would be the simplest way of having a page retrieve data from another domain securely, without SSL? Personal information, not CC or anything, but still needs to be secure. P.S. I posted in this app/lib forum because, if there is a way, there would probably be a library for it.
  8. Yes it was fixed by proper comments, I knew it had something to do with that. Didn't look right to me, thanks
  9. What part Huh? I know its confusing, but if I understand what part is confusing, I'll explain better
  10. Here is the query SELECT * FROM files WHERE keywords RLIKE 'july' || keywords RLIKE '2008' && keywords NOT RLIKE 'membersonly' || title RLIKE 'july' || title RLIKE '2008' I want any of the "keywords" to be brought up, as long as one of the keywords is not "membersonly" It works perfectly without it, but as I don't want the "membersonly" keyword, it decides to bring it up. the way the column keywords is set up is each word has a space in between, one row is 'membersonly july 2008'. This shouldn't show up What am I doing wrong here, I'm assuming it has to be just a bad query design.
  11. Although your reply was very simple, it couldn't be better, thank you
  12. Pretty simple and understanding. I want to INSERT a row which has an ID that auto increments. Is there anyway of getting that ID back without another query? The only way I have thought is to automatically set the ID, but I would rather have it auto increment Or... if anyone knows where I'm coming from and has a better idea, feel free to share
  13. thanks I'll take a look into them
  14. I'm having problem updating a column and appending new data, it does not want to append as a string, instead it adds the two numbers together mysql_query("UPDATE users SET usersDenied = usersDenied + ( '$_SESSION[id]') WHERE id = '$_POST[iD]'"); usersDenied would be something like '5,' So I want to add something like '2,' making it '5, 2,' instead it will just add the two making the value 7. I've tried '+' and also tried '.', obviously I'm doing something wrong. I assume this is still possible to do. Also I'm having a hard time inserting commas into usersDenied which has a type of 'text'. I've added back slashes and tried without backslashes, but have had no luck Anyways thanks for looking at this
  15. yes, I was thinking another table just for something like this. And yeah I understand that it'd have to be constantly updated. In the example for instance, every post would require atleast 2 query's, one for the post and than one to update the count
  16. I got a question which I will use an example which everyone can understand, let's say you have a forum. Now you want to show the post count of a user. Now there are two ways of doing it, slow and taxing on the server vs faster and instant. A. Count all the posts of a user B. Have a column strictly for post count Now, if someone was going to go B., it would be quicker. The actual question is, let's say you have multiple instances where going the B. route would be more efficient, is having 5-20 extra columns a bad thing in a database table? Is there such thing as too many columns, as going the B. way would be much more efficient? Thanks
  17. Your getting 404 errors on two of the same file jquery.color.min.js Don't know if this is associated with the lightbox. Looks like all the required files are there otherwise, the HTML looks right. Did you try Thickbox? It works with no problems and easy to be modified.
  18. Yeah there are tons, I don't know exact links, but your best bet is googling "jquery image gallerys" or "jquery slideshows" Also, if you got the time/know how, write your own.
  19. so thats the way it is done? Interesting
  20. I'm interested in knowing the best way to deal with sessions, especially when it comes to a website that is over multiple servers. Is the best way to store the session data in a database, give the user a cookie containing the session id and than that way if the user is switched to a different server, than it will request all the session data? Although I've never had a website where I've needed this, I'd like to learn and enforce this to prevent problems in the future. Thanks guys
  21. I'm having a brain fart. Currently stylesheet is set up as : p {text-indent:15px} Now if I have an image only set inside a paragraph (don't ask), how can I get it so it does not indent?
  22. I understand image maps can be used with images in html, does css image mapping work with background images?
  23. Yeah that was my problem, I did not declare it before, although it worked offline, a safer programmer would have declared it before just to be safe. I'll make sure I know that for next time. Solution : Declare the array!
  24. if(mysql_num_rows($result) > 0) { $i=1; while($row = mysql_fetch_array($result)) { $news[$i] = new newsArticle(); $news[$i]->setDate($row['date'] - (3600*5)); //SET TO 5, WILL HAVE TO CONFIGURE $news[$i]->setTitle(mysql_real_escape_string($row['title'])); $news[$i]->setAuthor($row['author']); $news[$i]->setDescription(mysql_real_escape_string($row['description'])); $news[$i]->setID($row['id']); $i++; } } The $i is just to go through an array. Like I said it works perfectly offline, doesn't want to work online though
×
×
  • 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.