Jump to content

Jessica

Staff Alumni
  • Posts

    8,968
  • Joined

  • Last visited

  • Days Won

    41

Everything posted by Jessica

  1. [s]Which one? I'm curious to know if I understood what you were trying to do. Was it the in_array, or what I wrote?[/s] Edit: Great!
  2. [code]foreach($haystack AS $hay){   foreach($needle AS $ow){       if($stripos($hay, $ow) !== FALSE){           print $hay.' contains: '.$ow.' at '.$stripos($hay, $ow).'<br />;       }   } } [/code] (not tested) Edit: is $haystack an array also? If it's not, just take out the first foreach, change to: [code]   foreach($needle AS $ow){       if($stripos($haystack, $ow) !== FALSE){           print $haystack.' contains: '.$ow.' at '.$stripos($haystack, $ow).'<br />;       }   } [/code]
  3. I asked you three very relevant questions, and you didn't answer them. Good luck getting help.
  4. Oh it's in flash, right. Erm, there should be more code? How does it know to tell flash if it was successful or not? What happens if you just go to the page in your browser, instead of using flash? We'll fudge things a bit to see if we can get it to work.
  5. So we were supposed to imagine the code? Does it die with an error? What is the error? Where is this mystical insert code? It could be the code surrounding it, if it's in an if(), etx.
  6. Change the mail line to this: print mail("info@mediashox.com", $subject, $message, "From: $sender"); Do you see a 1, a 0, or nothing? Did you check your spam folder? The mail only has minimal headers, and is likely to be filtered as spam.
  7. [quote author=jesirose link=topic=124811.msg517694#msg517694 date=1170213728] too much code to look through without more info. What error do you get that makes you say it's "not working" [/quote] I didn't mean just that one time dude. If all you can say is "didn't work", all the help you'll get is "tough luck"
  8. It's fine for 4. Why do you say it's not working? If you're not a PHP programmer, it'll probably be faster and easier for you to hire one in the freelancer forum.
  9. "Warning: mysql_close(): supplied argument is not a valid MySQL-Link resource in ...\classes\mysql.php on line 20" So $this->connection must not be a valid resource. Wheres the code you use to define it?
  10. $query  = 'CREATE DATABASE '.$values[0].'_puppylist'; Take out all those echos.
  11. Okay this line: if ($result = mysql_query("SELECT `location` FROM project_screenshots WHERE pid = '{$this->id}' AND id != '{$project->file1()}")) { What is $project? Just like you use $this to reference id, a variable, you need to use it to call the methods. $this->file1()
  12. too much code to look through without more info. What error do you get that makes you say it's "not working"
  13. If it's a file, use file_get_contents() to get the entire contents as a string, then use strpos to find where <-- start --> and <-- end --> are, then use substr(); You could also use regular expressions.
  14. $project_get = mysql_query("SELECT * FROM projects WHERE status = 'Completed' LIMIT '$minlimit','$maxlimit'") OR die(mysql_error());
  15. alien is right, rows are horizontal, columns are vertical. tr = table row.
  16. Textpad rocks. Find in Files, Replace in all, and in less than a minute I fixed all my configuration to use Constants. :D It makes a lot more sense now. Thanks :)
  17. Dude, you PMed me and I pointed out your error, even though it's against the rules to PM for help! Take the $Result out of the mysql_insert_id() and TURN ON error reporting.
  18. As I mentioned it's example code, so there isn't really a ; missing. Thanks.
  19. so you'll have to use that instead. When the users enter text, run it through htmlentities to catch those.
  20. You break out of the string after your <td> but don't start a new one. Any text you want to print has to be in the string. Use single quotes in this instance, it'll be easier. echo '<td> <img src="images/'.$row['imagename'].'" width="400" height="400"> </td>';
×
×
  • 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.