Jump to content
php.lv forumi

kkas nav


raimis58

Recommended Posts

Sveiki...

Tatad maza problema ielogojoties paraadas:

 

Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in c:\appserv\www\includes\siteconfig.inc.php on line 5

No database selected

 

 

Kr4 siteconfig.inc.php iekshas...

 

<?php

$myDb->connect();

$sql = "SELECT * FROM yob_site WHERE id='1'";

$result = mysql_query($sql);

$row = mysql_fetch_array($);

DEFINE ("", $row["Lati"]);

DEFINE ("SITESLOGAN", $row["siteslogan"]);

DEFINE ("SITE_URL", $row["url"]);

DEFINE ("ENABLE_FORUMS",$row ["enableforums"]);

DEFINE ("FORUM_LINK",$row ["forumlink"]);

$myDb->close();

?>

 

Gribetu uzzinat, kas jaizdara lai varetu bez Warningiem ielogoties...

Link to comment
Share on other sites

<?php
$myDb->connect();
// ŠEIT.
$sql = "SELECT * FROM yob_site WHERE id='1'";
$result = mysql_query($sql);
$row = mysql_fetch_array($);
DEFINE ("", $row["Lati"]);
DEFINE ("SITESLOGAN", $row["siteslogan"]);
DEFINE ("SITE_URL", $row["url"]);
DEFINE ("ENABLE_FORUMS",$row ["enableforums"]);
DEFINE ("FORUM_LINK",$row ["forumlink"]);
$myDb->close();
?>

Link to comment
Share on other sites

<?php

$myDb->connect();

// $myDb->select_db("lati");

$sql = "SELECT * FROM yob_site WHERE id='1'";

$result = mysql_query($sql);

$row = mysql_fetch_array($row);

DEFINE ("", $row["Lati"]);

DEFINE ("SITESLOGAN", $row["siteslogan"]);

DEFINE ("SITE_URL", $row["url"]);

DEFINE ("ENABLE_FORUMS",$row ["enableforums"]);

DEFINE ("FORUM_LINK",$row ["forumlink"]);

// $myDb->select_db("lati");

$myDb->close();

?>

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...