Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8691635
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T00:09:36+00:00 2026-06-13T00:09:36+00:00

As I was advised I have changed from mySQL to PDO calls yet I

  • 0

As I was advised I have changed from mySQL to PDO calls yet I can’t seem to get past accessing the actual database as below

$db = new PDO("mysql:host=localhost;dbname=info;charset=UTF-8", 'admin', 'xxxxxx');

as it returns

Parse error: syntax error, unexpected T_VARIABLE in db.php on line 8

I have checked through forums and from what I’ve read the server does support PDO , furthermore phpinfo() is disabled for security reasons so I can’t turn to that, Have i actualy made an error in the string or does it mean my server does not yet support PDO ?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T00:09:37+00:00Added an answer on June 13, 2026 at 12:09 am

    You might want to try rewriting the problematic line from scratch and delete the old line completely. I’ve had several issues, where I’m facing unexpected T_VARIABLE – error with no obvious reason. I think it’s because I’ve managed to use some kind of key combination on my laptop’s keyboard, which causes some non-visible character to get amongst my code.

    After rewriting the line, the problem is usually gone.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a MySQL 5 database that is updated every 5 minutes from a
I have tried to call out my document.getElementByID to get the ID from my
As a newbie, I have been advised to preferably use heredoc compared to too
I used to have tables before to display the content and people here advised
Please consider the following: we have a Spring bean B which is advised with
My understanding is that it's advised testers are separate from developers, i.e you obviously
I have a SqlServer Compact Edition database that contains 2 tables. For each of
Can any one please advice how do i change the mailing header Return-Path from
We have a Selenium WebElement we're getting from the Java API but we've created
I have written a program which reads input from csv file and its working

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.