Jump to content

Jessica

Staff Alumni
  • Posts

    8,968
  • Joined

  • Last visited

  • Days Won

    41

Everything posted by Jessica

  1. Also, You can skip this: //delete duplicate record id's from the array. To do this we will use array_unique function By adding DISTINCT into the query http://dev.mysql.com/doc/refman/5.0/en/distinct-optimization.html Change if ($_POST['search'] == null) { to if(isset($_POST['search'])){ You're using $query, you should be using $row now. Like: echo '<img src="../cms/htms/staff_videos/thumbs/'.$row['thumbURL'].'" height="40" width="40" alt="GameArgus Thumb" border="2" />'; $query is the sql string - $row is the current row you're on. S was the first letter (at the 0 spot) of $query, and you were essentially getting it.
  2. Woops, I made a mistake. Change the line to while($row= mysql_fetch_array ($rs)){
  3. So you'd need to know all the info to fill in those forms.
  4. So it's 777 and you still can't open it? That's kind of odd. Are you sure it's the right file? Can you post the code you use to open it?
  5. I think the password protection is the problem...take that off and try again?
  6. Who needs tact, when you've got teh intarwebs!!
  7. When you're on the page where the confirm pops up, right click and view the source. find the action="" part of the form. Then find all the values in the form, the inputs, any hidden, etc. Then you make a similar form and make your action go there. Basically copy the form, minus the javascript confirm. Then we can go from there.
  8. Can you link to a sample url you'd use for it? I simplified the code down a lot to try to find the problem. For now, run this and paste what it outputs, or please provide a sample link to the page and run this code on it. <? $var = $_POST['search']; $trimmed = trim($var); $trimmed_array = explode(",",$trimmed); print_r($trimmed_array); foreach ($trimmed_array as $trimm){ $query = "SELECT * FROM videos WHERE tags LIKE '%$trimm%' OR title LIKE '%$trimm%' ORDER BY date_posted DESC" ; $rs = mysql_query ($query) OR DIE(mysql_error()); $row_num_links_main = mysql_num_rows($rs); echo $row_num_links_main; while($row= mysql_fetch_array ($numresults)){ print_r($row); } } ?>
  9. What is the action of the form? You could just direct the link to the action page of that, using a hidden form to post. Are you trying to hax0r Neopets? You are, you little rascal.
  10. ZenCart, wordpress has a cart also
  11. We'd have to see the code of the page where you print the data to help.
  12. You're saying you have two pages, one with a link and one with a form. You click on the link in the first, and it automatically submits the second? Why not just combine into one page. You'd need to do the javascript on the second page anyway, so I don't see how having two pages makes sense.
  13. If your friend is so sure it can be done and he thinks the people from this 'form' are too incompetent to know how, then tell him to do it himself.
  14. mod_rewrite is the best way, that's kind of what it's meant for.
  15. You can buy encrypting and obfuscating programs, but they are often expensive. Make them sign a contract saying they will not use the code, and include your copyright notice on every page. A copyright is about $30 USD, as opposed to several hundred for an obfuscator.
  16. file_exists() This is what the manual is for.
  17. That's called an Update. If the record already exists, you update it.
  18. I don't know, but the fact that it's in a class form indicates it's not just regular PHP functions, it's a custom library. You need to find out what it is then check their documentation, and if you can't get it post in the third party forum.
  19. Array keys must be strings, like this: $_POST['f_name'] What are you trying to do? You run an insert then a select - are you just trying to get the ID of the inserted member? use mysql_insert_id(); Either way the two statements should be seperated.
  20. Good example Crayon - is that one in the FAQ/code library?
  21. What database library are you using?
  22. Textarea doesn't use value="", you put the content between the two textarea tags.
  23. Make the HTML page a PHP page and then yes, you can. You can either proccess the form on the same page, or store the errors in the session and send them back.
×
×
  • 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.