Buggy career talk :-P Programming by Dani What's the most challenging bug you've ever encountered in your programming career, and how did you eventually solve it? I’ll start. The only one I can recall from the recent past is not realizing that you can’t use a MySQL transaction from within a persistent connection. Here’s [when I learned that lesson](https://www.daniweb.com/programming/… Re: Buggy career talk :-P Programming by Reverend Jim The most challenging bug was one I introduced myself. While making a miniscule code change I decided to improve the readability of the following line by inserting a space. In today's code that would not be a problem, however, most of our code (AGC/SCADA) was written in FORTRAN. Those of you who made your bones in the punch card era, or know a … Re: Buggy career talk :-P Programming by pritaeas The one with the most impact was a Firebird library update, which appeared low to no impact. After deploying at a customer, the library soon showed a complete disregard for database transactions. This mangled the client's database completely and caused us to retrace all changes by hand to undo the damage done. Several weeks worth of misery... … Re: Buggy career talk :-P Programming by Salem This https://en.wikipedia.org/wiki/Peterson%27s_algorithm Plus two different kinds of processors. Plus an error rate of less than once a week. After many months, the cause was eventually captured on a bus analyser. After which, the solution was obvious after a bit of RTFM. Turned out that one of the processors had the then awesome new … Re: Hanayama Cast Puzzles - Mind bracing riddles Community Center Geeks' Lounge by Emma_Rose Absolutely, I love puzzles! 🧩 The Cast Radix sounds like an awesome challenge—level 4 definitely isn’t a walk in the park. There’s something super satisfying about taking apart a well-crafted metal puzzle and figuring out the perfect movements to get it back together. And yes, that solid, high-quality feel makes a big difference—it’s like the … Re: send checkbox to email using phpmailer Programming Web Development by Dani I would begin by making sure that you sanitize input passed in via $_POST. This ensures that someone doesn't pass in something like `$POST['oneway'] = '</p>Foo!<strong>Blah</strong>` and completely screw up your HTML, or, worse yet, inject Javascript into your HTML. <p><b>One Way:</b> ' . … send checkbox to email using phpmailer Programming Web Development by ianhaneybs I need some help with getting checkbox values sent to email using phpmailer I have not done it before so unsure how to do it, the current code I have is below $postData = $_POST; $oneway = $_POST['oneway']; $return = $_POST['return']; $htmlContent = '<h2>Contact Form Details</h2> &… Re: Hi everyone, I'm 2488 Community Center Say Hello! by Dani Hello. :-P Re: Hi everyone, I'm Jason_70 Community Center Say Hello! by Dani > So, a Spaceballs fan? Oh, of course! That and Galaxy Quest. :-P Re: <p/> not making a new line? Digital Media UI / UX Design by daviddoria Attempt #3... haha [code] <html> <body width=100%> <p>Test heading</p> <br/> <p style="margin: auto; width:50%">Test heading</p> <center><p>Test heading</p></center> </body> </html> [/code] This results in a left justified, a weird kind of center/left … P.C. starts on it's own! Hardware and Software Microsoft Windows by johnp9523 Hi, A problem Ihave not been able to solve: P.C. is off. move or knock the keyboard and the P.C. boots. now even though the P.C. is off the keyboard light is on. (wife noticed this morning)so I pressed a few keys. P.C. did not start. It's temperatemental, if one accidently knocks/moves the keyboard when the P.C. is off it boots. any sugestions? … <p> Tag on Tables Digital Media UI / UX Design by feoperro Hi, How do you use the paragraph <p> </p> tag if you want to use it on an entire table? I tried: [CODE] <p> <table> <tr> <td> Content 1 </td> </tr> <tr> <td> Content 2 </td> </tr> <tr> <td> Content 3 </td> </tr> </table>… Re: <p/> not making a new line? Digital Media UI / UX Design by daviddoria Ah, I changed [icode]<p/>[/icode] to [icode]<p>&nbsp;</p>[/icode] and then it worked as expected. So what does [icode]<p/>[/icode] do then? Also another thing - the [icode]<center>[/icode] tags around the UL (the menu) don't seem to work (as the menu is not centered) - any thoughts on that? Thanks, David Re: <p/> not making a new line? Digital Media UI / UX Design by daviddoria I tried this: [code] <html> <body> <p>Test heading</p> <br/> <p style="margin: auto;">Test heading</p> </body> </html> [/code] Expecting the first one to be left justified and the second one to be centered, but they are both the same (left). Re: <p> doesn't start a new line? Digital Media UI / UX Design by MidiMagic The [icode]<p> </p>[/icode] tag pairs enclose a paragraph. A single [icode]<p>[/icode] tag is not allowed to be used as a line break. The [icode]<p> </p>[/icode] tag pairs can not be directly inside [icode]<ul> </ul>[/icode] tag pairs. Only [icode]<li> </li>[/icode] tag pairs are allowed to … p class & cats, subcats Programming Web Development by iVala Hi. :-) I'm relatively new to PHP/CSS although I'm figuring it out by trial and error. Uh, mostly error... The problem is that there is a big gap between my CATEGORIES and SUBCATEGORIES on the front page of my directory. I'm guessing the culprit is this line: [CODE]<p class="subcats">[/CODE] which starts a new paragraph. … Re: <p> Tag on Tables Digital Media UI / UX Design by Kraai Hi As far as I know, you cannot have a <p> tag with a box element like a <table> tag. The <p> tag is meant for inline elements. What is it that you are trying to achieve with the table? <p/> not making a new line? Digital Media UI / UX Design by daviddoria On this page: [url]http://ewh.ieee.org/r1/schenectady/New/[/url] I have the title image and title text: [code] <center> <a href="index.php"><img style="vertical-align:middle;" src="/r1/schenectady/images/IEEE.gif"></a> <span id="lightblue" style="vertical-align:middle;… Re: <p/> not making a new line? Digital Media UI / UX Design by daviddoria I got it to work by enclosing the normal <ul> tag inside of a [code] <div style="margin-left: auto; margin-right: auto; text-align:center; width: 50%;"> [/code] I had tried the same thing with p: [code] <p style="margin-left: auto; margin-right: auto; text-align:center; width: 50%;"> [/code] but it didn't … p tag inside form tag Digital Media UI / UX Design by Violet_82 Sorry guys, I'd like to just confirm this, is it correct to have a p tag inside a form tag? Something like <form action="demo_form.asp"> <p>This is a test.</p> First name: <input type="text" name="FirstName" value="Mickey"><br> Last name: <input type="… Re: <p> doesn't start a new line? Digital Media UI / UX Design by jpietrangelo You'll need a fixed pixel width on the <ul>. Of course, you'll want to give your <li> tags a fixed width too. Also, you'll need a fixed pixel height. One other thing, David. I would advise you to get rid of all your inline CSS. Use your external stylesheets only. That will make it easier for you to view the CSS and not have inline … Re: <p/> not making a new line? Digital Media UI / UX Design by shaya4207 The '<p>' tags are empty, try putting '&nbsp;' in between the 2 empty tags. Re: <p/> not making a new line? Digital Media UI / UX Design by shaya4207 The <p /> tag doesn't work on it's own, you would want <br /> for that, which would make a line break (sorry I just remembered that). About the <center> tags, that's deprecated, since we don't want to use styling in actual HTML, rather give it a 'margin: auto;' that would be the right way to do it Re: <p/> not making a new line? Digital Media UI / UX Design by shaya4207 Put a width for the body, and (obviously a smaller) width for the second <p>, and that should work Re: <p/> not making a new line? Digital Media UI / UX Design by shaya4207 If you put a border around the first <p> you'll see that it's centered only the text is aligned to the left of the border, just add in there 'text-align: center' and you're in business. I know this seems like alotta extra work, but it's good to right code the W3C compliant, because eventually the <center> won't work with newer browsers… Re: <p/> not making a new line? Digital Media UI / UX Design by teedoff Not sure why then. You do have a couple of validation errors in your code. In your footer you have a closing </p> but not an opening one. This probably wouldnt affect your <ul> though, just thought I'd mention it. You need three things to center an element. Valid doctype specified width for the element and margin left and right … Re: <p/> not making a new line? Digital Media UI / UX Design by daviddoria Thanks, I removed the erroneous /p tag. However, you were right that that didn't affect the UL. I changed it to: [code] <ul id="nav" class="dropdown dropdown-horizontal" style="margin-left: auto; margin-right: auto; text-align:center; width: 50%;"> [/code] but you can see that it is left justified: [url]http://… <p> doesn't start a new line? Digital Media UI / UX Design by daviddoria On this page: [url]http://ewh.ieee.org/r1/schenectady/New/[/url] I have a <ul> element (the menu bar) followed by a <p> element (the main body text). Shouldn't the <p> be below the <ul> since it is a block element by default (instead of on the same line as it, as it is now)? Thanks, David Re: p tag inside form tag Digital Media UI / UX Design by Acelabs Hi, Absolutely no wrong in this. U can darely use P tag inside form :-) Re: <p> doesn't start a new line? Digital Media UI / UX Design by Kraai I'm not sure, but it seems you forget the closing </div> before you start with your <p> for the content. Edit: Sorry, I see your closing </div's> is further down, so ignore. But, should there not be a seperate opening <div> closing </div> for the horizontal menu within the container?