/    Sign up×
Community /Pin to ProfileBookmark

Organize some pictures

hi guys – i’m playing with some picture upload:

[B][link removed by mod][/B]

and as u prolly can se they are poor orginized .. I dont know if it is possible to organize them in rows . like 3/4 colums and maybe 3 rows.. if yes it would be awesome if Icould get some help..

also if any1 have some tuts which tell me how to show 9 pictures on the first page – and then scroll through the next 9 pictures.

like:

<- 1 2 3 4 5 6 7 8 9 ->

thanking u very much!! ?

[code=php]<?
include (“admin/dbpass.php”);
$link = @mysql_connect ( “$host”, “$user”, “$passw” );
mysql_select_db (“$tab”)
or exit ();
$query = “select id, dayofmonth(datum), monthname(datum), year(datum), short, name, email, filename from pix_data order by datum desc, id desc”;
$result = mysql_query ($query);
while ($tekst = mysql_fetch_array ($result))
echo “placeret ” . $tekst[2] . ” ” . $tekst[1] . “, ” . $tekst[3] . “, af: <a href=mailto:” . $tekst[6] . “> ” . $tekst[5] . “</a><br><b>Kort beskrivelse:</b> ” . $tekst[4] . “<br><a href=”view_pic.php?id=” . $tekst[0] . “” onclick=”NewWindow(this.href,’picview’,’640′,’480′,’yes’,’center’);return false” onfocus=”this.blur()”>Se billedet her!!</a><br><br><img src=” . $tekst[7] . ” width= 200><br><br><br>”;

?>[/code]

thanx!

to post a comment
PHP

7 Comments(s)

Copy linkTweet thisAlerts:
@demetriauthorJan 07.2007 — any idears ? know this is a tricky question

sry for bump..
Copy linkTweet thisAlerts:
@NightShift58Jan 07.2007 — Maybe [url=http://www.adultwebmasters.org/]they[/url] can help:
Copy linkTweet thisAlerts:
@demetriauthorJan 07.2007 — oh.. was hopping some clever guys in here could digg some php skills thou'...
Copy linkTweet thisAlerts:
@NightShift58Jan 07.2007 — There are lot of clever guys in here.

Without being one of them, I'm a little uncomfortable with the fact that in another thread, I was unknowingly contributing to the development of a porn site.

Also, you posted links and wording as if only men would be on the forum. That's probably not a good idea, as some people may be offended by it.
Copy linkTweet thisAlerts:
@pcthugJan 07.2007 — Sorry demetri, the forum's AUP prohibits linking to any site that contains any adult content. Therefore I have removed the link in your previous post.

Search for [B]PHP Pagination[/B] and it shall yield some informative tutorials.
Copy linkTweet thisAlerts:
@demetriauthorJan 07.2007 — oh.. no no.. that was a mistake!! its not a porn site at all..there are more than enough already.. jeez.. - I was just checking if the script was working..

The site is just for me and 3 friends who have started a little club and wanted to show some pictures of our parties and so on.. but im very sry if I've offended any1..

sry.. .

pagination.. very cool!! will go try to figure it out then...

thank u.
×

Success!

Help @demetri spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.25,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...