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
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
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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.