Answers
1)False
To utilize JavaScript from an outer file source, you have to compose all your JavaScript source code in a text file with the extension ".js" and afterward incorporate that javascript as in the below structure for example <script src="myscript.js"></script>
Suppose the following new.js is our outside html file −
function show() {
alert("Hello World!");
}
Presently add the outer JavaScript file to the HTML site page −
<html>
<body>
<form>
<input type="button" value="Result" onclick="display()"/>
</form>
<script src="new.js">
</script>
</body>
2)False
The fetch_row()/mysqli_fetch_row() function fetch one row from an result set and returns it as enumerated array.
The mysqli_data_seek() function changes the result pointer to a arbitary row in the result set.
</html>
mysqli_fetch_row($result);
$sql = "SELECT * FROM testTable";
$result = mysqli_query($conn, $sql)
while($row = mysqli_fetch_row($result)) {
/Do stuff here
}
$sql="SELECT Lastname,Age FROM Persons ORDER BY Lastname";
if ($result=mysqli_query($con,$sql))
{
/Seek to row number 15
mysqli_data_seek($result,14);
/Fetch row
$row=mysqli_fetch_row($result);
}
.