Jump to content

ginerjm

Members
  • Posts

    6,906
  • Joined

  • Last visited

  • Days Won

    99

Everything posted by ginerjm

  1. Do you have to write a function simply to call another function? And does that global var you are using really exist cause the message is implying that it doesn't?
  2. As well as the typo in the connect line. If we could see the real "code" perhaps we could then even find more errors, hint, hint.
  3. I don't know what "category wordpress" means. But looking at the code you showed it appears you have written a function that calls itself. Hence an infinite loop.
  4. And in the future I recommend that if you want help with your code then give us the code, not an image of it. People like to work with code to help you debug it and we can't work with a picture.
  5. It appears that you have made a change to your code which is causing it to fail. You did not mention that - you said it has worked for years. I did as CyberRobot suggested and it works fine for me. Although one cannot do an echo before calling a header.
  6. Can you view the contents of the screen and see if anything is there? Or put an echo in the start of the called script to see if it even opens up?
  7. echo "<a class='knil' href='high.php?id={$game['high']}'>{$game['high']}</a>";
  8. rifleName is incorrect That's what happens when you use multiple cases....
  9. If we are understanding you, you are saying that when the user creates a new record there will not be an id provided, since it is unknown until you add it to the database. SO in that case, why are you looking for it in the post data when you know it may not there? What does a good programmer do when he is not sure of something? He CHECKS. In your case, you need to do an 'isset' check on the id element and if it is not there you are probably supposed to assume that you need to do an add. Of course we don't know anything about your app so perhaps you will assume something else but this is how you can avoid the error message and do something more appropriate.
  10. An echo is an 'output' statement which is why you actually see something. A return is not. It is simply a method to pass a value back to another that is waiting to receive it.
  11. He is saying to keep all 'transactions' on file. With that, you can continue to calculate all of the inventory question you may have by simply doing a query. If you want to know how much of any item you have currently you simply do a query to grab all the pluses and minuses, sum them, and apply the total to the inventory quantity.
  12. I don't know what you were doing differently as per 'version definition'. And why (again) the strange output of the word 'this' over and over?
  13. Try dropping the quotes on the args in the query. The PDO prepare will correct what is necessary And what are you outputting when there are rows? It looks like a string of the word 'this' repeatedly.
  14. I see now what you are pointing out. But - should the situation ever involve values having double quotes in them, unlike O'Reilly, there's gonna be a problem then. As I said earlier we can manage to output it ok, it's just the input processing that's the issue in either case.
  15. I have no difficulty getting that line of code to work with the value of O'Reilly. How the script handles a value like that when selected is perhaps another issue but getting it to display properly with my offering is not a problem.
  16. Another way of doing this is: echo "<option value='{$myrow['cats']}'>{$myrow['cats']}</option>"; Use the braces when you have an array value. Not needed for simple vars such as $x as in : echo "<option value='$x'>$x</option>";
  17. Why are you creating text files instead of using a database table?
  18. What is this line supposed to be doing? It is completely wrong. What are you trying to do here? If you want to do what you did with all of your other input data then you need to handle each fruit as a separate field, which they are. But you need to check if each checkbox is set since they don't exist if they are not checked, unlike text inputs which always exist.
  19. So if you got this code from someone and if you don't know what it is, why aren't you asking him? Because he's not around anymore? Good luck then. IMHO he is not a very good programmer or he wouldn't have used mixed cases like that. Horrible practice. And certainly not such long variable names that make reading thru any code a tedious effort. And in your example, I don't see ANY images. And how do they fit into this grid/table of yours?
  20. You do realize that php is case-sensitive and your usage of upper and lower variable names is gonna bite you right in the ass soon. Strongly suggest to stop. And now - good bye. You're on your own. You say you are still learning but you seem to have produced an awful lot of code so far.
  21. NO idea what you are asking. So far It's all about a table, not php.
  22. I appreciate the 'like', but what is it that I/we can do for you?
  23. Your html code: <?php echo " <tr> <td><b><label for='firstNum1'>$coingecko_name</label></b></td> <td style='color:#EFE1CE'>$COINGECKO_ID</td> <td style='color:#EFE1CE'>{$checkSqlRow["COINGECKO_LEGIT"]}</td> <td style='color:#EFE1CE'>$coingecko_rank</td> "; A few var names that are not defined (to us). And a bit cleaner just by using php to do your output. Now - what is the problem? You did not tell us. And where is your attempt to make some kind of selection of the image you want to be chosen? BTW. Note that I removed your use of the deprecated 'font' tag. Your use of CSS later on is much preferred nowadays.
  24. mac_gyver gave you some food for thought. Did you not try it?
×
×
  • 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.