Jump to content

All Activity

This stream auto-updates

  1. Today
  2. Yesterday
  3. can someone please tell me what im doing worng ????? My calendar shows everything where its supposed to be but i must be missing something ??? config.php included and the info is in the DB. Something stupid in the code i presume. Thank you for any help...... <?php /* draws a calendar */ function draw_calendar($month,$year){ include 'config.php'; // Create connection $conn = mysqli_connect($servername, $username, $password, $dbname); // Check connection if (!$conn) { die("Connection failed: " . mysqli_connect_error()); } /* draw table */ $calendar = '<table cellpaddin
  4. Check for mysql error message to see why it failed
  5. I don't understand why it doesn't work to insert in Phpmyadmin (MariaDB) with my code...It saying failed to add all times. I know about security issue, I will install security later. I just want to make sure insert into MariaDB is working, then I will set up security system. Here my code: /* Register and check username and email is exist or not */ if (isset($_POST['submitted'])) { $username = $_POST['user']; $email = $_POST['email']; $first = $_POST['first']; $last = $_POST['last']; $password = $_POST['password']; $check_user = "SELECT * FROM username where Username = '".$usern
  6. I got it working with this: function updateTableAfterSubmit() { table.ajax.reload( function (json){ auto_btn_height_width(); }, false ); } function auto_btn_height_width() { $('td.mfg-view-cols').each(function() { tdWidth = $(this).width(); tdHeight = $(this).height(); $(this).find('button').css({'width': tdWidth, 'height': tdHeight}); console.log(tdHeight); }); console.log($('td.mfg-view-cols').length); } Then just had to make sure I identified the right events to do call backs on. Works great now.
  7. Fake it with position:absolute and push it to the edges of the cell? Leaves you with a vertical alignment problem though.
  8. Maybe I just need to write a jQuery function that determines the height and width of the parent td and then sets the height of each button...
  9. I could but I'd have to recode a lot and I've always found bootstraps buttons easy to use. https://stackoverflow.com/questions/53520077/css-100-height-in-a-tablecell What do you think about that?
  10. Why not add onclick() to the <td> elements themselves (and different color classes) instead of putting buttons inside them?
  11. I have tried using bootstraps h-100 and w-100 to make it work as well as other things. I wont know the row height for each page so I need the buttons to fill the container TD. Why won't bootstraps h-100/w-100 classes work?
  12. Hello. My question for majority is very simple but not for me... I would like to change photo for other at the top on the subpage in this link http://www.grimlord.eu/index_pl.php?src=gallery&sub=koncertowe Here is good http://www.grimlord.eu/index_pl.php?src=galeria What I can do? I used index.pl.php file
  13. yans

    Hello!

    Hello to everybody!!!I am fresh user at this site. I like IT world and I have mamy other passion like music etc. My IT specialist is no longer. and I am alone with my own www.
  14. Last week
  15. DOH!!! Makes sense and works. // image file directory $target = "uploads/".basename($image); if(!empty($_FILES['image']['name'])) { $sql = "UPDATE slide SET slide_text='".$slide_text."', image='".$image."', youtube='".$youtube."', vid_text='".$vid_text."'"; } else{ $sql = "UPDATE slide SET slide_text='".$slide_text."', youtube='".$youtube."', vid_text='".$vid_text."'"; } $result = mysqli_query($con, $sql); Thanks man.
  16. Both updates happen only when if(!empty($_FILES['image']['name'])) { ...
  17. Hi, I am back after almost 6 months to continue on this part of the project, using the advice I had from you, I have reached this point where I am still getting all records inserted into the table instead of the selected ones: $checkbox = $_POST['checkbox']; $class_id = trim($_POST['class_id']); foreach ($checkbox as $key => $value) { echo "{$key} => {$value} "; print_r($checkbox); echo '<pre>'; print_r($checkbox); echo '</pre>'; $sql = "INSERT INTO Class_List (user_id,class_id) VALUES (?, ?)"; if($stmt = mysqli_prepare($link, $
  18. Hi mate, Nothing happens. No errors etc. If I just update some text and click submit, nothing happens. But, if I load a new image into the file input and click update, any changes to text are successful. What I am trying to achieve is for me to be able to change text without having to upload a new image each time.
  19. What exactly does that mean? What happens, or doesn't happen.
  20. Hi folks, This has been wrecking my brain. I did do a google a few times to see if I can find a solution but nothing unfortunately. I want to be able to update the details on a page without having to reupload a new image each time. But if I don't open a new image for upload, I cannot update any of the other details. Below is the code and form etc for this particular thing... Please note this is just a project and will not be going live. I know there are vulnerabilities and I will work on those at a later stage. Thanks for any help with this current issue. <?php inclu
  21. update: tried to install all anaconda-things according the official instruction - went the hard way - on terminal: see these docs: https://docs.anaconda.com/anaconda/install/linux/ a quick walktrough through the steps ended up in fully-fledged installation of Anaconda3 next steps are shown here: https://docs.anaconda.com/anaconda/user-guide/getting-started/ Linux: Open a terminal window and type anaconda-navigator. voila - now Anaconda3 starts... conclusio: all is fine now.. have a great day
  22. update: tried to install all anaconda-things according the official instruction - went the hard way - on terminal: see these docs: https://docs.anaconda.com/anaconda/install/linux/ a quick walktrough through the steps ended up in fully-fledged installation of Anaconda3 next steps are shown here: https://docs.anaconda.com/anaconda/user-guide/getting-started/ Linux: Open a terminal window and type anaconda-navigator. voila - now Anaconda3 starts... conclusio: all is fine now.. have a great day
  23. Use .htaccess and mod_rewrite - most if not all modern frameworks do it this way, and it gives you the pretty urls you're looking for. As you move forward with redoing your main site (if you continue to eschew an established full framework) you might want to check out Slim for your routing and dependency injection - I've heard good things about it, and the small amount of playing I've done with it I found enjoyable. I'm sure others with more direct experience can give you better and more advice on it.
  24. Hi mate, You are spot on. It is a learning curve and I have taken your input on board and decided to go in the direction you suggested. Cheers, Dan
  25. Perhaps it isn't clear, but with version control, and at this point, the world has standardized on git (for relatively good reasons in my opinion) there is no danger in changing "tested code." This assumes that you have a development/test deployment and a production deployment. If you only have "production" -- well, it goes without saying that the second you have any actual users, you are in big trouble. So, I will make the assumption you have a dev/test system, and again, there is no question that you can change anything you want with git, and test things, and you can do these te
  1. Load more activity
×
×
  • 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.