Jump to content

matt20687

New Members
  • Posts

    7
  • Joined

  • Last visited

matt20687's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Hmm this has just gotten a bit more complicated that I wanted! I may have to think about doing this a different way, basically I have a tricky situation where I cannot change the PHP or Apache version due to the current application thats on there requiring the version it has already. Bit crappy really!
  2. Hi, I have looked and there is no ext called php_pdo_mysql.dllI have: php_mssql.dll php_sybase.dll php_win32service.dll php_zip.dll Unfortunately it was not me who installed Apache and MYSQL, this was done years ago by a provider that we use for an application that is running on there. They do not have a local database, it connects to a central one. Can I add in php_pdo_mysql.dll to the ext directory? If so where can I get the dll from?
  3. It is def opening the correct .ini file. As far as extensions go, I cannot find anything to do with PDO however mssql is enabled, could this be used? Never used it before tho....
  4. I have checked and they were all commented out, I have done this and restarted apache. I am trying to use PDO now but that hasnt worked either just states the PDO class is not found :S
  5. Hey, The error is: Fatal error: Call to undefined function mysql_connect() in C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\test\test.php on line 13 It does the same for mysqli.
  6. Okay, the error is on line 13. Could it be the way I am connecting to the SQL DB? The server is using PHP 5.2.1.
  7. Hey, I have an issue where the below script doesnt appear to be working. It doesnt actually display anything on the page, it seems as though after the first PHP tag is just ignores the rest of the script. when looking at the page source all it shows is: <HTML> <HEAD> <TITLE>Logs</TITLE> </HEAD> <BODY> The actual code is below: <HTML> <HEAD> <TITLE>Logs</TITLE> </HEAD> <BODY> <?PHP $mysqlserver="localhost"; $mysqlusername="root"; $mysqlpassword="test"; $dbname = 'test'; $con=mysqli_connect($mysqlserver, $mysqlusername, $mysqlpassword, $dbname); if (mysqli_connect_errno()) { echo "Failed to connect to MySQL: " . mysqli_connect_error(); } $result = mysqli_query($con, "SELECT * FROM forwardtable"); echo "<table border='1'> <tr> <th>Acc Num</th> <th>Send Date</th> <th>Send Time</th> </tr>"; while($rowContent = mysqli_fetch_array($result)) { echo "<tr>"; echo "<td>" . $rowContent['Acc'] . "</td>"; echo "<td>" . $rowContent['Date'] . "</td>"; echo "<td>" . $rowContent['Time'] . "</td>"; echo "</tr>"; } echo "</table>" ?> </BODY> </HTML> If I remove the PHP from within the code the source code goes as it should and shows the </BODY> and </HTML> tags. Any ideas anyone? Thanks, Matt
×
×
  • 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.