Jump to content

Is there...


ccrevcypsys

Recommended Posts

yeah...you are going to have to pass the table names in the URL. Or at least thats how i did it.

 

so your URL would like something like this:

 

http://www.yoursitename.com/form.php?table=tablename

 

your code:

 

$var = $_GET['table'];

 

$query = "SELECT * FROM " . $var . " ;

 

Or something to that effect. This could extremely "hairy" LOL!

Link to comment
https://forums.phpfreaks.com/topic/81697-is-there/#findComment-414953
Share on other sites

well thats how the rest of the site works so i have already done that. i was just wondering about the form to edit the information. I cant think logical enough to start it.

 

How about this is there any way to have php count the columns.

 

like

count how many of these there are

 

Table

---------------

id

customer_id

another_column

 

for table that would equal 3

so there would only be 3 input boxes

 

Link to comment
https://forums.phpfreaks.com/topic/81697-is-there/#findComment-414960
Share on other sites

no dude thats different.

 

Heres the break down

 

The person will log in and view all the different tables.

Then she/he will click on a row in the table to edit

Then a page will open with a form that will let her edit the information

            and there will only be one row when they go to edit the information

I am trying to work around having to make 8 different forms and wanted to know if there was a way to get around that.. Thats about all.

 

Link to comment
https://forums.phpfreaks.com/topic/81697-is-there/#findComment-414968
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.