Jump to content

Maq

Administrators
  • Posts

    9,363
  • Joined

  • Last visited

  • Days Won

    3

Everything posted by Maq

  1. You don't give a value to '$db', which should be your database you want to use.
  2. Do you have mysql_select_db in your include 'inc/conn.php';?
  3. Have you tried to sudo the rm? If that doesn't work then try, "/bin/rm -rf [file_names]". Where/what are these files from? Maybe there is an application that's regenerating them. You may also want to check to rootkits. I dont' think this is the problem, but you never know and it can't hurt - http://www.chkrootkit.org/download/. Other than that, I'm not sure, good luck.
  4. Do you mean server-side or client-side? Assuming server, you can just invoke strtolower on the field value.
  5. The error is implying that your actual query isn't valid. Which is this: select min(id) from image Although it looks valid to me, try changing this line: $q = mysql_query("select min(id) from image"); to this: $q = mysql_query("select min(id) from image") or die(mysql_error());
  6. Post the code from line 21 and above (lines 1-21), I will explain.
  7. You mind sharing your solution?
  8. So, anything specific you want us to critique? The forum skin? Looks OK, I guess, kind of sporty, red, white and blue... The banner, well more like an icon, looks unprofessional. I hate the gray block with the blue background that extends the entire page. It just doesn't look right.
  9. Maq

    database query

    Tags, fields, and functions... Huh?
  10. Try creating an object then invoke the method. $sql2 = new className(); $sql2->select(array('name','id'),'video',$sort,array('active:1',$extra));
  11. Post the query, it's failing. You can add or die temporarily to see the error.
  12. Maq

    how to stop it

    It's your job to prevent that. Why do you even allow such combinations?
  13. Did you try the wordpress plugin archive? http://wordpress.org/extend/plugins/syntaxhighlighter/
  14. If that's the case then add the 's' modifier to include newlines instead of .*, which is what I think you're doing. http://www.php.net/manual/en/reference.pcre.pattern.modifiers.php
  15. This shouldn't be the solution but try including the greedy (g) and multi line (m) flags.
  16. Here's the tutorial I use: http://wp.uberdose.com/2006/10/16/ssh-automatic-login/
  17. Try these: $videos[$c]['id'] and $videos[$c]['videoid']
  18. You can read the documentation here: error_reporting.
  19. My understanding is this. $videos = $sql->getData(true); This returns all the rows from the query call. echo ''.$videos[$c]['name'].' '; Here you're using the $video array that was returned from the getData() method. echo ""; Then you use a $row array that's not defined anywhere in your code. That's where the error is coming from. Did you change $row to $video in both places?
  20. Sounds like you have a fatal error. Add these lines directly after your opening PHP tags: ini_set ("display_errors", "1"); error_reporting(E_ALL);
  21. Where is the $sql object coming from that's making the SQL method calls? $videos = $sql->getData(true); Instead of $row you're supposed to be using $video, no?
  22. Can you post the code before this that extracts the data from the database?
  23. What do you mean by, "not cooperate"...?
  24. No. Usually when the page is blank there is a fatal error. Try turning error reporting on by adding this code directly after your first opening <?php tag: ini_set ("display_errors", "1"); error_reporting(E_ALL);
×
×
  • 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.