Jump to content

Need help! Error in php coding, help, please?


swagpixels

Recommended Posts

<?php

 

 

CLASS DB_MYSQL {

 

var $Host; swagpixels.com,

var $Database; swagpixe_swoopo,

var $User; swagpixe_swoopad,

var $Password; ******,

var $Link_ID = 0; // Result of mysql_connect().

var $Query_ID = 0; // Result of most recent mySQL_query().

var $record = array(); // Current mysql_fetch_array()-result.

var $Row; // Current row number.

var $Errno = 0; // Error state of query...

var $Error = "";

var $DDtable="_dt"; // Data Dictionary Tables

var $DDfield="_df"; // Data Dictionary Fields

 

 

 

 

Parse error: syntax error, unexpected T_STRING, expecting T_FUNCTION in /home/swagpixe/public_html/.htinc/_mysql.inc on line 6

Line 6 is the host line.... whats wrong? All the parenthesis are there and everything.

Link to comment
Share on other sites

Where is the difference between this line:

var $Link_ID = 0;

and this one:

var $Host; swagpixels.com,

Also, note that this is a very old class, and should be dropped for the mysqli extension, or the PDO class.

Edited by jcbones
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

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.   Restore formatting

  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.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.