i have a problem. I have to use the wordwrap function to not go too far with the text in a table. I inserted wordwrap and it worked fine but now that I also have to insert some html code I have a problem. The wordwrap function cuts my html code (for example span cuts it to me in sp
Tag: html
How Can I Identify Which Linked Was Clicked With PHP?
I have connected to my database with PHP and selected a bunch of names with a query. Each name has an id value. I created a while loop that loops through the results and outputs something like this: (id only displayed for explanation purposes) At the linked page I want to run a query like SELECT * FROM database.table WHERE
On form submission I get an error ‘Method not allowed’ – Javascript [closed]
Closed. This question needs details or clarity. It is not currently accepting answers. Want to improve this question? Add details and clarify the problem by editing this post. Closed 12 months ago. The community reviewed whether to reopen this question 12 months ago and left it closed: Original close reason(s) were not resolved Improve this question I have below html
PHP not executing a shell exec command
To keep this simple this code works: And this code code doesn’t: Does anyone know how I can get the code that doesn’t work to work? I have ran the command in a normal terminal and they execute as expected, but when ran with PHP it cause a server 500 error – this seems to require a PHP code review
PHP form validation not functioning having copied the tutorial code
I am hoping the community can give me a little insight into what is not working with my code, I am following a Udemy course. I have followed the accompanying video which developed an undefined variable error, which after doing some research I believe I have fixed by declaring variables as empty strings being able to be over-ridden by the
HLS/m3u8 stream checker for a LIVE badge/image
Hey everybody how are you doing. I have a small but for me a headache question. In short. I want to show a ”LIVE” badge/image if a HLS/m3u8 stream is active. If somebody know’s how to achieve this, i would really appreciate it. Tried to google it but im clueless when it comes to implementing ”custom” code. It’s for a
Using JS variable as the property of HTML input Form
I have a form which have two field “optin” and “Qty”.The quantity field of the form accept the number.The minimum number which can be entered in this field(QTY) depends upon the the value of the Option field i.e. If the option fiels value is red then the minimum value propert of the Qty field should be 5 and if it
Randomly Show an HTML Snippet From List With PHP
As the title implies, I have a few different lines of HTML code (Example Below), and I would like the server to randomly select one and show it when the page loads. I have these three HTML snippets, and I want one to randomly show when the page is loaded. I found this example using the PHP array function, but
How to calculate the age of a person using variables like: year, month, day in PHP
I have tried to get the age of a person, using the code below, although I wanted the output to be your exact age, it reads an incorrect age if your birthday was before the current date but a correct age if your birthday is after the current date kindly correct the code Answer You can use this for age
How to make Woocommerce checkout field not required if checkbox is checked?
In Wordpress Woocommerce checkout page I want to make field ‘billing_name’ not required if checkbox ‘buy_on_company’ is checked. I have managed to hide ‘billing_name’ in checkout page, but how to make it not required also? Answer I have done this: Now it doesn’t ask for billing name field.