Search Results

Showing results 1 to 5 of 5
Search took 0.01 seconds.
Search: Posts Made By: gandil
Forum: PHP Oct 13th, 2008
Replies: 7
Views: 656
Posted By gandil
if ($total is greater than 7)
{
something...
}
else
{
another thing
}

I am when total is 1 or 8 whatever is; it is going to same statement. Why?
Forum: PHP Oct 13th, 2008
Replies: 7
Views: 558
Posted By gandil
if you want to show 3 in each row:

$index="SELECT id,image FROM myphoto WHERE userid ='$userid' and user='$user'";
$member=mysql_query($index);
$total= mysql_num_rows($member);
$count = 0;...
Forum: PHP Oct 13th, 2008
Replies: 7
Views: 558
Posted By gandil
try
[code=php]
$index="SELECT id,image FROM myphoto WHERE userid ='$userid' and user='$user'";
$member=mysql_query($index);
$total= mysql_num_rows($member);

for($i=0;$i<$total;$i++) {
$row =...
Forum: PHP Oct 13th, 2008
Replies: 7
Views: 656
Posted By gandil
I have a db query, which show datas from mysql database.
I want to do : ıf number of rows from query is bigger than x do something if small do another thing. Namely;

$qry = mysql_query("SELECT *...
Forum: Database Design Jul 30th, 2006
Replies: 5
Views: 24,400
Posted By gandil
Can you help me to normalize Online Hotel Reservation System. In the database I will store information about the hotels (name, city, country, number of stars, room prices, total number of double...
Showing results 1 to 5 of 5

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC