Skip to content

Tag: mysql

How do I get data from another table in MySQL?

I’m currently trying to link some databases up for a project I’m working on for my business. Here’s my below SQL I’m using for my PHP website. At the moment my output goes like this to show what’s in each row using e.g. $lname=$lname[“variable”] I have another “…

PHP trying to simply a repetitive script involving rowsets

I’m trying to simplify a repetitive script that I’m doing in PHP. I’ve looked at a few loop options but since it involves rowsets being returned from a MySQL stored procedure it’s not acting properly. I’m doing this same script about 15 times to return all the data. Ultimately I&…

PHP, MySQL date calculations

I’m trying to add a number of weeks to date, both will be taken from a database, I successfully fetch both needed but I can’t figure out how to make the calculations. So far I tried with “strtotime” but it gave me some weird results How do I do this the right way? The desired result sh…

PHP MYSQL Displaying the same data from table to another page

Asset Approval List is a table with lots of row of data and a button, after clicking the button, it will link to Asset Approval Form. I would like to fetch the data from the same row in Asset Approval List to my Asset Approval Form. The data in the table of Asset Approval List is fetched from mysql phpmyadmin…