For problems and solutions related to database compatibility.

Database connection

Hi this is scorpionz.. i am facing a problem for the last 2 days

Description:
I have a project with path
c:/xampp/htdocs/mysite

and in root i am making a database connection file with the name
c:/xampp/htdocs/mysite/config.php
Thats my configuration file name to connect with db.

I have a folder in root of drupal with the file inside i.e:
c:/xampp/htdocs/mysite/myfolder/testpage.php

The testpage.php consists of some queries drupal built in like db_quey()... etc

American Pro Moving and Storage, Unsupported operand types

Hi,

I stat getting this error "Unsupported operand types" .. and i don't know how to fix it.. i heard it has something to do with php version ? i use PHP5..

any suggestions will be appreciated.

Thanks in advance,
American Pro Moving and Storage

Insert data using mysql_query in drupal 6.11

Hello,

Iam using drupal 6.11.

My problem :
I created one separate table. Then i want to insert data in that table by using xxx.php file.
The insert query presented in the xxx.php file.
I Called that file using ajax from page.tpl.php file...

here the file called SUCCESSFULLY, but it returned the error named as "Fatal error: Call to undefined function db_query()"..

This is the query presented in that file....

$query="insert into page_ajax set sname='$name'";
db_query($query);

Creating Nodes programmatically via FTP uploads

Hi, I'm pretty new to Drupal. I've built a site that I want to be able to upload to the database using an FTP through another software package (LabVIEW). I have 2 issues:

Query for get data by node id

how to get the node fields data by node id in drupal.

i have the node id, but i need all the data of particular node, i need query

anybody can help me.

please

Ste off-line

Strange things happens.

I'm starting my site and it writes Site off-line and:
The mysql error was: Access denied for user 'correctusername'@'localhost' (using password: YES).

Then most interesting thing happens: when i go to see what is wrong with the DB with myPHPadmin, everything magically becomes OK, website is working! Then i'm working with my site, then i visit it next day - Site offline again!

Maybe this is some trouble with settings.php, ive set rights to 664.

Pages

Subscribe with RSS Subscribe to RSS - Deprecated - Database compatibility