artBACKUP
Grünschnabel
hallo, ich habe für eine datenbank anbindung folgendes script:
---
<?php include('above.php'); ?>
<?php require_once('connections/lagosh.php'); ?>
<?php
mysql_select_db($database_beanies, $beanies);
$query_beanies = "SELECT preview, id FROM beanies
ORDER BY id DESC";
$beanies = mysql_query($query_beanies, $beanies) or die(mysql_error());
$row_beanies = mysql_fetch_assoc($beanies);
$totalRows_beanies = mysql_num_rows($beanies);
mysql_select_db($database_headbands, $headbands);
$query_headbands = "SELECT preview, id FROM headbands
ORDER BY id DESC";
$headbands = mysql_query($query_headbands, $headbands) or die(mysql_error());
$row_headbands = mysql_fetch_assoc($headbands);
$totalRows_headbands = mysql_num_rows($headbands);
?>
<table width="820" border="0" align="center" cellpadding="20" cellspacing="0" class="table_main">
<tr> ...
---
wenn man die seite jetzt aufruft http://www.lagosh.com/products.php
kommt folgende fehlermeldung:
---
Warning: mysql_select_db(): supplied argument is not a valid MySQL-Link resource in /srv/www/htdocs/web15/html/products.php on line 4
Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in /srv/www/htdocs/web15/html/products.php on line 7
---
woran liegt das
gruß
---
<?php include('above.php'); ?>
<?php require_once('connections/lagosh.php'); ?>
<?php
mysql_select_db($database_beanies, $beanies);
$query_beanies = "SELECT preview, id FROM beanies
ORDER BY id DESC";
$beanies = mysql_query($query_beanies, $beanies) or die(mysql_error());
$row_beanies = mysql_fetch_assoc($beanies);
$totalRows_beanies = mysql_num_rows($beanies);
mysql_select_db($database_headbands, $headbands);
$query_headbands = "SELECT preview, id FROM headbands
ORDER BY id DESC";
$headbands = mysql_query($query_headbands, $headbands) or die(mysql_error());
$row_headbands = mysql_fetch_assoc($headbands);
$totalRows_headbands = mysql_num_rows($headbands);
?>
<table width="820" border="0" align="center" cellpadding="20" cellspacing="0" class="table_main">
<tr> ...
---
wenn man die seite jetzt aufruft http://www.lagosh.com/products.php
kommt folgende fehlermeldung:
---
Warning: mysql_select_db(): supplied argument is not a valid MySQL-Link resource in /srv/www/htdocs/web15/html/products.php on line 4
Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in /srv/www/htdocs/web15/html/products.php on line 7
---
woran liegt das
gruß