Jump to content

cunoodle2

Members
  • Posts

    602
  • Joined

  • Last visited

    Never

Everything posted by cunoodle2

  1. You will need to use a sub query and/or a "WHERE NO IN" etc... Try putting it together and see what you come up with and we will help you perfect it.. http://dev.mysql.com/doc/refman/5.0/en/exists-and-not-exists-subqueries.html
  2. Without any form of "ORDER" to your query it will just display whatever. Try this.. $query = "SELECT * FROM homesoeasy ORDER BY `id` ASC LIMIT 0, 5";
  3. hurry up and remove your user/pass from your code so people don't steal it. Also this line is wrong.. if(mysql_num_rows($result)!='0') It should be.. if(mysql_num_rows($result)!=0)
  4. You were just missing one set of quotes.. echo "this is the current filename: ". $supplemental_file; echo '<a href="../../supplemental_files/' . $supplemental_file . '">Supplementary Download</a>';
  5. PHP is SERVER side and all it does is create files for the browser to then interpret. The actual php functions will NOT change from browser to browser. However the output created by php could be interpreted different from one browser to another.
  6. Post the css code you have so far and we will help you fine tune it.
  7. http://www.phpfreaks.com/forums/index.php?topic=326074.0
  8. Please post the code you have come up with so far and we will help you work through it. If you do not have any code thus far then please put something together, post it here in the forum and then we will help you perfect it.
  9. Can you use a regular expression in php to first remove any punctuation?? $string = preg_replace('/[^a-zA-Z0-9 ]/','',$string);
  10. What is/isn't the iFrame doing that you expect it to do/not do? What is your output/what do you EXPECT the output to be??
  11. What is really sad to me is that a guy with over 500 posts cannot search google for this. I took your subject line, added the letters "php" to the beginning, and did a search on google and I came up with this.. http://www.google.com/#hl=en&q=php+calendar+with+reoccurring+events The very FIRST result is a site called Easy PHP calendar with a free download. Hmmm...
  12. Please read the rules. No need to start multiple threads for the same thing. You have this other thread with the exact same issues/code.. http://www.phpfreaks.com/forums/index.php?topic=326163.0 Mods, please lock and one and consolidate.
  13. Again, lesson learned and I like your "I shall try again" attitude. There is nothing you can do about the past so lets focus on the future here. Next time write out a very very detailed check list like I have in my post above. Again, I have been on both sides of the coin (paying someone to do the work vs being paid to do work) and I can tell you that detailed specs like I have listed (and every better add in some screen shots) is the ONLY way that works. Otherwise it is luck of the draw.
  14. One thing I can tell you is take this as a lesson learned. NEXT time you hire someone to do a project spend some time and write out a DEFINED list of WHAT should be/not be included. NEVER assume that anything is merely included as what you have in mind and what the developer has in mind are two completely different things. For example on your next project start off with these items.. The system should have the ability for an EXISTING user to be able to reset their password. Pages x.php, y.php and all pages in the directory "/var" can ONLY be accessed if a user is logged into the system by first going to "login.php" IF a user is NOT logged in and they try to access pages x.php, y.php or any page in the directory "/var" the system should automatically redirect the user to index.php. The system should use ONE WAY ENCRYPTION on the password in the mysql database. Etc... I've been on both sides of development and I can tell you the #1 most important thing is to have very very detailed specs. This gives you a meticulous check list to go through at the end (payment time). Otherwise just saying "I need a subcription script" could honestly mean a thousand different things.
  15. Look into URLencode.. http://php.net/manual/en/function.urlencode.php
  16. You seem to be mixing up double and single quotes. Try this.. if (isset($_GET['value'])) { echo $_GET['value']; // still works and outputs the value fine if (isset($_POST['submit'])) { // here the value of "value" dissapears! echo "<br /><b>SECOND TIME:</b>".$_GET['value']; // try echoing again as I be it is still there. $query = "insert into `test` (one, two) values('".$_GET['value']."', 'normal text');"; mysql_query($query); } } There for sure were issues in your query with formatting and mixing up of single and double quotes.
  17. I love how user "litebearer" takes the time to post you a link and if you look at the difference between his post time and that of the OP (grlayouts) he spent all of 1 minute 44 seconds looking at the link provided by litebearer only to quickly respond with a "i dont get it?"
  18. Few things.. 1) Look into your database. What "type" of field is "uSkillsMax"? Is it an "int"? If so change it to a "VARCHAR" 2) In this line you have the numbers listed so they are technically integers... $details = 100 . '-' . 10 . '-' . 3; Instead do this.. $details = strval(100)."-".strval(10)."-".strval(3); OR this.. $details = "100"."-"."10"."-"."3"; Try those out and let me know what you come up with
  19. Looks like you have this pretty well down. Can I suggest that you look into using php PDO statements to make your SQL items more secure? It should be something you are working towards. Otherwise looking pretty good.
  20. That will not work as the double quotes will escape the echo. Try this.. <?php echo "<a href=\"$f5\" target=\"_blank\">$f4</a>"; ?>
  21. I'm a little unclear on your question. Can you give me a little more info on this follow up question.. Are you saying that you want to do a search on the table "#__muscol_albums" WHERE the `id` could be $Album_is OR $user_is OR a user sessionID??? Sorry.. just a little unclear on this..
  22. Look into using pagination.. http://php.about.com/od/phpwithmysql/ss/php_pagination.htm
  23. Did you try searching Google? If I take your title of "open href in new blank window" and paste it into Google the first result shows you how to do it.. http://www.google.com/#hl=en&q=open+href+in+new+blank+window
  24. why do you set this.. $pin=null;
  25. I know there was recently a similar thread on this. I would suggest using a flash player.
×
×
  • 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.