Skip to content
Advertisement

Tag: html

Show dropdown value based on previous selection

Is it possible for me to only display the related data on my second dropdown option when I click it on my first dropdown? I saw a similar question on stackoverflow, but I can’t get it to work. The link is available here. It works when I copy and paste the code from the solution into my system. However, when

I want to transfer data from a CSV file (which is on local computer) to Mysql table. Code gives error

my code is error is: LOAD DATA LOCAL INFILE student.csv INTO TABLE studentregtable FIELDS TERMINATED BY ‘,’ LINES >>TERMINATED BY ‘ ‘ IGNORE 1 LINESSQLSTATE[42000]: Syntax error or access violation: 1064 You have an error >>in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax >>to use near ‘student.csv INTO TABLE studentregtable

How can I output values from an Excel table on my website?

In my Excel spreadsheet there are several values, both numbers and text. I would like to display these values on a web page inform of graphs. But I have no idea how to solve this, I thought of Python and PHP. I try to do it with HTML and it is impossible. Answer You can read the file using the

Opening a .html with window.location

I’m writing a simple login page in Ajax + Jquery I have an error when I click on the button. And I don’t understand why. Uncaught SyntaxError: Unexpected end of input At this line echo ‘<input type=”button” value=”connexion” OnClick=”window.location.assign(“http://localhost/loginmap/members/success.html”)>’; There is my code Answer It’s cause you wrote quote character. You can use this way as well.

How can I echo ‘for’ loop here

I want to use $i into his PHP condition how can I do this? I have no idea how to echo into condition. plz see the code and if you can plz help me. thank you advanced. Answer To accomplish what you are trying to do, simply follow this example: becomes So you basically take the string you want (which

How to style echoed text?

I am trying to style the user, time and content. they only appear once the user has entered a comment into the website and so I cannot use <p> tags with inline CSS. any suggestions? Answer 1- create a class in your css (i.e: myClass) 2- use echo like this: echo ‘User: <span class=”myClass”>’.$row[‘user’].'</span></br>’ ; Edited: html characters in php

dynamically passing href in anchor tag

i want to redirect user to registration based on there role. like there is two roles user and shop if user select user role then it will be directed to the ragic.php(registration customer) if selected shop then ragis.php Hear is the code… one problem is how i pass a javascript variable into anchor href. or i also try for php

Advertisement