// WE USE THIS CODE IN C //
#include<stdio.h>
#include<iostream.h>
}
#include<stdio.h>
#include<conio.h>
void main()
{
clrscr();
int a;
printf("Enter Any no.");
scanf("%d",&a);
(a%2==0)?printf("Even No."):printf("Odd No.");
getch();
}
#include<conio.h>
void main()
{
clrscr();
int a;
cout<<"Enter Any no.";
cin>>a;
(a%2==0)?cout<<"Even No.":cout<<"Odd No.";
getch();
how to retrieve data from database
ReplyDeletehi.. Nikknews
ReplyDeletethis code will help you to solve your problem
connect_error) {
die("Connection failed: " . $conn->connect_error);
}
$sql = "SELECT id, firstname, lastname FROM MyGuests";
$result = $conn->query($sql);
if ($result->num_rows > 0) {
// output data of each row
while($row = $result->fetch_assoc()) {
echo "id: " . $row["id"]. " - Name: " . $row["firstname"]. " " . $row["lastname"]. "
";
}
} else {
echo "0 results";
}
$conn->close();
?>