that did work. But I’m trying to get a record info from a table and display the number. Still getting the
Parse error: syntax error, unexpected ‘<‘ in /home/stevensd/public_html/atti/wp-content/plugins/tablepress-php-in-tables/tablepress-php-in-tables.php(26) : eval()’d code on line 1
I’m using this code from the admin tab, atti.cochisecs.com :
<?php
$user=” stevensd_wp5″;
$password=”b@ck_IN_bl@ck”;
$database=”stevensd_wp5″;
mysql_connect(localhost,$user,$password);
@mysql_select_db($database) or die( “Unable to select database”);
{
$query=”SELECT count(*) FROM stevensd_wp5 WHERE element_name = 10;
$result=mysql_query($query);
$name=mysql_result($result,$i,”element_name”);
if ( $num > 0 )
{
echo(“<th>Applications Pending</th>”);
echo(“<tbody>”);
for ($i = 0; $i < $num; $i++)
{
$name=mysql_result($result,$i,”element_name”);
echo(“<tr>”);
echo(“<td>$name</td>”);
echo(“</tr>”);
}
}
mysql_close();
}
else
{
echo “<b>No search entered.</b>”;
}
?>
I have created an account if you need access
U: php_helper
P: RMdiG8*