Webmaster Forum

Go Back   Webmaster Forum > Web Development > Coding Forum

Coding Forum Problems with your code? Discuss coding issues, including JavaScript, PHP & MySQL, HTML & CSS, Flash & ActionScript, and more.

Thread Tools Display Modes
Share |
Old 10-11-2015, 04:51 AM
Dario Dario is offline
Junior Member
Join Date: 12-16-08
Posts: 38
iTrader: 0 / 0%
Condition per row

To make it simple i have table with columns:
id | title | image | video
where image and videos are: name-of-image.jpg/name-of-video.mp4 or NULL.
How can I select first 3 rows only containing image and then 1 row containing video and so on, like:
1 image
2 image
3 image
4 video
5 image
6 image
7 image
8 video
Reply With Quote



Old 10-16-2015, 10:53 PM
onthetop's Avatar
onthetop onthetop is offline
Contributing Member
Join Date: 01-19-15
Location: Karachi
Posts: 69
iTrader: 0 / 0%
<script src="http://www.autosbillow.com/wp-content/themes/autosbillow-official/js/nth-child.js"></script> <![endif]--> <!--[if lt IE 8]> <script src="http://www.autosbillow.com/wp-content/themes/autosbillow-official/js/nth-child.js"></script> <![endif]--> <!--[if lt IE 9]> <script src="http://www.autosbillow.com/wp-content/themes/autosbillow-official/js/nth-child.js"></script> <![endif]-->
put it on above from head tag and use the CSS as given below

.yourclass:nth-child(3n) { your CSS statements}
Reply With Quote
Old 10-28-2015, 10:54 AM
Harr's Avatar
Harr Harr is offline
Junior Member
Join Date: 07-30-15
Posts: 48
iTrader: 0 / 0%
What programming language you intend to use? What type of database your using? Mysql or SQL or something else?
Reply With Quote
Go Back   Webmaster Forum > Web Development > Coding Forum


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Question about if condition newphpcoder Coding Forum 8 02-02-2011 09:20 PM
Condition Zero Ver 2 Leon Graphic Design Forum 7 03-22-2004 07:39 PM
Condition Zero wallpaper Leon Graphic Design Forum 5 11-09-2003 09:35 AM

V7N Network
Get exposure! V7N I Love Photography V7N SEO Blog V7N Directory

All times are GMT -7. The time now is 07:56 AM.
Powered by vBulletin
Copyright 2000-2014 Jelsoft Enterprises Limited.
Copyright © 2003 - 2018 VIX-WomensForum LLC