This is the HTML/PHP , I am using to display some data. and I am getting the data like this from the db. This outputs a single table with all the data. My question is , is there a way to break the single table into tables when the value of postid changes? It goes like..is 1 for x number
Tag: html
I have a little problem to confuse, when I click the button to add new table, it’s cannot add under the
I have a little problem to confuse, when I click the button to add new table, it’s cannot add under the <tr> Where has a problem? this is my code js.code PHP code When I click the add_ag button, it cannot add table under the Answer like this html
$_SESSION problem – I have same ID on all
I don’t know, how I do this: I want to add $id from database to $_SESSION[“dbID”] and after click, it shows me more information from database. But table generates in while function and $_SESSION[“dbID”] every time set to the highest number of row from table. Please, Can you anyone change my code as I have $_SESSION[“dbID”] on every <tr> of
Boostrap Select
It doesn’t show output <option>. It shows only the select with no element inside. I’m using bootstrap-select library. What’s the problem? Answer You don’t have any problem: It’s working here: Try to set the function like this (inside script tag):
PHP not redirecting on Ubuntu Server
I’ve built a website login form on my local Windows machine that works perfectly but when deployed on an Ubuntu web server, the login for redirects to /login.php# Below is the code used – LDAP has been uncommented from the extensions section in php.ini on the Ubuntu server. Is there something Linux specific I’m missing here? Many thanks, Craig Answer
How to use $_FILES in a Jquery/Ajax script to stay on the previous HTML page and upload a file into a folder
I have a php script that uploads a file into a folder : This works fine, don’t mind the fact that i don’t test if the files exist or other test, it is just to see how uploading a file works. I also did a script using Ajax to avoid the php file to be loaded and then redirect to
My PHP not processing input from radio buttons
EDIT: Some more searching on the wide web led me to this… Later on, in my form, I disable these radio buttons to prevent users from changing their previous answers after some time… Is it possible that the PHP is not reading the diasabled buttons? How should I then prevent the change of radio button states AND still have readable
Hide file in directory
I want to hide files from sub directory From this mydomain.com/file/file.php To this mydomain.com/file/ Do you guys know how to do that? Answer In your home directory/.htaccess, add this line: This will do this work: mydomain.com/file/ => mydomain.com/file/file.php mydomain.com/foo/ => mydomain.com/foo/foo.php mydomain.com/bar/ => mydomain.com/bar/bar.php The idea is to repeat the directory name as filename + .php extension in your real
Show only user from the same company
I want ask how it’s possible when an user Type=Chef logs into the website, in the Dashboard it only shows the user from his company Foreign key (fk_FirmaID). I don’t how process it to only show a specific company. Here is my code that I have for the moment. When an user is logging in I’m saving his user details
The correct way to path files/images/links on html
It seems to be a very beginner question, but after finish my whole website, i found a “bug” on the structure of the path files/images and links. Well, first let me tell you what is the exactly structure: The website are located on: /var/www Main pages files are located on the main website folder: /www CSS files are located at