Jump to content

Funce

Moderator
  • Posts

    602
  • Joined

  • Last visited

  • Days Won

    19

Everything posted by Funce

  1. Funce

    Vizsga123

    Okay, you've got some code. What seems to be the problem?
  2. Funce

    CSS form element

    Well, the two things you've got for standard styling is to add an ID to that element, or add a class to it. Then use CSS selectors that match (`#ID` or `.class`)
  3. As an alternative with your <? echo $var ?> blocks, you can use <?= $var; ?>. This can be used regardless of the php_short_tags setting, which you can read up on here: https://www.php.net/manual/en/language.basic-syntax.phptags.php
  4. Funce

    javascript

    That certainly seems doable. What code have you got for it so far?
  5. Funce

    Smarty Php.

    Please do not reply to old posts.
  6. Funce

    Count with sub querry

    Hey there! Welcome to the forums! This one can be a bit mind boggling. But I did manage to get it to work. It involves using GROUP BY on both `artist` and `title`. Take a look! SELECT *, COUNT(title) FROM plays GROUP BY artist, title
  7. Hey Troy! Welcome to the Forums! This example is supposed to work for most values of x. Given that x is 41, the only output would be Above ten, and also above 20! And if you changed x to be... for instance 16, the output would be Above ten, but not above 20.
  8. All ads on the website are controlled through the google advertising service. If you find the ad in question, you have to report it in one of the corners as there's nothing on this end that's possible.
  9. What would you like to know about it?
  10. 3 things to answer your questions Arrays strictly only have numerical indexes. Adding a string index converts the array to a generic object. You can access an object's properties through square bracket [] method, just like an array.
  11. They're... a bad cover for a bad design decision in the most cases you see them used. In this example, you might be able to leverage the native browser PDF viewers with an iframe. Give it a bit of science.
  12. The actual number value is in reference to the absolute value of r.
  13. Funce

    Will not ADD

    You might be missing a quote mark in your $con line. What output are you getting? Any errors?
  14. I've removed the link as the site linked seems sketchy. You should be able to find another example.
  15. I've removed the link as the site linked seems sketchy. You should be able to find another example.
  16. Funce

    Northwind Database

    Please do not reply to old topics.
  17. Please do not reply to old topics.
  18. What I was going to get to, is that while the manner at which you create the HTML is different, its still going to be HTML. This means that you while you can create a fixed link like the following <tr width:100%=""> <td text-align:="" left;="" width:="" 50%;="">Good Morning!</td> <td text-align:="" center;="" width:="" 50%;=""><a href="https://www.website.com/goodmorning.php">https://www.website.com/goodmorning.php</a></td> </tr> Because you know how to make a link. To make a link with something from a database is the same. You know that referencing your database fields resolves them to Text. You just need to put that text in the right spaces inside your HTML. Just because we make it with PHP, doesn't stop this. Including dsonesuk's solution: <?php while($row = $result->fetch_assoc()) { $the_url = $row["the_url"]; echo "<tr width:100%> <td text-align: left; width: 50%;>" . $row["some_text"] . "</td> <td text-align: center; width: 50%;><a href='" . $row["the_url"] . "'>" . $row["the_url"] . "</a></td> </tr>"; } echo "</table>"; } else { echo "0 results"; } echo "The URL--> " . $the_url;
  19. Think about it like this. Your output is just straight HTML. <tr width:100%=""> <td text-align:="" left;="" width:="" 50%;="">Good Morning!</td> <td text-align:="" center;="" width:="" 50%;="">https://www.website.com/goodmorning.php</td> </tr> Do you know how to add a link in HTML?
  20. First of all, do you have code that can read when you click on the markers? Which markers? LongLat coordinates? After you get that information, you need to find a service which gives you weather information based on given Longitude and Latitude coordinates. Or whichever data you've received from Google Maps. Then you need to learn how to access the service you've found, and process any output accordingly.
  21. jQuery is usually bundled in a single file to make it easier to include client side. You just need to add it as an element to your HTML. jQuery is in NPM, and you can check it out https://www.npmjs.com/package/jquery
  22. Hey there, welcome to the forums! Your code looks pretty solid, you just need to add the anchor (<a>) surrounding each database output. Just as you've done with the <td> elements. Think of it like a normal HTML page, but rather than typing in the numbers, the PHP is doing that for you. Just because you're using PHP, doesn't stop you from needing to still format the HTML properly.
  23. This would greatly depend on where the css file is located, and where the html file is located. Are they in the same Folder/Directory?
×
×
  • Create New...