Jump to content
#StayAtHome ×

All Activity

This stream auto-updates     

  1. Today
  2. Yes - forums (including this one) DO help people. But not with all of their tasks. Forums like this one help you address your code. Help you correct it or debug it or help you amend your solution. We are not here to just plain write it for you. We are here for people who are having difficulty but that means showing us the difficulty.
  3. If I convert from table to list, with a checkbox clicked (checked true) I would like the clicked checkbox to appear in the list, but instead it appears as not clicked if I look at the checkbox status using console.log () it is checked true
  4. Can you try explaining that with a few more words? Exactly what is it supposed to do and what is it currently doing?
  5. I have the following code, in practice I have a problem, if i have the checkbox checked it copies the status but does not show it to me checked. can you please help me? .... <table id="table-files" class="uk-table uk-table-responsive uk-table-middle"> <thead> <tr> <th class="uk-table-shrink"><input name="checkbox-all-files" type="checkbox" class="uk-checkbox"></th> <th id="table-image" class="uk-table-shrink"></th> <th id="table-name" class="uk-table-expand">Name</th> <th id="table-file" class="uk-table-shrink">File</th> <th id="table-folder" class="uk-table-shrink">Folder</th> <th id="table-tools">Date</th> </tr> </thead> <tbody> <tr class="check-files" data-user="2" data-file="10"> <td><input name="checkbox-files" value="43" type="checkbox" class="uk-checkbox"></td> <td data-image="1"><img alt="User" src="/user/user_profile.jpg" width="60" height="60"></td> <td class="uk-text-nowrap">Mark Zu</td> <td class="uk-text-nowrap" name="tools-table"><a href="/files/Test.jpg">Test.jpg</a></td> <td class="uk-text-nowrap">Main</td> <td name="tools-table"></td> </tr> </tbody> </table> .... <script src="/functions/table-to-ul.js" type="text/javascript"></script> THE FUNCTION CONVERSION IS ON FILE TABLE-TO-UL.JS function convert_table_to_list_files(table_id) { var list_id = table_id.replace("table-", "ul-"); var ul = $("<ul id='"+list_id+"' class='uk-grid uk-grid-medium uk-child-width-1-2@s uk-child-width-1-3@l uk-child-width-1-4@xl' uk-grid uk-height-match='target: > div > .uk-card'>"); $("#"+table_id+" tbody tr").each(function(){ var classTR = this.className; var userTR = this.attributes["data-user"].value; var fileTR = this.attributes["data-file"].value; var li = $("<li class='"+classTR+"' data-user='"+userTR+"' data-file='"+fileTR+"'>"); var checkboxCell = this.children[0].innerHTML; var ImgCell = this.children[1].attributes["data-image"].value; var userCell = this.children[2].innerHTML; var fileCell = this.children[3].innerHTML; var fileHrefCell = this.children[3].firstElementChild.firstElementChild.href; var resultOutput = `<div class="uk-card uk-card-box"> <div class="uk-card-teaser uk-position-relative"> <div class="uk-background-cover" style="background-image: url('`+fileHrefCell+`');"> </div> <canvas width="1200" height="800"></canvas> </div> <div class="uk-text-truncate"><div class="uk-flex uk-flex-center uk-flex-middle">`+ checkboxCell+`<span>`+fileCell+`</span>`+ `</div><hr>`+ `<div data-image="`+ImgCell+`">`+userCell+`</div>` +`</div> </div>`; li.append(output); ul.append(li); }) $("table#"+table_id).replaceWith(ul); }
  6. Yes, i know. You already established that. In my previous post, I suggested you might be able able to output the link with each person's total (ie once per person like the total). If you want them somewhere else then the logic will be different.
  7. It's a fairly old NAS... (DLink DNS325). I've installed Fonz Fun_plug (ffp) 0.7 on it a while back now: https://nas-tweaks.net/398/installing-and-uninstalling-packages-in-fonz-fun_plug-0-7/ uname reads: Linux datahub #8 Tue Jun 26 11:38:41 CST 2012 armv5tel GNU/Linux I do have a package manager from the FFP installation named 'slacker' or 'funpkg'... but can't see anything in there in regards of locale* ... In short, ffp installs to /ffp. Apps, base system of it simply chroots into /ffp/... I do have 'locale' and 'localedef' on the main NAS OS in /usr/sbin/locale*, but no charmaps, to create the locales with that localedef. Tried copying the files from my ArchLinux install /usr/share/i18n/* and symlink them on my NAS in /usr/share/i18n/: ln -s /ffp/usr/share/i18n/ /usr/share then force a creation of the locale fr_FR: localedef -v -c -i fr_FR -f UTF-8 fr_FR.UTF-8 but for one thing, I'm getting a bunch of warnings such as: and finally, at the end get a : Info on this locale-archive: root@datahub:~# ll /usr/lib/locale/locale-archive lrwxrwxrwx 1 root root 44 Mar 28 23:18 /usr/lib/locale/locale-archive -> /usr/local/modules/web/config/locale-archive root@datahub:~# mount | grep /usr/local/modules /usr/local/tmp/image.cfs on /usr/local/modules type squashfs (rw,loop=/dev/loop0) Even though it says 'rw' in my mount options, I can't write to that FS... That's pretty much all the info I've got and tried p.s.: if I cant do anything with gettext, any way I could temporarily use something like XMLs, JSONs etc? I was thinking of writing a Locale class that would accept a boolean say "useGettext" in the constructor... If it's set, then simply return gettext's value when calling Locale::myGettext("Some string"); if it's NOT set, then my Locale::myGettext would fetch data in an XML /JSON or what ever else approach... All my code in my pages would use something like: Locale::myGettext("Some string"); Locale::mynGettext("You have one mail", "You have %d" mails", $totalMail); Is this approach stupid ? I would prefer just using gettext()... Thanks again for your help
  8. Barand

    php insert

    Here's a section of your form Becacause you have used checkboxes you are inviting the user to select one or more applicable options. In the example shown, a reasonable combination of "Fatal / Fire / Property Damage". However, because of the way you have named them in your code (all same name "checkbox"), your processing will only receive the last one. In this example that is the least important. To receive all the selected options, append "[]" to the checkbox names. <tr> <td><input type="checkbox" value="Nearmiss case" name="checkbox[]"></td> <td><input type="checkbox" value="First Aid Case" name="checkbox[]"></td> <td><input type="checkbox" value="Lost Time Injury" name="checkbox[]"></td> <td><input type="checkbox" value="Fatal" name="checkbox[]"></td> <td><input type="checkbox" value="Fire" name="checkbox[]"></td> <td><input type="checkbox" value="Emission/Discharge/Spill/Leak(Abnormal)" name="checkbox[]"></td> <td><input type="checkbox" value="Property Damage" name="checkbox[]"></td> <td><input type="checkbox" value="HIPO" name="checkbox[]"></td> </tr> This will then cause them to be POSTed as an array $_POST = Array ( [checkbox] => Array ( [0] => Fatal [1] => Fire [2] => Property Damage ) [btnSubmit] => Submit ) If you want the user to select only one, use radio buttons. Just my 0.02 worth.
  9. it should output to a single link to go to the fpdf file you shared with me
  10. Ronel

    php insert

    okay sir now after i have properly name the input file in the form field and it works good thank you so much.
  11. Ronel

    php insert

    <?php session_start(); if (!isset($_SESSION['username'])) { $_SESSION['msg'] = "You have to log in first"; header('location: login.php'); } if (isset($_GET['logout'])) { session_destroy(); unset($_SESSION['username']); header("location: login.php"); } ?> <?php $host="localhost"; $username="root"; $pass=""; $db="registration"; $conn=mysqli_connect($host,$username,$pass,$db); if(!$conn){ die("Database connection error"); } // insert query for register page if(isset($_POST['ronel'])){ $image = $_FILES['file']['name']; $target_dir = "uploads/"; $target_file = $target_dir . basename($_FILES["file"]["name"]); // Select file type $imageFileType = strtolower(pathinfo($target_file,PATHINFO_EXTENSION)); // Valid file extensions $extensions_arr = array("jpg","jpeg","png","gif","pdf"); // Check extension if( in_array($imageFileType,$extensions_arr) ) { $details=$_POST['details']; $location=$_POST['location']; $checkbox=$_POST['checkbox']; $injured=$_POST['injured']; $agegender=$_POST['agegender']; $contact=$_POST['contact']; $empid=$_POST['empid']; $dept=$_POST['dept']; $organization=$_POST['organization']; $summary=$_POST['summary']; $name=$_POST['name']; $outcome=$_POST['outcome']; $cause=$_POST['cause']; $action=$_POST['action']; $reportedname=$_POST['reportedname']; $position=$_POST['position']; $organisation=$_POST['organisation']; $reportedcontact=$_POST['reportedcontact']; $reporteddept=$_POST['reporteddept']; $status="Pending"; $comment=$_POST['comment']; $query="INSERT INTO `proposals` (`details`,`location`,`date`,`time`,`checkbox`,`injured`,`agegender`,`contact`,`empid`,`dept` ,`organization`,`summary`,`image`,`outcome`,`cause`,`action`,`reportedname`,`position`,`organisation`,`reportedcontact`,`reporteddept`,`status`,`comment`) VALUES ('$details','$location', current_timestamp(),current_timestamp(),'$checkbox','$injured','$agegender','$contact','$empid','$dept' ,'$organization','$summary','$name','$outcome','$cause','$action','$reportedname','$position','$organisation','$reportedcontact','$reporteddept','$status','$comment')"; $res=mysqli_query($conn,$query); if($res){ $_SESSION['success']="Not Inserted successfully!"; header('Location:'); }else{ echo "<script>alert('Proposal not applied!');</script>"; } // Upload file move_uploaded_file($_FILES['file']['tmp_name'],$target_dir.$image); } } date_default_timezone_set("Asia/Kolkata"); ?> <html> <body style="background-color:F8FFFF;"> <table style="position:absolute; bottom:83.2%; left:226px; width:66.3%; height:16.5%;"> <tr> <th style="font-weight:600; font-size:18px">ONGC TRIPURA POWER COMPANY LIMITED</th> </tr> <tr> <td style="font-weight:600; font-size:18px">INITIAL EHS INCIDENT REPORT FORM OTPC/SOP/EHS/001/R1</td> </tr> </table> <div class="container"> <img src="otpc1" alt="Paris" style="width:130px; height:75px; border: 1px solid #ddd; border-radius: 4px; position: relative; left: 85%; bottom:17px; padding: 10px;"> <img src="otpc" alt="Paris" style="width:170px; height:75px; border: 1px solid #ddd; border-radius: 4px; position: relative; right:140px; bottom:16px; padding: 15px;"> </div> <div class="col-xs-6 col-xs-push-3 well"> <form class="form-horizontal" method="post" action="" enctype="multipart/form-data"> <input type="hidden" name="ronel" value=""> <fieldset style="position:relative; width:95%; top:0px; left:10px;"> <legend>NEW PROPOSAL NO.</legend> <!----left box-----------> <!----right box-----------> <div class="col-xs-9"> <div class="form-group"> <label for="inputEmail" class="col-lg-3" style="font-size:16px;color:black;"><b>Details of Incident:</b></label><br> <div class="col-lg-9"> <textarea rows="5" cols="110" name="details" class="form-control" maxlength="1000" onkeyup="textCounter(this,'counter4',1000);"></textarea><br><input style="position:absolute; left:75.3%; top:102px;" disabled maxlength="3" size="3" value="1000" id="counter4"> </div> </div><br> <fieldset style="position:relative; width:73.05%; height:50px; border:1px solid gray;"> <div class="form-group" style="position:relative; left:80px; top:-8px;"> <label style="position:relative; right:80px; top:25px;" for="inputEmail" class="col-lg-3"><b>Location:</b></label> <div class="col-lg-9"> <textarea name="location" class="form-control" rows="2" cols="56" maxlength="100" onkeyup="textCounter(this,'counter5',100);"></textarea><input style="position:absolute; left:54%; bottom:0px;" disabled maxlength="3" size="2" value="100" id="counter5"> </div> </div> <div class="form-group" style="position:absolute; left:638px; bottom:22px;"> <label style="position:relative; right:58px; top:20px;" for="inputEmail" class="col-lg-3"><b>Date:</b></label> <div class="col-lg-9"> <textarea style="position:relative; top:0px;right:19%;" cols="10" rows="1" disabled><?php echo date('Y-m-d'); ?> </textarea> </div> </div> <div class="form-group" style="position:relative; left:780px; bottom:54px;"> <label style="position:relative; right:67px; top:20px;" for="inputEmail" class="col-lg-3"><b>Time:</b></label> <div class="col-lg-9"> <textarea style="position:relative; top:0px;right:3%;" cols="10" rows="1" disabled><?php date_default_timezone_set("Asia/Kolkata"); echo date("h:i:sa"); ?> </textarea> </div> </div> </fieldset> <br> <div class="form-group"> <label for="inputEmail" class="col-lg-3" style="font-size:16px;color:black;"><b>Classification(Tick the appropriate one, Leave blank if you find it difficulty):</b></label> <div class="col-lg-9" name="checkbox"> <table> <tr> <th>Nearmisscase</th> <th>First Aid Case</th> <th>Lost Time Injury</th> <th>Fatal</th> <th>Fire</th> <th>Emission/Discharge/Spill/Leak(Abnormal)</th> <th>Property Damage</th> <th>HIPO</th> </tr> <tr> <td><input type="checkbox" value="Nearmiss case" name="checkbox"></td> <td><input type="checkbox" value="First Aid Case" name="checkbox"></td> <td><input type="checkbox" value="Lost Time Injury" name="checkbox"></td> <td><input type="checkbox" value="Fatal" name="checkbox"></td> <td><input type="checkbox" value="Fire" name="checkbox"></td> <td><input type="checkbox" value="Emission/Discharge/Spill/Leak(Abnormal)" name="checkbox"></td> <td><input type="checkbox" value="Property Damage" name="checkbox"></td> <td><input type="checkbox" value="HIPO" name="checkbox"></td> </tr> </table> <style> table { font-family: sans-serif; border-collapse: collapse; width: 75.5%; font-size: 15px; } td, th { border: 1px solid black; text-align: center; padding: 2px; font-weight: normal; } </style> </div> </div> <br> <div class="form-group"> <label for="inputEmail" class="col-lg-3" style="font-size:17px;color:black;"><b>Details of Injured :</b></label> <br> <label for="inputEmail" class="col-lg-3"><b>Name:</b></label> <div class="col-lg-9"> <textarea name="injured" cols="25" rows="1" class="form-control"></textarea> </div> </div> <div class="form-group" style="position:relative; left:20%; bottom:39px;"> <label for="inputEmail" class="col-lg-3"><b>Age/Gender:</b></label> <div class="col-lg-9"> <textarea name="agegender" class="form-control" cols="3" rows="1"></textarea> </div> </div> <div class="form-group" style="position:relative; left:29%; bottom:78px;"> <label for="inputEmail" class="col-lg-3"><b>Contact:</b></label> <div class="col-lg-9"> <textarea name="contact" class="form-control" cols="9" rows="1"></textarea> </div> </div> <div class="form-group" style="position:absolute; left:1.2%; top:26.5%;"> <label for="inputEmail" class="col-lg-3"><b>Employee ID:</b></label> <div class="col-lg-9"> <textarea name="empid" class="form-control" cols="3" rows="1"></textarea> </div> </div> <div class="form-group" style="position:relative; left:39%; bottom:117px;"> <label for="inputEmail" class="col-lg-3"><b>Organization:</b></label> <div class="col-lg-9"> <input type="text" name="organization" class="form-control"> </div> </div> <div class="form-group" style="position:absolute; left:55%; bottom:74%;"> <label for="inputEmail" class="col-lg-3"><b>Department:</b></label> <div class="col-lg-9"> <select name="dept" class="form-control"> <option value="">---------Select Dept--------</option> <option value="MMD">MMD</option> <option value="O&M">O&M</option> <option value="Civil">Civil</option> <option value="C&M">C&M</option> <option value="Logistics">Logistics</option> <option value="HR & ADMIN">HR & ADMIN</option> <option value="Fire & Safety">Fire & Safety</option> <option value="IT & MIS">IT & MIS</option> <option value="F&M">F&M</option> <option value="EMD">EMD</option> <option value="C&I">C&I</option> <option value="STORE">STORE</option> <option value="EHS">EHS</option> <option value="Tech Cell">Tech Cell</option> <option value="Operation">Operation</option> <option value="Chemist">Chemist</option> </select> </div> </div><br><br> <div class="form-group"> <label for="inputEmail" class="col-lg-3" style="position:relative; bottom:90px; font-size:17px;color:black;"><b>Summary Of Incident:</b></label> <div class="col-lg-9" style="position:relative; bottom:90px;"> <textarea rows="8" cols="110" name="summary" class="form-control" maxlength="1000" onkeyup="textCounter(this,'counter3',1000);"></textarea><br><input style="position:absolute; left:72.5%;" disabled maxlength="3" size="3" value="1000" id="counter3"> </div> </div> <div class="form-group"> <label style="position:absolute; left:63%; top:425px;" for="inputEmail" class="col-lg-3"><b>Upload Images Here :</b></label><br><br> <div class="col-lg-9"> <input style="position:absolute; left:78%; top:420px;" type="file" name="file" enctype="multipart/form-data" class="form-control" name="incident_reference" onchange="document.getElementById('inc_ref').src = window.URL.createObjectURL(this.files[0]); document.getElementById('inc_ref').className +='_active'; document.getElementById('inc_ref_span').className += '_hidden'"> </div><iframe id="inc_ref" class="form-group" width="220px" height="130px" style="position:absolute; left:78%; top:32%;"></iframe> </div> <div class="form-group"> <label for="inputEmail" class="col-lg-3" style="position:relative; bottom:110px; font-size:17px;color:black;"><b>Potential outcome(Incase of Near Miss case or Potential Incident only):</b></label> <div class="col-lg-9" style="position:relative; bottom:110px;"> <textarea rows="8" cols="110" name="outcome" class="form-control" maxlength="1000" maxlength="1000" onkeyup="textCounter(this,'counter2',1000);"></textarea><br><input style="position:absolute; left:76%; top:102px;" disabled maxlength="3" size="3" value="1000" id="counter2"> </div> </div><br> <div class="form-group"> <label for="inputEmail" class="col-lg-3" style="position:relative; bottom:110px; font-size:17px;color:black;"><b>Likely Cause:</b></label> <div class="col-lg-9" style="position:relative; bottom:110px;"> <textarea rows="8" cols="110" name="cause" class="form-control" maxlength="1000" maxlength="1000" onkeyup="textCounter(this,'counter1',1000);"></textarea><br><input style="position:absolute; left:76%; top:102px;" disabled maxlength="3" size="3" value="1000" id="counter1"> </div> </div><br> <div class="form-group"> <label for="inputEmail" class="col-lg-3" style="position:relative; bottom:110px; font-size:17px;color:black;"><b>Immediate Action:</b></label> <div class="col-lg-9" style="position:relative; bottom:110px;"> <textarea rows="8" cols="110" name="action" class="form-control" maxlength="1000" onkeyup="textCounter(this,'counter',1000);"></textarea><br><input style="position:absolute; left:76%; top:102px;" disabled maxlength="3" size="3" value="1000" id="counter"> </div> </div><br> <div class="form-group"> <label for="inputEmail" class="col-lg-3" style="position:relative; bottom:110px; font-size:17px;color:black;"><b>Incident reported by:</b></label> <label for="inputEmail" class="col-lg-3" style="position:relative; bottom:80px; right:160px;"><b>Name:</b></label> <div class="col-lg-9"> <input style="position:absolute; bottom:230px; left:10px;" type="text" name="reportedname" class="form-control"> </div> </div> <div class="form-group" style="position:relative; left:15%; bottom:100px;"> <label for="inputEmail" class="col-lg-3"><b>Position:</b></label> <div class="col-lg-9"> <input type="text" name="position" class="form-control"> </div> </div> <div class="form-group" style="position:relative; left:31%; bottom:141px;"> <label for="inputEmail" class="col-lg-3"><b>Organisation:</b></label> <div class="col-lg-9"> <input type="text" name="organisation" class="form-control"> </div> </div> <div class="form-group" style="position:relative; left:0%; bottom:130px;"> <label for="inputEmail" class="col-lg-3"><b>Contact:</b></label> <div class="col-lg-9"> <input type="text" name="reportedcontact" class="form-control"> </div> </div> <div class="form-group" style="position:relative; left:175px; bottom:171px;"> <label for="inputEmail" class="col-lg-3"><b>Department:</b></label> <div class="col-lg-9"> <input type="text" name="reporteddept" class="form-control"> </div> </div> <div class="col-lg-9"> <input type="hidden" name="status" class="form-control"> </div> <div class="form-group"> <label for="inputEmail" class="col-lg-3"><b></b></label> <div class="col-lg-9"> <input type="hidden" name="comment" class="form-control"> </div> </div> </div> </fieldset> <br> <script type="text/javascript"> function confSubmit(form) { if (confirm("Are you sure you want to submit the form?")) { form.submit(); } else { alert("You decided to not submit the form!"); } } </script> <script> function textCounter(field, field2, maxlimit) { var countfield = document.getElementById(field2); if (field.value.length > maxlimit) { field.value = field.value.substring(0, maxlimit); return false; } else { countfield.value = maxlimit - field.value.length; } } </script> <div class="form-group" style="position:absolute; left:33px;"> <div class="col-lg-12"> <button class="button1" type="reset" class="btn btn-default">Cancel</button> <button class="button1" type="submit" class="btn btn-primary" onClick="confSubmit(this.form);">Submit</button> <style> .button1:hover { background-color: #555555; color: aqua; border: 3px solid grey; } </style> </div> </div> </form> </div> </body> </html> Dear Sir this is the whole post and the full input fields. Kindly show some light. Error Message: Notice: Undefined index: name in /opt/lampp/htdocs/create-nearmiss.php on line 57
  12. its probably the short opening php tag on line 1 in the posted code.
  13. hello dear gizmola, hi requinix,😉 many thanks for your replies and the ideas - @requinix you posting made me smile… first of all - this idea is rooted in the impression i got by my first steps on dev.to: i saw that you can share topics / not the whole thread to dev.to - that is a great features. At the moment i do not know what happens with such content on dev.to - i did not try it out - and that said: i am a dev.to member for only one week now. btw: the options of the idea of "sharing to a phpBB: see https://www.phpbb.com/community/viewtopic.php?f=496&t=2546646&p=15466131#p15466131 David63 says: note: you can share the posts or at least the Subjects to dev.to /besides to Twitter and Facebook too and regarding he structure of SO i like the post of Zohar Peled on dev.to cf https://dev.to/peledzohar/differences-between-dev-and-stackoverflow-6o3 note: its more to be a humorous comparison rather then a real feature-to-feature list. [sorry for the bad format - but this is quote below - was not intended - and i t cannot be fixed at the moment;) [sorry for the bad format - but this is quote - it was not intended - and i t cannot be fixed at the moment;) have a great day regars dil_bert
  14. most of my site is now switched to mysqli but i am having issues with a page. its not giving me any errors and its fetching the info from the db. i have an edit function per entree that loads this page. when i click on it the edit and the page loads there is no info from db to edit and when i submit nothing changes. some one mind taking a look, thanks. <? ini_set("display_errors", "10"); error_reporting(E_ALL); include("../dbinfo.php"); $con = mysqli_connect($host,$username,$password); mysqli_select_db($con, "database") or die( "Unable to select database"); // get value of id that sent from address bar $sid=$_GET['sid']; // Retrieve data from database $sql="SELECT * FROM simple_search WHERE sid='$sid'"; $result=mysqli_query($con, $sql); $rows=mysqli_fetch_array($result); ?> <body bgcolor="#666666"> <br /> <table width="95%" border="0" cellspacing="1" cellpadding="0" align="center"> <tr> <form name="form1" method="post" action="crew_update_ac.php"> <td> <table width="100%" border="0" cellspacing="1" cellpadding="0" align="center"> <tr> <td height="64">&nbsp;</td> <td colspan="3" align="center"><strong>Update Upcoming Event</strong> </td> </tr> <tr> <td align="center" width="9%"><strong>Event Name</strong></td> <td width="85%"><input name="stitle" type="text" id="stitle" value="<?php echo $rows['stitle']; ?>" size="50"></td> </tr> <tr> <td width="9%" height="54" align="center"><strong>Event Date</strong></td> <td width="85%"><input name="datepicker" type="text" id="datepicker" value="<?php echo $rows['datepicker']; ?>" size="50"></td> </tr> <tr> <td align="center" width="9%"><strong>Event Info</strong></td> <td width="85%"><textarea name="sbody" id="sbody" cols="150" rows="50"><?php echo $rows['sbody']; ?></textarea></td> </tr> <tr> <td align="center" width="9%"><strong>Picture</strong></td> <td width="85%"><input name="pic" id="pic" size="50" value="<?php echo $rows['pic']; ?>"></td> <td>Current Picture <br><img src="<?php echo $rows['pic']; ?>" width="173" height="137"/></td> </tr> <tr> <td align="center" width="9%"><strong>Flyer</strong></td> <td width="85%"><input name="file" id="file" size="50" value="<?php echo $rows['file']; ?>"></td> <td></td> </tr> <tr> <td>&nbsp;</td> <td align="center"><input name="id" type="hidden" id="id" value="<?php echo $rows['sid']; ?>"> <input type="submit" name="Submit" value="Submit" /></td> <td width="5%" align="center">&nbsp;</td> <td width="1%">&nbsp;</td> </tr> </table> </td> </form> </tr> </table> </body> <?php // close connection mysqli_close($con); ?>
  15. I'm sure it was not malicious, but most people don't appreciate it when someone has homework and uses forums like ours to get the answers. Next time, please remind us that you're learning and let us know that your tutor asked you to do something. That way we can help you get to the right answer without accidentally writing all the code for you.
  16. I have been trying my best, and needed extra help - I thought this is what forums are for, when you have no one else to ask for help. It wasn’t intended to be malicious or abusive and warning was completely uncalled for.
  17. So you got us to write the code for you. Well done. It won't happen again.
  18. Farming StackOverflow content to your forum is a really good way to piss off StackOverflow.
  19. I hope you've learned a lesson from that: don't use unattended or otherwise automatic software upgrades on production systems. Have you checked if dpkg needed to update configuration files? Hopefully it created backups of the originals - check if the changes are relevant. Anyway, the curl output looks right. Next step would be writing proper WSS headers and seeing what happens.
  20. array() can be used to create something that looks like an object (with keys) and something that looks like a list of things (no keys). The result part has two opening symbols: [ and a {. The first one is a list, the second is an object. Two symbols, two array()s. One inside the other.
  21. If the client knows it's happening, sure. Probably either explicitly mentioned in the contract, or done after the fact with some sort of agreement. Paperwork. Otherwise definitely not.
  22. It didn't do what prior to what install? It almost sounds like you're saying you had PHP working before you installed Apache and PHP... If you're using php-fpm (which you generally should be) then you need to tell Apache that it should run .php files through the service. Check the online documentation for how. If you're using mod_php then I'm pretty sure you haven't actually installed it. Beyond that, it depends what operating system you're using.
  23. Thank you for your help. I am taking fast track web development classes, and this was one of the homework tasks - I gave my tutor all three previous answers, which still return the correct outcome, but he insisted it must be done with a function and parameter.
  24. Yesterday
  25. You output totals once per user. The logic would be the same for outputting the inks, but it depends where you want to output them.
  26. We would need more information. From what I can see, these are 2 woo-commerce plugins. Do they NOT work together? And if so, what errors are you seeing? The 2nd plugin has a warning stating that it hasn't been updated in the last 3 WP releases.
  27. What distro is the NAS server based on? Do you have a package management tool you can use to add/update packages?
  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.