Project Help Wanted
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Try It Free
Go Back   Dev Shed ForumsOtherProject Help Wanted

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
 
Unread Dev Shed Forums Sponsor:
Stop making mediocre tutorials.The best tutorials are video! Camtasia Studio makes it easy to create engaging, buzz-building screen videos at any size, in any popular format. Download the free trial!
  #16  
Old January 6th, 2004, 04:32 PM
TheGoldeagle TheGoldeagle is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2003
Posts: 35 TheGoldeagle User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 5
I have to use php. I can't use flash. Also I have read all of the above (Well most of it) and I found no were were it tells me what I need to know. It does not tell me how to set up were I have like a shoping cart. Thats basicly what I need to know. And It is going to be a very complex game. The game will work kinda like chess but More as a level. I do not know what to use to get this done as far as the SQL Statments. And The php part my friend will do. So if you can at lest tell me how to save data the way I stated above I would be very apriciative.

Reply With Quote
  #17  
Old January 6th, 2004, 07:39 PM
TheGoldeagle TheGoldeagle is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2003
Posts: 35 TheGoldeagle User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 5
Also If I tell my apache, mysql software to host a site that is allready hosted can I still do that? Also Will it be a sucurity risk for me?

Reply With Quote
  #18  
Old January 6th, 2004, 09:04 PM
Sadu Sadu is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2004
Posts: 7 Sadu User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 18 m 42 sec
Reputation Power: 0
If you are going to be doing anything with MySQL I highly recommend installing PHPMyAdmin on your server, or using a host that has it installed (www.ionichost.com is a free PHP host with MySQL, but the ads are REALLY annoying. Dreamhost is one of the best hosts I have found, US$10pm for 3 domains fully hosted and maxed out with cool features).

In my experience, when you are getting started, you have enough to learn about SQL and PHP without having to learn about configuring your server as well.

It's going to be hard to give you SQL commands without being able to see your Table design. Here are a couple of snippets you can use to get data in and out of a database.
BTW, this is all documented in the PHP manual etc.

Putting data in...

PHP Code:
 $query "INSERT INTO tablename SET fieldname1='$fieldvalue1',fieldname2='$fieldvalue2'";
$result mysql_query($query) or die ('The Query Failed'); 

Usually you will use a HTML form for getting data into a database.

Getting data out
PHP Code:
 $query "SELECT fieldname1, fieldname2 FROM tablename WHERE 1";
$result mysql_query($query) or die ('The Query Failed');
while (
$ary mysql_fetch_assoc($result)) {
while (list(
$key,$val) = each($ary)) {$$key $val;}
  
//This code will be repeated for each record that is returned
  
echo "Value of 'Field1' is $field1 <br>\n";



But really mate (and don't take this the wrong way) you are asking for specific information, but you aren't being all that specific on what you actually need. A bit of planning will go a long way, and I'm sure that if you can let us know what you are trying to achieve (screenshots of a mockup wold be good) then you will get some good advice in return. My 2c.

Reply With Quote
Reply

Viewing: Dev Shed ForumsOtherProject Help Wanted > Anyone Want to help me??


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


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





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