Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
MYsql / DREAMWEAVER PROBLEM
Old 06-28-2010, 08:52 AM MYsql / DREAMWEAVER PROBLEM
Novice Talker

Posts: 6
Name: No
Trades: 0
HI,

I have currently produced a database with information that is retruned in dreamweaver to produce a index page/ subpage directory site. This all works fine...but is limited.

What I want to be able to do is have a database that retruns full records for one client and then only selected records for antoher but based in the same recordset.

Therefore I was hoping I could have a yes/no column in the database with a script that allows full details to be displayes if column X says 'Yes' and partial details o be dispayed if column X says 'No'.

Is this even possible, Sorry I am a complete novice.

Any help would be greatly appreciated.

Regards
gazmiz is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 06-29-2010, 08:18 AM Re: Dreamweaver php/ mysql problem
Novice Talker

Posts: 6
Name: No
Trades: 0
Any ideas, or guidance...
gazmiz is offline
Reply With Quote
View Public Profile
 
Old 06-29-2010, 09:33 AM Re: Dreamweaver php/ mysql problem
Extreme Talker

Posts: 181
Name: David Jackson
Trades: 0
its all driven from your SQL query

Are you using the Dreamweaver wizards for this?

How are your PHP skills?
__________________

Please login or register to view this content. Registration is FREE
davidj is offline
Reply With Quote
View Public Profile
 
Old 06-29-2010, 09:40 AM Re: Dreamweaver php/ mysql problem
vectorialpx's Avatar
Extreme Talker

Posts: 249
Name: octavian
Location: Bucharest
Trades: 0
Don't use Dreamwaver to make auto-stuff [records, pages etc] cause you'll only get into a lot of problems.

So, use a simple database connection, with a simple SQL query. All you have to do is to add some conditions

like davidj says, it depends of you PHP knowledge
__________________
you can
Please login or register to view this content. Registration is FREE
vectorialpx is offline
Reply With Quote
View Public Profile Visit vectorialpx's homepage!
 
Old 07-01-2010, 02:52 AM Re: Dreamweaver php/ mysql problem
Novice Talker

Posts: 6
Name: No
Trades: 0
Many thanks ofr the replies. Unfortuantely I am a php virgin and am only just starting to get to grips with it, hence at present I am using the Dreamweaver wizards.

Do you have any ideas where I could get a query or idea of how to write one efrfectively?
gazmiz is offline
Reply With Quote
View Public Profile
 
Old 07-01-2010, 06:00 AM Re: Dreamweaver php/ mysql problem
Experienced Talker

Posts: 41
Trades: 0
Of - course it's possible just fire the sql Query like
SELECT column_name/* FROM table_name ; having capacity to retrieve the data from table, along with that you use basic programing concept,like looping and array.

If you'll show the code here then I'll correct them.
sandeep Kumar is offline
Reply With Quote
View Public Profile Visit sandeep Kumar's homepage!
 
Old 07-02-2010, 08:32 AM Script wanted to return data if colum syas yes and not if says no
Novice Talker

Posts: 6
Name: No
Trades: 0
Hi,

As you have guessed from the title I am wanting to return records to my site if a certain column in the site says yes and return fewer records if the same column says no.

Any help greatly appreciated.

Regards
gazmiz is offline
Reply With Quote
View Public Profile
 
Old 07-02-2010, 09:02 AM Re: Script wanted to return data if colum syas yes and not if says no
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,385
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
Assuming the database supports SQL,

Code:
SELECT column-list FROM table WHERE column = 'yes';
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 07-02-2010, 12:48 PM Re: MYsql / DREAMWEAVER PROBLEM
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,385
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
THREE threads merged
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Reply     « Reply to MYsql / DREAMWEAVER PROBLEM
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.79738 seconds with 12 queries