Search results

  1. marshian

    External CSS above root folder

    You can't link to any files client-side that aren't publicly available. If you have a file above public_html (or www), you simply cannot link to it. So you'll have to move your css inside public_html.
  2. marshian

    need help in c++

    @Mission, you're right, the structs should have been before the function definitions. Also the "struct" keyword isn't required (although that caused some strange results in my last C++ project o.O). It's still allowed though, so I only moved the struct definitions. Revised code: #include...
  3. marshian

    need help in c++

    Since I have Linux I can't test it for you (our non-standard headers differ), but I think the following code should be more likely to compile. #include <iostream> #include <conio.h> // For getch() and clrscr() #include <math.h> // For Math Functions #include <stdio.h> // For gets()...
  4. marshian

    Flash Website Help

    x10 is currently moving some servers, it maybe that your account is hosted on an affected server, which can increase the load time for your site. Check this here: http://status.x10hosting.com/ = Warning: rants below = Your site appears to load fine for me though, but it doesn't exactly work...
  5. marshian

    PHP mail() hiding recipients

    Sorry, but I don't understand what you're saying now, your sentence makes no sense... Do you want the user to see his own mail address and nothing else? That'd be a bit hard, the "To" header gets send to every recipient, so it's never going to work with just one mail. In fact, it would only be...
  6. marshian

    PHP mail() hiding recipients

    Fill in a void entry for "To" and the actual e-mail addresses in "Bcc". "To: Undisclosed Recipients <no-reply@mich.exofire.net>\r\n" for example.
  7. marshian

    Inserting chinese text into mysql

    Try this bit of code: (I'm not sure about the 3rd line, the \s might be picked up by the PHP parser. If it complains, change \s to \\s.) // \s can be any whitespace character (\n, \t, " "), the + means once or more. // Whenever any whitespace is found in the entire string, it's removed...
  8. marshian

    .htaccess redirect

    I haven't tested it, but I think something like this should work: RewriteEngine on RewriteRule ^Merchant2/merchant\.mvc\?(.*&)?Product_Code=([^&]+)(&.*)? /$2.html [R=301,L]
  9. marshian

    MySQL troubles

    The error is in line 135 in the query. I think the part "FROM posts p,posts_text" is wrong. As far as I know it's not possible to select from two tables, so that wouldn't be correct.
  10. marshian

    Inserting chinese text into mysql

    Looking at your explanation it's not completely clear to me what you want to achieve, sorry. Is my assumption correct that you would want with the above input that the following variables have these values when you fill in $values? $chaptersArray = array("第一課", "第二課", "第三課", "第四課", "第五課"...
  11. marshian

    Inserting chinese text into mysql

    Haha, good to hear you managed to solve it :) The script probably broke down because you used UTF-8 to send the data, which should be able to display the Chinese characters without using NCR, while you were using NCR's in your script. Copying the Chinese characters to your PHP probably defaulted...
  12. marshian

    Inserting chinese text into mysql

    Just to make sure we understand each other, 課 (whatever that may mean xD) would translate into something like , right? Let's see, troubleshooting time. I've got two suspects at the moment: 1. What's the character set for the field you're storing the data in? 2. HTTP might not be able to work...
  13. marshian

    Inserting chinese text into mysql

    Chinese characters are only available in Unicode, so storing the data as Unicode should have the effect you need. I don't understand where you have a problem? Does the data come out wrong?
  14. marshian

    Redirect www.mydomain.com to mydomain.com

    This should work (Boss turned it around and added some useless code to it) : RewriteEngine on RewriteCond %{HTTP_HOST} ^www.yoursite.com$ RewriteRule ^(.*)$ http://yoursite.com/$1 [R=permanent, L] And yes, you can replace "yoursite.com" with your actual domain. Edit: about your www.xyz.com to...
  15. marshian

    Case insensitive redirect

    For even further future reference, it's mod_rewrite they're talking about =P Further more, NC doesn't decapitalise the string at all, it just makes the pattern case-insensitive. Perhaps it happens to work for you, but there's no reason why it should. Adding this to your htaccess *should* work...
  16. marshian

    view only once php block

    If you do some more general research on php and build a login system you'll notice it's easy. 1. Check (in the database) whether the user can see the block. 2a. If allowed: display the block (*) 3a. Update the database 2b. If not allowed: display something else (*) redirecting after a...
  17. marshian

    Spinning Picture Menu

    Which script are you referring to now? Maybe we can change it's behaviour with a few minor changes.
  18. marshian

    Spinning Picture Menu

    I'm not exactly sure what you want, but try looking on this site: http://dynamicdrive.com/dynamicindex4/indexb.html
  19. marshian

    row_number SQL Help

    I'm not that good with sql, but there must be an error in there. Try using the function mysql_error() after you executed the query, it should give some details on the error.
Top