TalkPHP
 
 
Account Login
Latest Articles
» How to keep your forms from double posting data
» cURL Basics
» Securing your PHP applications Part 1
» The way the function rolls
» Database Abstraction with Zend_Db - Part 2
Advertisement
Associates
Associates
techtuts Darkmindz
CSS Tutorials Tutorialsphere.com - Free Online Tutorials
Boston PHP SurfnLearn
Reply
 
LinkBack Thread Tools Display Modes
Old 07-03-2008, 08:51 AM   #21 (permalink)
The Addict
 
codefreek's Avatar
 
Join Date: Sep 2007
Location: Near you.
Posts: 279
Thanks: 166
codefreek is on a distinguished road
Default

Hum, i think it should work also.. but i only get "no database selected".
__________________
inquisitive
1. Eager to acquire knowledge.
2. Too curious; overly interested; nosy.
codefreek is offline  
Reply With Quote
Old 07-03-2008, 08:59 AM   #22 (permalink)
The Frequenter
Advanced Programmer Top Contributor Good Samaritan 
 
Join Date: Oct 2007
Location: Manchester, UK
Posts: 387
Thanks: 22
sketchMedia is on a distinguished road
Default

you must have the name of the db wrong, as its connecting to your server fine but failing when it tries to select the schema.
__________________
sketchMedia is online now  
Reply With Quote
Old 07-03-2008, 09:02 AM   #23 (permalink)
The Addict
 
codefreek's Avatar
 
Join Date: Sep 2007
Location: Near you.
Posts: 279
Thanks: 166
codefreek is on a distinguished road
Default

Hold on, i think i know what the problem is..
yeah thank you i fixed it ;)
forgot to insert $database_connection = new db_connect();
in to the index.php


TY!! :D my first db class man i love talkphp ;)

TY
sketchMedia for quick answers and Ty everyone else who help me :D
__________________
inquisitive
1. Eager to acquire knowledge.
2. Too curious; overly interested; nosy.
codefreek is offline  
Reply With Quote
Old 07-03-2008, 09:12 AM   #24 (permalink)
The Frequenter
Advanced Programmer Top Contributor Good Samaritan 
 
Join Date: Oct 2007
Location: Manchester, UK
Posts: 387
Thanks: 22
sketchMedia is on a distinguished road
Default

np, anytime
__________________
sketchMedia is online now  
Reply With Quote
Old 07-03-2008, 02:24 PM   #25 (permalink)
The Gregarious
 
delayedinsanity's Avatar
 
Join Date: Mar 2008
Location: Vegas
Posts: 651
Thanks: 24
delayedinsanity is on a distinguished road
Default

Quote:
When accessing properties of an object, you dont need the '$' unless its static:
Whoops. I'm going to stop putting up code before I check it for typo's. Or just stop putting up code altogether because there's *always* a typo haha.
-m
delayedinsanity is offline  
Reply With Quote
The Following User Says Thank You to delayedinsanity For This Useful Post:
codefreek (07-03-2008)
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT. The time now is 01:20 PM.

 
     

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0