Tutorials
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Codewalkers ForumsOtherTutorials

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 Codewalkers Forums Sponsor:
AT&T devCentral & BlackBerry(r) Webcast Series: BlackBerry and GPS -Build Location Awareness into your BlackBerry Applications, July 10th-1:00PM EST. Register Today!
  #1  
Old June 22nd, 2004, 07:29 PM
GreatGasPrices_com GreatGasPrices_com is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Concord, NH USA
Posts: 1 GreatGasPrices_com User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Create dynamic sites with PHP & MySQL

Greetings.
In this tutorial (#9) there are some errors that will really turn off newbies that don't have any experience. I am a newbie, but I have read enough to fix the errors in the scripts.

Page 10
salary) VALUES ('$first', '$ last', '$nickname','$email','$salary')";
There is a space between '$' and 'last'

Page 12
$result = mysql_ query("SELECT * FROM personnel",$ db);
The last variable has a space

Page 13, upper box
$db = mysql_ connect("localhost", "root", "");
a space before 'connect'
mysql_select_db("learndb",$ db);
the last variable has a space

Page 13, lower box
echo "<TR><TD>".$myrow["firstname"]." ".$ myrow[" nick"];
a space in the last variable

Page 14, lower block
echo "<a href="delete. php?id=".$myrow[id]."">Delete</a> ";
delete.php has a space in it

Have fun!

Reply With Quote
  #2  
Old June 23rd, 2004, 02:35 AM
Matt Matt is offline
Moderator
Codewalkers Specialist (4000 - 4499 posts)
 
Join Date: Apr 2007
Location: Florida
Posts: 4,158 Matt User rank is Private First Class (20 - 50 Reputation Level)Matt User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 4 h 10 m 20 sec
Reputation Power: 6
RE: Create dynamic sites with PHP & MySQL

Those errors have been corrected. Thanks for pointing them out!

Reply With Quote
  #3  
Old July 19th, 2004, 07:17 PM
fartz fartz is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: uk
Posts: 1 fartz 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 fartz Send a message via Yahoo to fartz
RE: Create dynamic sites with PHP & MySQL

please dont flame me
im new to php and mysql trying this tutorial ive created database and view php i get an error
Parse error: parse error, unexpected on line 5 which is my:

$result = mysql_query("SELECT * FROM personnel" , $db);

can anyone help me in the right direction

Reply With Quote
  #4  
Old July 19th, 2004, 09:19 PM
Andrew's Avatar
Andrew Andrew is offline
Moderator
Click here for more information
 
Join Date: Apr 2007
Location: United Kingdom
Posts: 1,935 Andrew User rank is Private First Class (20 - 50 Reputation Level)Andrew User rank is Private First Class (20 - 50 Reputation Level)  Folding Points: 2429 Folding Title: Novice Folder
Time spent in forums: 4 Days 1 h 32 m 31 sec
Reputation Power: 3
Orkut
RE: Create dynamic sites with PHP & MySQL

how is $db being populated, i suggest posting a new thread in the phpcoding forum to get the most help.

Reply With Quote
Reply

Viewing: Codewalkers ForumsOtherTutorials > Create dynamic sites with PHP & MySQL


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 5 hosted by Hostway