Hi all, I need to replace much of my fossilized code. can someone suggest correct pdo code for the below?
PHP Code:
<?php
include("getnumbers.php");
error_reporting(0);
mysql_connect('localhost','root','');
mysql_select_db('homedb') or die("Unable to select database");
$query=" SELECT * FROM oocust WHERE id = '$id'";
$result=mysql_query($query);
$num=mysql_numrows($result);