MS SQL Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Verisign Code Signing
Go Back   Dev Shed ForumsDatabasesMS SQL Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
  #1  
Old June 9th, 2004, 02:15 PM
Dagas Dagas is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2004
Location: South of Cleveland OH
Posts: 12 Dagas User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via ICQ to Dagas Send a message via AIM to Dagas Send a message via MSN to Dagas Send a message via Yahoo to Dagas
Question Using Variables as Table Names

Sirs / Ma'ams:

i have a question that may seem really stupid to y'all but i am going to ask anyway

what i am trying to do:

i have a website that has upto 55 differant catagories that can be selected... (only one at a time though) when a cat is selected, it sends you to a page for you to enter in multiple fields... (using a form) and then when submit is clicked there is a hiddent field that sends a variable to the "check-edit" page called table....

what i want to do is only have one "check-edit" page... the page goes through and checks to make sure that all fields are filled out properly and all that... and if they are this is what i have as a query....

else
{ /*open of last else... */
if (!mysql_query("INSERT INTO $table (cdi_prod_number,nsn,short_desc,prod_price,prod_size,qty,vendor,our_cost)
VALUES('$prod_id','$nsn','$sh_desc','$list_price','$size_vol','$min_qty','$vendor','$our_cost')"))
{
print ("I didn't enter any data");
}
}


where $table is the information that was passed from the previous page...

how do i, if it can be done, make that work... all i get is the fallout -- "i didn't enter any data"

any and all help is very welcomed.....


email: will.gray@cas-grp.com

Reply With Quote
Reply

Viewing: Dev Shed ForumsDatabasesMS SQL Development > Using Variables as Table Names


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

 Free IT White Papers!
 
Accelerating Trading Partner Performance
One in five. That's how many partner transactions have at least one error. That is an amazing statistic, particularly given the extraordinary leaps in innovation across the global supply chain during the past two decades. Download this white paper to learn more.

 
Competing on Analytics
This Tech Analysis is designed to help identify characteristics shared by analytics competitors, and includes information about 32 organizations that have made a commitment to quantitative, fact-based analysis.

 
Cost Effective Scaling with Virtualization and Coyote Point Systems
An overview of the industry trend toward virtualization, how server consolidation has increased the importance of application uptime and the steps being taken to integrate load balancing technology with virtualized servers.

 
Five Checkpoints to Implementing IP Telephony
Implementation planning for IP PBX software and IP telephony has become vital as businesses replace discontinued legacy PBX phone systems. This informative whitepaper outlines five "checkpoints" for any implementation plan that will help make IP communications a successful proposition.

 
Hosted Email Security: Staying Ahead of New Threats
In the last two years, email has become a fierce battleground between the nefarious forces of spam and malware, and the heroes of messaging protection. The spam volumes increased alarmingly every month, bringing clever new forms of phishing and virus propagation attacks.

 

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway