Jump to content

Zane

Administrators
  • Posts

    4,362
  • Joined

  • Last visited

  • Days Won

    11

Everything posted by Zane

  1. google "AJAX tutorial" http://www.google.com/search?q=AJAX+tutorial&ie=utf-8&oe=utf-8&aq=t&rls=org.mozilla:en-US:official&client=firefox-a The top results
  2. PHP cannot capture clicks. To Javascript this goes
  3. either way, you'll have to read the entire file into buffer unless you use fseek and cut some of it off.
  4. figured it would be faster than 600000 mysql_query calls.
  5. I swear I've done multiple statements in one mysql_query so long as one isn't a SELECT or CREATE statement.
  6. If you are initiating a query 60000 times then that may have something to do with it being slow. do it like this for ( $counter = 0; $counter $sql . = "INSERT INTO stuff (id) VALUES(1);\n"; } $query = mysql_query($sql) or die(mysql_error());
  7. $t = date("G"); if($t >= 18 && $t else echo "The page is no longer available"; ?> using the same header idea this should do exactly what you want
  8. Only thing I can possibly think of is that you are either selecting this on the wrong table, the user actually doesn't exist, you're mispelling something or....I'm out of ideas.....need sleep
  9. dont use a die() statement to say that just echo it echo 'That member does not exist in our database.'; I'm not gonna guarentee that'll solve your problem, but die is meant to be used at the end of statements like mysql_query() or die("AAAAAAHHH"); EDIT ---------------- Well, I see you have one above that and the script is still getting past it....so scratch that idea. but I'd still use echo
  10. What on earth is Jumi?
  11. This $sql2 = mysql_num_rows($sql); should be $sql2 = mysql_num_rows($result);
  12. echo $sql; You were already, at one point.
  13. what does your query look like now echo it
  14. huh?
  15. ok.. but still does the query work if you put the tablename explicitly?
  16. dunno why you didn't get an error for the space after "databasename " but anyway...you say you've only got one database you've already selected it using mysql_select_db so you don't need to clarify it again in the SQL "INSERT INTO `databasename `.`$tableentry` (`id` ,`ti..... just try "INSERT INTO `$tableentry` (`id` ,`ti and if that doesn't work...then I dunno. If there's only one table why do you need a variable to hold the tableentry anyway....just put it explicity "INSERT INTO `yourtablenamehere` (`id` ,`ti
  17. take the S off of DAYS MySQL should really fix a bug like that apparently it goes for everything
  18. well if the or die(mysql_error()) did nothing....then there isn't an error with your SQL. perhaps it is inserting but in the wrong place?
  19. Nevermind...I see what you're doing yes, you can make a script from saving you making 100+ PHP pages look at the $_GET variable $quote = $_GET['company']; $url = "http://in.finance.yahoo.com/d/quotes.csv?s=" . $quote . "&f=sl1d1t1c1ohgvwmj5j6k4k5t7m3m7m8m4m5m6npbaa5a2kj&e=.csv"; now you can load you PHP script like this one_of_your_hundreds_of_files.php?company=GOOG poof! solved
  20. I'm lost....can you explain by screenshots it'll be like reading a book with lots of pictures...which I like Also, I'd imagine that Yahoo has it's own API ....open-source...to give people this information. You shouldn't have to overload their servers with 100 HTTP Requests Did a quick google for you http://www.gummy-stuff.org/Yahoo-data.htm
  21. all you need to do is hit the report to moderator button and it will be moved.
  22. OK, step one add this or die(mysql_error()) to this $result = mysql_query($sql); resulting in $result = mysql_query($sql) or die(mysql_error());
  23. Now we're gettin somewhere.... you've got a table structure problem apparently you're primary key in your table isn't incrementing...and it isnt even number based....which I don't think is possible, but it may be...never tried. go find your primary key...set it to autoincrement....and check the datatype to make sure that it is INT or TINYINT of something along the lines of INT
  24. mysql_error($result) take $result out too
  25. check out SWFObject
×
×
  • 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.