It is currently Fri Mar 29, 2024 11:54 am


All times are UTC


Forum rules


Please click here to view the forum rules



Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: Krijg melding "kon de database niet selecteren"
PostPosted: Sun May 20, 2007 9:42 am 
Noobie
Noobie

Joined: Sun May 20, 2007 9:02 am
Posts: 1
Hoi allen,

ik ben nogal een newbee, dus even voor kenners waarschijnlijk een stom vraagje.

Indien ik een form post naar een guestbook (is de in mysql aangemaakte tabel), krijg ik constant de melding "kan database niet selecteren" (ik include de dbconnect.php pagina in zowel bij sign.php als bij create_entry.php)

Mijn dbconnect php file ziet er als volgt uit.

php
mysql_connect ("mysql1.100ws.com", "naam", "paswoord")
or die ("kon geen database verbinding maken");
Mysql_select_db($guestbook) or
die ("kon de database niet selecteren");
?>

Mijn vraag is of de database op mijn sql wel op de goede manier aanroep?
dus: Mysql_select_db($guestbook)

Of moet hier de route bij staan of zoiets?

Alvast bedankt,
Roel


Top
 Profile  
 
 Post subject:
PostPosted: Sun May 20, 2007 4:44 pm 
Support Team Member

Joined: Mon Feb 21, 2005 10:10 am
Posts: 341
Really sorry but we provide support only in English.


Top
 Profile  
 
 Post subject:
PostPosted: Wed May 23, 2007 5:03 pm 
Noobie
Noobie

Joined: Mon May 07, 2007 2:40 am
Posts: 1
Hallo Roel,

Wat staat er in $guestbook ?

Je moet er voor zorgen dat daar de naam van je database in staat, dus ergens in je php file moet iets staan van: $guestbook = 'naam_van_mijn_database';

BR//Willem.


Top
 Profile  
 
 Post subject:
PostPosted: Wed May 23, 2007 7:21 pm 
Support Team Member

Joined: Thu Feb 10, 2005 5:44 pm
Posts: 373
Please, post your comments in English language so our support moderators will be able to assist you!

_________________
Best Regards,
Viktor
www.100WebSpace.com Support Team


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ]  Moderators: fhmagic, KJ, Moderators, Support Team

All times are UTC


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
100WebSpace © 2011