Instead of while use a do while loop it will automatically fix the problem.
And also remember it is a good practice to use do while when displaying data from database.
Instead of while use a do while loop it will automatically fix the problem.
And also remember it is a good practice to use do while when displaying data from database.
Hello thanx for your help:
The solution i have figured out is
<?php
if(isset($_SESSION)){?>
<td>Hello</td>
<?php } ?>
is it secure?
no you said that i should go with a server side solution, can i hide object with php, or any thing to ristrict users from getting to an object.
Thanks
I am using php but i haven't figured out how to hide elements based on security, can you suggest what to do?
Thanks a lot for the solution
same can be used for an image or table?
Thanks for quick reply.
for example i want to hide a button from unregistered users, but it shows up fro 4-5 seconds and then hides.
i am using
document.getElementById('btn').style.visibility = 'none';
on body load
Hello, I have designed a website that has some things for only registered users. I have javascript to hide these object if the user is not logged in using <body onload="a();">. But the problem is that when the page loads these items show up for a while and then hide I want to stop that.
Thanks
Hello I am facing a problem in my website development, I am using a html text area on my web page which is used to fill a field in database. The problem is that when I submit the text it converts the multiline text into single line.
e.g
Hello,
I am a super hero.
Will be converted int
Hello I am a super hero.
Please help me how to avoid this.
Thanks
try this code
void reset(int *board)
and in calling reset(arrayname)
in passing by raference we pass the address to the function as we do it in pointers i hope it will work.
you can not pass the reference of array because it gives error if you want to pass it's address you have to use pointers because logically an array's name is also a pointer so we can pass it to functio.
Dear Rleeq!
This usuallu happens due to virus which arrived almost a year ago but that's not the only reason for that it can be caused by the error in some hardware especially ram try changing your ram or try defragmenting your hard drive also make sure that if some has set a timer that automatically turns off your matchine..
please forget the code what i want to do is that user enters a number from keyboard the program in ouput displays the humble number
Example:
input = 5842
output = the 5842nd humble number is 2000000000
sorry i forgot to mention that the project is that user enters a number and the programme return a humble number
e.g
user enters 3;
the program should return the 3rd humble number
Please help me in doing this problem in C++ without filing
______________________________________________________________________
#include<iostream.h>
#include<conio.h>
#include<stdio.h>
#define min(a,b)((a)<(b)?(a):(b))
int a[6000];
main()
{
file*input=fopen("number.in","r");
int n,p2,p3,p5,p7;
a[1]=n=p2=p3=p5=p7=1;
while (a[n]<2000000000)
{
a[1+n]=min4(2*a[p2],3*a[p3],5*a[p5],7*a[p7]);
if (a[n]==2*a[p2]) p++;
if (a[n]==3*a[p3]) p++;
if (a[n]==5*a[p5]) p++;
if (a[n]==7*a[p7]) p++;
}
{
fscanf(input,"%d",&n);
if (n==0) break;
printf("the%d",n);
if (n%10==1&& n/10% 10!=1)
printf("st");
else if(n%10==2&& n/10% 10!=1)
printf("nd");
else
if(n%10==3&& n/10% 10!==1)
printf("rd");
else
printf("th")
printf("humble number is %d\n",a[n]);
}
fclose(input);
return 0;
}