[php] mysql_connect heb het altijd gedaan

Pagina: 1
Acties:

Onderwerpen


Acties:
  • 0 Henk 'm!

  • whitehouse
  • Registratie: Maart 2000
  • Laatst online: 18-09-2019
ik onderhoud een website waarin wat mysql/php wordt gebruikt ..
nu had ik een include bestand wat altijd werkte..tot nu..


ik krijg de volgende foutmelding :

Fatal error: Call to undefined function: mysql_connect() in /home/deboei/www/boei3/connection.inc on line 2

mijn include ziet er als volgt uit :
<?php
$link = mysql_connect("localhost", "x", "x")
or die("Kan niet verbinden");
mysql_select_db("x")
or die("Kan geen database selecteren");
?>

php versie : 4.1.2

heeft iemand een idee wat er fout kan zijn ?

| www.everythingisspiritual.com | www.mosaic.org |


Acties:
  • 0 Henk 'm!

  • DiedX
  • Registratie: December 2000
  • Laatst online: 17-09 17:10
Host je 'm zelf, of is het beheer door een ander?

Het lijkt erop alsof de MySQL uit de PHP is gedonderd

DiedX supports the Roland™, Sound Blaster™ and Ad Lib™ sound cards


Acties:
  • 0 Henk 'm!

  • drm
  • Registratie: Februari 2001
  • Laatst online: 09-06 13:31

drm

f0pc0dert

contact opnemen met de hostingprovider.

Music is the pleasure the human mind experiences from counting without being aware that it is counting
~ Gottfried Leibniz


Acties:
  • 0 Henk 'm!

  • thomaske
  • Registratie: Juni 2000
  • Laatst online: 17-09 07:55

thomaske

» » » » » »

inderdaad even informeren bij je hoster.

Tot die tijd zou je dit kunnen proberen (werkte bij mij eens, met een soortgelijk probleem):

PHP:
1
2
3
4
5
6
$extension = "mysql";
$suffix = ".so";

if (!@extension_loaded($extension)) {
    @dl($extension.$suffix);
}

Brusselmans: "Continuïteit bestaat niet, tenzij in zinloze vorm. Iets wat continu is, is obsessief, dus ziekelijk, dus oninteressant, dus zinloos."


Acties:
  • 0 Henk 'm!

  • whitehouse
  • Registratie: Maart 2000
  • Laatst online: 18-09-2019
en dit VOOR de $link zetten ?

| www.everythingisspiritual.com | www.mosaic.org |


Acties:
  • 0 Henk 'm!

  • drm
  • Registratie: Februari 2001
  • Laatst online: 09-06 13:31

drm

f0pc0dert

whitehouse:
en dit VOOR de $link zetten ?

er zijn 2 mogelijkheden. Voor, en na. Als je ze nou even allebei probeert...

Of als je een beetje logisch nadenkt, en kijkt wat er staat ....

Music is the pleasure the human mind experiences from counting without being aware that it is counting
~ Gottfried Leibniz

Pagina: 1