Search results

  1. marshian

    LOAD DATA LOCAL INFILE help...

    Try to use mysql_error() to know more about the error mysql encounters.
  2. marshian

    php Progress bar

    You can do something like... when the php script starts, set a session variable to 0 (0%) while the php script runs, change that number (0 -> 100%) meanwhile, ANOTHER PAGE shows the progress bar using javascript it requests a 3rd php page which returns the session variable again using...
  3. marshian

    It works! ...

    FireFox' error console on the photo page: Warning: Error in parsing value for property 'font-family'. Declaration dropped. Source File: http://bpakidz.pcriot.com/photos.html Line: 11 Warning: Error in parsing value for property 'font-family'. Declaration dropped. Source File...
  4. marshian

    php Progress bar

    If you want to make a moving progress bar for something, you have to use some client-side scripting (javascript, flash, w/e) but not php
  5. marshian

    Can I get help with this ..

    Add your co.cc domain to your parked domains, put your x10 subdomain back in the control panel (your screenie) and make sure your domain is an NS record to "ns1.x10hosting.com" and "ns2.x10hosting.com"
  6. marshian

    Can I get help with this ..

    Have you successfully added this domain to your account? (parked domains) This looks like http://ns1.x10hosting.com, meaning the x10 nameserver doesn't know what account this domain belongs to. (For some reason, tracert won't resolve me this domain <.<)
  7. marshian

    How do you set up CO.CC domain ?

    I don't think you have to touch that, just use the manage dns... at least i never saw that when i still had a co.cc domain ;p
  8. marshian

    How do you set up CO.CC domain ?

    It's twice the same image, but you should put ns1.x10hosting.com and ns2.x10hosting.com there EDIT: also, it takes up to 48h to update the nameservers
  9. marshian

    New to PHP and very confused...

    Say you got a query part of an url ?var1=value , you can access variable var1 as $_GET["var1"]. If you have Register Globals on, you can also access it as $var1 .
  10. marshian

    New to PHP and very confused...

    I can't remember which setting did this, but there's a setting in php which makes all post/get data a global variable. This is a large security risk. That's why you should always disable that setting! This is also why your script is not working. As xP already pointed out, you could use $_GET or...
  11. marshian

    Can I get help with this ..

    What are you trying to do? I'm guessing you should add "INSERT INTO `tablename`" at the start of the database, but I'm not sure, as this 'query' doesn't really mention what he tries to achieve.
  12. marshian

    HTML Form to email?

    *wheeeeee, let's post responses that are actually incorrect! =D* Ok, clearly, a client-side validation is useless, as the user is able to go around that very easely. Just use the server-side validation. (In the PHP code.) (Usually the 2 are combined.) The META-redirect should work, but is not...
  13. marshian

    HTML Form to email?

    I've never heard of any 'script' like your outing.txt ... Try to make a file "outing.php" (and also put it as the action of the form) <?php $text = "Name: {$_POST["required-name"]}\n"; $text .= "Email: {$_POST["email"]}\n"; $text .= "Phone number: {$_POST["phone"]}\n"; $text .=...
  14. marshian

    iframe help

    Yes. Obviously I'll give some more info than just "Yes.", but that's all you asked for :p It's actually quite easy, a normal <a> tag looks like this: <a href="http://forums.x10hosting.com/programming-help/url"> But there's a parameter "target" too: <a...
  15. marshian

    which is better xhtml or html, javascript or ajax

    I agree with XHTML being easier to maintain, but the doctype isn't right I think... I beleive W3C would complain about not finding an encoding... I always use <?xml version="1.0" encoding="ISO-8859-15" ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"...
  16. marshian

    PHP - Sessions Not Registering - Internet Explorer

    I'm quite sure Internet Explorer is not accepting cookies... As this is what you already mentioned. Sessions are not only server-based, setting a session has to happen before any output since it sends a header, more specificly a cookie... Session-data is stored server-side, but the server has to...
  17. marshian

    Multiple date & time support

    An example: $result = mysql_fetch_array(mysql_query("some query here")); $time = $result["time"]; //Unix timestamp, we suppose it's 1000000 $result = mysql_fetch_array(mysql_query("some query here")); $usertimezone = $result["timezone"]; //We'll suppose this is -10 (= GMT-10) $localisedtime =...
  18. marshian

    Help with HTML code cleaning (javascript)

    @willemvo: The actual source the user sees has to be a clean, so PHP is not an option. You can set events after the page has loaded: Suppose we have your example: <div id="act"/> And we want it to have the same behaviour as: <div id="act" onclick="dostuff()" /> Then this code...
  19. marshian

    Trying to get property of non-object

    I'm guessing $result is a mysql result? If so, make sure you've used mysql_fetch_object(), and not mysql_fetch_array(). That could be the problem (Arrays are not objects in php as far as I know)
  20. marshian

    Php

    PHP is server-side, sliding menu's is client-side <-- see my point? You can't use PHP to make sliding menu's... You need some sort of client-side language/application to do that. (JavaScript being a good option.)
Top