Question

the best way to include external javascript code into a HTML page is to use the...

the best way to include external javascript code into a HTML page is to use the include statement.
true or false

To retrieve a specific row from a set of mysqli results, call the data_seem method of thr result object.
true or false
0 0
Add a comment Improve this question Transcribed image text
Answer #1

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);

}

Add a comment
Know the answer?
Add Answer to:
the best way to include external javascript code into a HTML page is to use the...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT