Jump to content


Photo

Trabalhando Com A Função Rand(), Parte 1, Sem Bd


  • Faça o login para participar
20 replies to this topic

#1 Igor Diniz

Igor Diniz

    Normal

  • Usuários
  • 63 posts
  • Sexo:Não informado
  • Localidade:frutal - mg
  • Interesses:php,ajax,flash

Posted 29/11/2006, 21:57

olá pessoal nesse artigo irei ensinar a trabalhar com a função rand(), ela exibe so números aleatórios por exemplo, você quer criar um sisteminha de número da sorte em seu site, dai cada vez que se atualizar a página aparecerá um diferente, ta muito fácil essa é sem banco de dados, em breve estarei passando com banco de dados, vamso lá.


<?php

$numero = rand(1,50); //aqui colocamos que a função pode gerar um número de 1 a 50

echo "Olá usuário, seu número da sorte é: <b>$numero</b>"; //aqui exibimos na tela, cada vez que atualizar aparecerá um número diferente :-)
?>


veja algumas fotos:

primeiro acesso:
Posted Image

depois que eu atualizei:
Posted Image

espero ter ajudado...

bom retirei esse tutorial de uma coluna minha em www.weblivre.info ^^

espero ter ajudado...
www.igordiniz.com.br

#2 ## Dark Angell ##

## Dark Angell ##

    &nbsp;

  • Usuários
  • 147 posts
  • Sexo:Masculino

Posted 29/11/2006, 22:11

o tópico vai ser de grande ajudaa novos usuários, mas não deveria estar no fórum de tutoriais de php e etc??


[ ] 's

#3 LarPhozyHah

LarPhozyHah

    Super Veterano

  • Usuários
  • 14515 posts
  • Sexo:Masculino
  • Localidade:San Miguel de Tucuman

Posted 16/10/2017, 09:28

Cephalexin Overdose Phenergan Without A Prescription Amoxicillin 500 Dosage viagra online Buy Nitroglycerin Pills
Zithromax And Dairy Comprar Cialis Generico Foro viagra order accutane online australia

#4 RonsisM

RonsisM

    Super Veterano

  • Usuários
  • 15724 posts
  • Sexo:Masculino
  • Localidade:Plovdiv

Posted 16/10/2017, 17:34

Priligy Sildenafil Dapoxetine Propecia Reposo Propecia Hair Color viagra Acquistare Kamagra Grenoble Cytotec Abortion Buy Online In The Us Date De Sortie Priligy Australie

#5 HaroNism

HaroNism

    Super Veterano

  • Usuários
  • 15385 posts
  • Sexo:Masculino
  • Localidade:San Miguel de Tucuman

Posted 16/10/2017, 19:58

Cialis Comprar online pharmacy Viagra Online A Basso Costo Where Do I Get Viagra

#6 Miguceamma

Miguceamma

    MiguPenjisse

  • Usuários
  • 13201 posts

Posted 17/10/2017, 20:17

Viagra Nuovo Prezzo viagra Cialis Chiasso
Order Synthetic Viagra Generic Isotretinoin Internet Website Comprare Cialis Online Forum vardenafil Buy Gonorrhea Treatment Online
Cephalexin Dogs Side Effects Found A Chewed Up Amoxicillin Pill levitra brand online Cialis Que Es

#7 RonsisM

RonsisM

    Super Veterano

  • Usuários
  • 15724 posts
  • Sexo:Masculino
  • Localidade:Plovdiv

Posted 22/10/2017, 12:23

Pharmacy Gift Card Viagra viagra Can I Drink While Taking Amoxicillin
Amoxicillin 500mg Uses Levitra Integratore buy viagra Dutasteride No Doctor Il Cialis Fa Dimagrire
Cheap Generic Propecia Cialis Online viagra cialis Does Alcohol Ruin Cephalexin
Para Que Sirve Levitra 20 Mg Pediatric Zithromax Dosing Prix Du Xenical En Pharmacie France viagra online pharmacy Viagra 100mg Price Walmart Isotretinoin isotretin best website
Buy Biotechnica Tadalifil Levitra 20 Mg Vardenafil Efficacia Finasteride Propecia viagra Fluoxetine 20mg On Sale Visa Accepted Low Price Viagra Online Next Day
Tadalis Sx Soft Research Generic Viagra Super Active 100mg Tinnitis Keflex viagra online pharmacy Amoxicillin And Iv Differenza Viagra Generico Cialis Originale Effetti Collaterali
isotretinoin isotret levitra soft tabs Acheter Viagra France
Cialis Per Body Building Comprar Viagra Con Mastercard viagra Onlinepharmacy Echeck Where To Buy Cialis Online Safely
Cheap Retin A Isotretinoin 10mg Mail Order On Line viagra vs cialis vs levitra Levitra Y Alcohol Taurine
For Sale Zithromax Z Pak Oral Buy Colchicine Online Levitra 5 Mg Foto levitra coupon free trial Free Shipping Worldwide Amoxicilina Discount Purchase On Line Viagra Et La Sante Amoxicilina Tab Direct
Keflex And Headaches Cheapviagrarx Virgara Sales cialis buy online Levitra Ligne Cialis 10 Mg Dosage Cialis Farmaco Generico
Fluconazole Without A Prescription viagra Buy Promethazine Online Canada
Cialis 20mg Mail Order levitra discount Levitra 40 Mg Best Price
Amoxicillin Use Zithromax Do You Need Prescription Cure For Amoxicillin Allergies levitra prices Lioresal Acheter En France
Cheap Tamoxifen Citrate Cephalexin Kidney Dog Cialis Jeune Homme levitra samples Cialis 20mg 12 Stuck Gunstig

#8 LarPhozyHah

LarPhozyHah

    Super Veterano

  • Usuários
  • 14515 posts
  • Sexo:Masculino
  • Localidade:San Miguel de Tucuman

Posted 30/10/2017, 18:17

Viagra Erfahrungen Mit buy viagra Priligy Experiencias Legally Doryx Bacterial Infections
Propecia Coupon Cheapest Prices On Suhagra 100 Achat Viagra Generic viagra online prescription Gel Kamagra Fast Viagra Muy Barata

#9 RonsisM

RonsisM

    Super Veterano

  • Usuários
  • 15724 posts
  • Sexo:Masculino
  • Localidade:Plovdiv

Posted 30/10/2017, 18:40

Priligy Dapoxetin Apotheke Levitra Tabletas 10 Mg What Does Cephalexin Look Like viagra Propecia Generica Italia
Onlinepharnacy buy levitra 10 mg Tetracycline Amoxicillin Cialis Wo Bestellen Dutasteride No Doctor
Zithromax Treatment For Chlamydia cost of levitra at savon pharmacy Cialis En Farmacias Canda Pharmasey Male Enhancement
Effects Of Mixing Keflex And Beer Tadalafil Generique France Syphilis And Amoxicillin levitra prices 20 gm free delivery Levitra 10 Mg Con Alcohol Propecia Contraindications Ace Inhibitors
Commande Cialis Generique online pharmacy Cialis Prezzo Farmacia Italiana Prix Cialis En Espagne
Kamagra En Ligne Bordeaux viagra Buy Fluconazole No Perscription Levitra Walmart Plan Venta De Cialis Sin Receta
Propecia Tumore Effetti Collaterali Fedex Progesterone Online Amex Accepted Overseas Cod Knowsley Generic Zentel Walsall buy viagra online Viagra Presentaciones Best Price For Otc Nexium
Cytotec A Bas Prix Buy Levitra With No Prescription buy viagra online Donde Puedo Comprar Cialis En Guanajuato Amoxicillin Side Effects Rash Cialis 40 Mg Pills
Cialis Generika Wirkung viagra Revatio Priligy Hipertension Kamagra Uk Viagra

#10 Miguceamma

Miguceamma

    MiguPenjisse

  • Usuários
  • 13201 posts

Posted 30/10/2017, 20:00

Buy Synthroid Online No Prescriptionbuy Tadacip 20 Nebenwirkungen Viagra 100mg cheap accutane online cialis price Clo 25mg
Prednisone Canadian Pharmnacy Cipro And Amoxicillin In Lyme Disease buy viagra How To Buy Clomid Over The Counter
Priligy E Levitra Find Generic Clobetasol Low Price Online viagra Canadian Nexium Without Prescription

#11 napedlok

napedlok

    24 Horas

  • Usuários
  • 409 posts
  • Sexo:Masculino
  • Localidade:Breschya

Posted 31/10/2017, 00:43

Discounts! makeup releases summer 2017 progect12.jpg Products which fall under this return policy can be returned domestically, as long as they are unused and in the original packaging. No questions asked! If a product that falls under this guarantee is found to be counterfeit, you will get a full refund (shipping costs included). buy.png READ MORE Color block stripes spliced letters print round neck long sleeves men's sweat dry tight t-shirt ( 16.64 $)Brazilian Virgin Hair With Closure Deep Wave With Closure Queen Hair Products Human Hair With Closure Bundles With Closure ( 66.00 $)Brilliance Metal and Crystal Stud Earrings ( 69.00 $)скачать battlefield 1943 +на русскомSac a Main Femme Bags Handbags Women Famous Brands Black Bag Pochette Soiree Woman Shoulder Bag Bolso Mujer Marca 2016 Tote bag ( 31.03 $)High Quality Men Backpack Zipper Solid Men's Travel Bags Canvas Bag mochila masculina bolsa school bags ( 57.40 $)Online store brand clothes and shoes BRIONITYTutor NinjaMink unprocessed raw indian wavy virgin hair body wave 4 bundles indian body wave ms lula hair products raw indian virgin hair ( 64.63 $)Malaysian virgin hair body wave 3pcs rosa hair products malaysian body wave 8aunprocessed human hair weave ( 62.83 $)1PC Flash Dragonfly Propeller ( $0.75 )Yoga pants women plus size colorful bloomers dance yoga taichi full length pants smooth no shrink antistatic pants fast shipping ( 10.98 $)Free shipping 1 bundle 8a peruvian virgin hair body wave 100% unprocessed virgin human hair extension cheveux humain pelo humano ( 23.00 $)madness combat 2draw lines 126bb.jpg
Discounts! popular makeup products 2017

progect12.jpg
Products which fall under this return policy can be returned domestically, as long as they are unused and in the original packaging. No questions asked!
If a product that falls under this guarantee is found to be counterfeit, you will get a full refund (shipping costs included).

buy.png

READ MORE
усилие затяжки болтов
F16278 flysky fs-it4s 2.4ghz 4ch afhds 2 rc boat car radio system transmitter with touch screen fs it4s better than it4 i4 ( 129.71 $)
12 sleeve lace splicing round neck a-line dress for women ( 11.81 $)
Cowhide genuine leather shoulder bags small crossbody bag ipaid men messenger bags handbag small men's leather bag male flap mva ( 63.00 $)
Car styling cartoon car stickers vinyl decal baby on board baby in car window rear windshield ( 0.75 $)
Ulefone Tiger Android 6.0 5.5 inch Corning Gorilla Glass 3 Screen 4G Phablet MTK6737 Quad Core 1.3GHz 2GB RAM 16GB ROM Fingerprint Scanner GPS 109.99$
Multi flavor liquid perfume refill contain pure natural essential oil 10ml for car indoor air freshener ( 1.32 $)
battlefield 2 modern combat скачать торрент pc
комплект грм змз
Umi Plus 5.5 inch 2.5D Arc Screen Android 6.0 4G Phablet Helio P10 Octa Core 1.8GHz 4GB RAM 32GB ROM Fingerprint Scanner Two-tone Flashlight Type-C HiFi 266.95$
Etoren.com - Online electronics specialist . Simple online shoppingâ ETOREN
Alce black leather shoulder bag ( 269.61 $) Versace Collection
Ajronvudi â Game of Thrones
Universal 2 din car dvd double din car video player touch screen panel car audio player 7010b support fmmp5usbauxbluetooth ( 57.24 $)
multi theft auto


21.jpg
Discounts! 2017 new beauty products progect12.jpg Products which fall under this return policy can be returned domestically, as long as they are unused and in the original packaging. No questions asked! If a product that falls under this guarantee is found to be counterfeit, you will get a full refund (shipping costs included). buy.png READ MORE Vesti v 20:00. Poslednie novosti ot 14.03.17Frenk Morganбогатыри +и красная шапочкаButtons Wood Buttons Sewing Accessories Mixed Cabochons Scrapbooking 50Pcs 2 Holes Cartoon Wood Sewing Buttons 24x23mm ( 1.79 $)Retro cap sleeve square neck bowknot embellished women's dress ( 19.30 $)болт шкива коленвалаHot selling! promotion women wallets high qulaity long design lady clutch bag oil wax leather coin purse business card holder ( 27.98 $)New arrival vinyl record wall clock the beatles music nursery art cd clock watch creative duvar saati horloge home decorative ( 44.99 $)выпускной распредвал k20a купить красноярскWomen leather handbags crocodile designer bags handbag women famous brand 2016 bolsos feminina women handbags tote women bag 956 ( 51.60 $)global strike скачатьскачать plants vs zombies freeConcise pu leather and buckle design men's slippers ( 23.75 $)Bamoer 3 colors rose gold plated finger ring for women with aaa multicolor cubic zircon wedding ( 4.27 $)Nevernaya (film, 2002) 98.png

#12 RonsisM

RonsisM

    Super Veterano

  • Usuários
  • 15724 posts
  • Sexo:Masculino
  • Localidade:Plovdiv

Posted 31/10/2017, 12:03

Keflex Suspension Cialis Reliable Supplier viagra Canadian Drugs No Prescription Vrai Cialis Prix Next Day Metronidazole Or Flagyl
Levitra Effetti Lungo Termine Amoxicillin Clavulin cialis Levaquin Best Website In Internet Amoxicillin Antibiotic Effects Side
10 Mg Cialis viagra How Much Does Viagra Cost At Costco 104 Rogaine With Propecia
Cialis Vidal Cialis One Day Generico cialis Cheap Propecia Generic Buy Nexium Online Uk
Cialis Napoli Priligy How Long cialis Viagra Preis Osterreich

#13 LarPhozyHah

LarPhozyHah

    Super Veterano

  • Usuários
  • 14515 posts
  • Sexo:Masculino
  • Localidade:San Miguel de Tucuman

Posted 31/10/2017, 13:05

Is Keflex A Diuretic Viagra Avant Apres cialis Women Take Kamagra Cialis Viagra Levitra Vergleich

#14 uapedlok

uapedlok

    24 Horas

  • Usuários
  • 414 posts
  • Sexo:Masculino
  • Localidade:Vladivostok

Posted 01/11/2017, 07:46

Discounts! best makeup products in the world

progect13.jpg
Products which fall under this return policy can be returned domestically, as long as they are unused and in the original packaging. No questions asked!
If a product that falls under this guarantee is found to be counterfeit, you will get a full refund (shipping costs included).

buy.png

READ MORE
7a brazilian deep curly virgin hair wet and wavy brazilian curly hair 3pcs brazilian virgin hair deep wave human hair extensions ( 63.77 $)
Mink peruvian virgin hair straight 3 bundles peruvian straight virgin hair 7a unprocessed human hair peruvian hair weave bundles ( 57.86 $)
Brazilian Virgin Hair Brazilian Body Wave 4bundles 8A Virgin Brazilian body wave Human Hair Weaves Cheap brazilian wavy hair 1B# ( 85.08 $)
Pek, Dzhosh
New S6 military armor hybrid shockproof waterproof Full three protection For Samsung Galaxy S6 kickstand hard case tough holder ( 8.99 $)
Merry's fashion women titanium glasses frames men brand titanium eyeglasses gold shield frame with glasses ( 11.62 $)
2016 New Brand SKMEI Watch Men Military Sports Watches Fashion Silicone Waterproof LED Digital Watch For Men Clock digital-watch ( 18.70 $)
The Shepherd
H Quality Branded Tennis Racket Overgrips Wearable Dry Tenis Overgrip Abrasive Racquets Hand Glue Badminton Thin Type Over grip ( 1.44 $)
Pol Muni
E27 3D Fireworks LED Bulb Light-15.15 $
Inleela 2016 most cost-effective backpack new arrival vintage women shoulder bag girls fashion schoolbag high quality women bag ( 27.80 $)
Mid Urban Black Leather Mens Sneaker ( 198.00 $)
Hot!Afro Loose Curly Synthetic Lace Front Wig Natural Black Heat Resistant Fiber Hair Wig Curly Synthetic Wigs For Black Women ( 48.00 $)
ISABEL 7A Full Lace Human Hair Wigs for Black Women Glueless Full Lace Wigs Brazilian Virgin Hair Lace Front Human Hair Wigs ( 83.08 $)


8.jpg

#15 napedlok

napedlok

    24 Horas

  • Usuários
  • 409 posts
  • Sexo:Masculino
  • Localidade:Breschya

Posted 01/11/2017, 14:21

Discounts! top makeup products you need progect11.jpg Products which fall under this return policy can be returned domestically, as long as they are unused and in the original packaging. No questions asked! If a product that falls under this guarantee is found to be counterfeit, you will get a full refund (shipping costs included). buy.png READ MORE Guangzhou new star 8a brazilian virgin hair body wave 3pcs lot unprocessed pure natural color hair extensions weave bundles sale ( 116.40 $)Ms cat hair brazilian body wave 3pcs lot 7a grade brazilian virgin hair body wave 100% virgin brazilian human hair weave bundles ( 43.08 $)ZOPO Hero 2 Android 6.0 4G Phablet-96.08 $Free Shipping ECG1503 = NTE1503 Original New Integrated Circuit ECG 1503 NTE 1503 ( 10.95 $)Eddi, MarkDandelion Leather Nastro Trainers ( 175.00 $)Ophir pro dual action airbrush kit air brush spray gun with air tank compressor for nail art body paint model_ac090+ac004a+ac070 ( 118.43 $)Natural look high quality light blonde silky straight wig with parting glueless synthetic lace front wigs heat resistant fiber ( 45.00 $)Kr-g15 easiest design ios android app wireless alarm security system gsm alarm system remote control auto kit strobe siren ( 110.69 $)Fantech W536 2.4G 4 Buttons 1600DPI Wireless Optical Mouse with Receiver for Desktop Laptop ( $5.03 )боди скраб +для телаU119 Free Shipping 50x Fan-shaped Natural False Tips Sticks Polish Display Nail Art supply selling ( 1.87 $)Coleen hair products 7a brazilian virgin hair straight 3 bundles dark and light brown brazilian straight hair human hair bundles ( 45.00 $)3W 12V DIY Solar Panel ( $6.23 )10PCS Grinding Polishing Wheel Buffing Pad Wool Brush ( $2.00 ) 98.png
Discounts! best cosmetic products 2017

progect11.jpg
Products which fall under this return policy can be returned domestically, as long as they are unused and in the original packaging. No questions asked!
If a product that falls under this guarantee is found to be counterfeit, you will get a full refund (shipping costs included).

buy.png

READ MORE
Hot! rockbros polarized cycling sun glasses outdoor sports bicycle ciclismo road bike mtb sunglasses tr90 goggles eyewear 5 lens ( 27.27 $)
Pair of chic button and faux fur edge embellished knitted gloves for women ( 4.20 $)
Transgender boy wins girls' wrestling title
Evet 3 x 8 ( 21.30 $)
Best newest elm327 usb obd2 diagnostic scanner elm 327 v 1 5 usb cables scanner support ( 8.99 $)
8,10,13mm Ratchet Spanner Combination wrench a set of keys ratchet tool gear ring wrench ratchet handle Chrome Vanadium LRBS035 ( 7.50 $)
Original Xiaomi Portable USB LED Light ( Enhanced Edition ) ( $3.39 )
Fashion letters printing men's short sleeves t-shirt ( 13.71 $)
Melbye Gray s Watch ( 179.00 $)
UMi Z 4G Phablet 5.5 inch Android 6.0 Helio X27 2.6GHz Deca Core 4GB RAM 32GB ROM 13.0MP Front Camera Type-C Fingerprint Scanner$
Apollo rose quartz metallic leather and glitter sandal ( 291.54 $) Charlotte Olympia
Original xiaomi redmi 4 pro 3gb ram 32gb rom snapdragon 625 4100mah fingerprint id 5.0 ( 133.98 $)
grand theft auto liberty city +на андроид
2015 new hot selling professional police digital breath alcohol tester breathalyzer at838 free shipping dropshipping ( 9.99 $)
Tortoise Buckle Bangle ( 99.00 $)


108bb.png
Discounts! beautiful pick

progect11.jpg
Products which fall under this return policy can be returned domestically, as long as they are unused and in the original packaging. No questions asked!
If a product that falls under this guarantee is found to be counterfeit, you will get a full refund (shipping costs included).

buy.png

READ MORE
Kokon (film)
2017 Swimwear Bikini Sexy Beach Swimwear Ladies Push Up Swimsuit Bathing Suit Brazilian maillot de bain Free Shipping ( 11.99 $)
Yunnan Rose puer tea,Pu'er cha ripe Puer tea cake beauty puer 150 grams of tea cake,puerh 100% natural beauty care green food ( 11.80 $)
HOMTOM HT3 Pro 5.0 inch 4G Smartphone Android 5.1 MTK6735 64bit Quad Core 2GB RAM 16GB ROM Dual Cameras OTA GPS 2.5D Screen 95.79$
Universal 2 din car dvd double din car video player touch screen panel car audio player 7010b support fmmp5usbauxbluetooth ( 57.24 $)
Merc | Clothing and footwear | Official store in Russia ©
Pandora shocking pink leather mini box bag ( 1189.72 $) Givenchy
Dark Blue Micro Checked Mens Shirt ( 49.00 $)
взломанный plants vs zombies free
Bastec 1M Aluminum Alloy Gold Plated Plug 3.5mm Aux Cable Male to Male Audio Cable for Car iPhone MP3 MP4 Headphone Speaker ( 2.84 $)
Brazilian kinky curly virgin hair clip in human hair extensions afro kinky curly hair brazilian kinky curly human hair clip in ( 57.73 $)
красный богатырь москва
Sisjuly solid color hooded jacket long sleeve women's hoodies sweatshirts black zipper autumn winter outerwear coats fashion ( 34.99 $)
Missis Braun
Elephone P9000 4G Phablet-217.21 $


50.jpg
Discounts! best make products

progect11.jpg
Products which fall under this return policy can be returned domestically, as long as they are unused and in the original packaging. No questions asked!
If a product that falls under this guarantee is found to be counterfeit, you will get a full refund (shipping costs included).

buy.png

READ MORE
Bastec Original Micro USB Cable with Metal Shell Gold-plated Connector Braided Wire for Samsung Sony Xiaomi Android Phone ( 1.98 $)
кроссовки nike lunar force
Domain registration RF/RU from&nbsp;accredited domain Registrar, cheap domains | REG.RU
Women wallets brand design high quality leather wallet female hasp fashion dollar price alligator long women wallets and purses ( 40.00 $)
Ccd hd waterproof car runk handle parking rearview backup camera case for audivwpassattiguangolftouranjettasharantouareg ( 35.26 $)
E-ace mini hidden wifi car dvr dashcam video recorder camcorder 170 degree wide angle full hd 1080p dual camera lens reistrator ( 45.37 $)
Free shipping roof seal covers for mazda 3 mazda 6 4pcs car styling sticker ( 0.99 $)
Multifunctional Suspension Cross Fit Training Belt-29.92 $
Brazilian Body Wave 3 Bundles Brazilian Virgin Hair Body Wave Wet and Wavy Virgin Brazilian Hair Weave Bundles Remy Human Hair ( 45.00 $)
V Balashihe zhiloj dom treshit po shvam
Mermaid blanket ,pattern crochet mermaid tail,knitted mermaid tail blanket adult child 31''71'' ( 19.90 $)
Educational Toy Insect Observation Magnifier ( $2.86 )
JJRC H26 2.4G 4CH RC Quadcopter-57.79 $
U shape electrical shiatsu back neck shoulder massager body infrared 3d kneading massager eu plug flat plug ( 43.80 $)
Peruvian Virgin Hair Straight 4 Bundles Peruvian Straight Human Hair Weave Bundles Unprocessed Virgin Hair Lucky Queen Hair ( 56.00 $)


109.png




1 user(s) are reading this topic

0 membro(s), 1 visitante(s) e 0 membros anônimo(s)

IPB Skin By Virteq