Welcome to Code Forum!

Join a community that supports you and your coding journey from day one. We strive to be a friendly, supportive community that empowers everyone to be better developers. By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

Search results

  1. Mutiny

    Database design

    Assuming you have a database table for your posts, I would think you would want this structure: posts table - Stores your posts, each post has a unique id tags table - Stores your tags. Each tag has an id, slug and name post_tags table - Each row has an id, post id and tag id When you make a...
  2. Mutiny

    PHP Question about setting another variable

    The code you posted above is taking the value of sub_category_id and is querying your database table to see if any rows come back where that sub_category_id as well as the category_id also submitted by the form match. This is done by getting a count of the number of rows returned, anything more...
  3. Mutiny

    PHP Scandir error

    From within the "mobile" directory, try this: scandir("../downloads"); The ../ means go up one directory.
  4. Mutiny

    PHP password hash and verify help??

    In signup.php you appear to be storing the hashed password in the database, but when you do the check in login.php you appear to be querying the database for the unencrypted password. You should hash the password in login.php, then find the record in the database where the email address and...
  5. Mutiny

    CSS Separating image to show above content on mobile

    Which image? The badges on the right? Since your CSS is using flex for the display, look into flex direction which will allow you to reverse the order of the columns on mobile. You'll need a media query to only apply the change once you hit your mobile breakpoint.
  6. Mutiny

    CSS How to achieve this

    On your .color element, add CSS of transform: skew(-45deg); and then on your after element give it a style of display: block;. That should get you pretty close to what you want, then you just need to adjust the position of the after element.
  7. Mutiny

    SQL search by part of name

    Take a look at the MySQL LIKE operator: https://www.w3schools.com/mysql/mysql_like.asp
  8. Mutiny

    CSS how do I edit my bootstrap style to remove this line?

    Try border-bottom: none;
  9. Mutiny

    PHP Help with referencing url in code

    So you want to display something on the page if "sub_" is in the URL? Probably something like: if(stristr($_SERVER['REQUEST_URI']), "sub_" !== false) { echo "Found sub_ in URL!"; } The $_SERVER['REQUEST_URI'] variable gets the URL as it's seen in the browser whereas $_SERVER['PHP_SELF'])...
  10. Mutiny

    PHP OOP PHP Classes

    It probably makes sense to have a user class that calls your database class. For instance, you could have a method in your user class called getEmail() that returns the user's current email address by querying the database using a query that calls a method in the database class to execute the...
  11. Mutiny

    PHP Database Help

    You have more options with a MySQL database than with Firebase. With Firebase, you're locked into their proprietary service but with MySQL you can self host your database on your own server and you have more control / ownership of your data because of that. You should look into a Content...
  12. Mutiny

    HTML & CSS I'm new and struggling with a simple button

    Hey, sorry for not replying sooner. As far as the hover effect, you can do that in just HTML and CSS, no Javascript necessary. What you would do is have a div that has two img tags inside of it. Both images are the same size. Put a position: relative on the container div. Then on the main...
  13. Mutiny

    HTML & CSS I'm new and struggling with a simple button

    For the first issue, you're using a class of .css-button for the button, but both buttons have the same class. It looks like somewhere on the page there's code targeting that button that has a red background, and due to the way the CSS is cascading down with its rules, that change is deemed to...
  14. Mutiny

    HTML & CSS Why do my VISITED links still have underlines?

    Change a:visited i to a:visited. The rule that puts the underline in targets the link, whereas the one that disables it targets the "i" element inside the link.
  15. Mutiny

    PHP (Newbie in php) How can I print the "text" of a select option (form)? (help)

    Try this: if(isset($_POST["item"])) { echo "The Result Is: " . $options[$_POST["item"]]; } The value submitted by the form is the key to the array, so you have to access the key of the array to display the value.
  16. Mutiny

    HTML & CSS Need help with an error

    Do you get a line number with your error? What code is on the line number in your editor for that error? Can you paste your code into the code editor here instead of just including on the post? The error indicates that you're trying to set a property on an element that doesn't exist, so...
  17. Mutiny

    PHP PHP Query Issue

    What does the structure of your xf_social_feeds and xf_user_follow database tables look like? What are the column names / data types?
  18. Mutiny

    HTML Same value shown AND saved in form

    You can't do this in just HTML, you'll need to use either Javascript or a server-side language like PHP. If you were using PHP, you could do something like: <input type="hidden" name="Name" value="<?php echo (isset($_GET["Name"]) ? $_GET["Name"] : '') ?>"> That would populate your hidden...
  19. Mutiny

    Upload Video Page - Preventing Abuse

    Is your video upload script tied into the video site at all, or completely independent? Is the video upload site something you control or a 3rd party app? Is it custom or a script? Without seeing the latest version of your code as well as the video upload site's code it's hard to say the best...
  20. Mutiny

    HTML & CSS moving text and embeded video

    When you say you want the video centered on the right, do you mean centered vertically? What does your code look like? There's many potential ways to do this, so it will be helpful to see what you're working with.
Back
Top Bottom