I am in trouble in my project.
When my page is loded, I need to define a value from DB with ajax to A[] in my html web code.
The DB SQL is:
<?php
includes("DB.php");//for connecting and log on DB
select count(*) as total from OA where handleP='John' and stat='suspending';
?>
The total maybe is 0,or 1, or others;
So A[] maybe is A[0], or maybe A[1], or others.
A[] default value is A[0]. How to define it?
Here is html code:
<a href="javascript:void(0)" class="easyui-linkbutton" onclick="standbyDoc()">A[0]</a><br />