Search found 74 matches
- Thu May 12, 2011 12:59 am
- Forum: Tutorials
- Topic: PHP Tutorial: Automatic Image Gallery [part 02]
- Replies: 14
- Views: 3054
Re: PHP Tutorial: Automatic Image Gallery [part 02]
Well, resimler.php includes gallery.php, so I cannot comment it out. resimler.php : [syntax=php]<?php include 'includes/header.php'; ?> <div id="title">Images</div> <div id="content"> <?php include 'gallery/gallery.php'; ?> </div> <?php include 'includes/footer.php'; ?>[/syntax]...
- Wed May 11, 2011 10:19 am
- Forum: PHP
- Topic: Get echo's in table top of page
- Replies: 23
- Views: 2439
Re: Get echo's in table top of page
Speaking of font tags,I know don;t use them.Which is the preferred method break out of php to add css or encapulate and echo them, I am going to need to learn this to work and a real site, in real life scenerios.
- Wed May 11, 2011 4:36 am
- Forum: PHP
- Topic: Get echo's in table top of page
- Replies: 23
- Views: 2439
Re: Get echo's in table top of page
WoW, what was I thinking!!! [syntax=php]<?php require ('function.php'); if (isset($_POST['submit']) ) { $number = (int) $_POST['pickanumber']; if ($number>25||$number<1) { echo "Enter a number between 1 and 25 <br />"; } if ($number==25) { echo "Congratulations, your a winner"; }...
- Wed May 11, 2011 1:40 am
- Forum: PHP
- Topic: Get echo's in table top of page
- Replies: 23
- Views: 2439
Re: Get echo's in table top of page
After feeling like I was kicked when I was down, LOL I accepted the critism as constructive. I went back to the books and took your format into my page. You was correct page didnt make sense half of that stuff is not necessary for the page to function So I went back threw and cleaned up the best I c...
- Tue May 10, 2011 4:08 pm
- Forum: PHP
- Topic: Get echo's in table top of page
- Replies: 23
- Views: 2439
Re: Get echo's in table top of page
That's really just as bad... That said, your code makes no sense. Now that you have an easier to read version of your code, can you spot some things yourself? man and I thought I was getting some where. I must not understand it as well as I thought. ok here is what I was doing. I started out. let m...
- Tue May 10, 2011 3:49 pm
- Forum: PHP
- Topic: Get echo's in table top of page
- Replies: 23
- Views: 2439
Re: Get echo's in table top of page
[syntax=php]echo '';[/syntax] This is interesting On the style thing though, it really does not matter how you do it, but indenting things in a consistent way that works for you will defiantly help. Like Tino's example all of the code inside each block is tabbed in by one. LOL wondering if I could ...
- Tue May 10, 2011 2:43 pm
- Forum: PHP
- Topic: Get echo's in table top of page
- Replies: 23
- Views: 2439
Re: Get echo's in table top of page
With 'a mess' I mean it's very unreadable. You'll want to indent consistently to make it easier for us to help you, as well as to make your own life easier. OK I re did it and indented not sure if this is clean or not any tips NoW my code works with no errors [syntax=php]<?php if (isset($_POST['sub...
- Tue May 10, 2011 12:44 pm
- Forum: PHP
- Topic: Get echo's in table top of page
- Replies: 23
- Views: 2439
Re: Get echo's in table top of page
Your telling me, I am depressed now.
- Tue May 10, 2011 12:36 pm
- Forum: PHP
- Topic: Get echo's in table top of page
- Replies: 23
- Views: 2439
Re: Get echo's in table top of page
Ok I tried things like you said and it stopped working here is some things I have done. [syntax=php]<?php $numbers = strip_tags($_POST['pickanumber']); $submit = $_POST['submit']; if (isset($_POST['submit']) && ($_POST['submit'])) if (isset($_POST['pickanumber'])&& ($_POST['pickanumb...
- Tue May 10, 2011 10:44 am
- Forum: PHP
- Topic: Get echo's in table top of page
- Replies: 23
- Views: 2439
Re: Get echo's in table top of page
now other issue, I want to learn how to get my echoes into a table that needs t be created at top of page left side. ?? Just put a table before your form? [syntax=php]<?php if ( isset($_POST['submit']) ) { // echo table with data using HTML table tag } ?> <form action="" method="post...
- Tue May 10, 2011 7:10 am
- Forum: PHP
- Topic: Get echo's in table top of page
- Replies: 23
- Views: 2439
Get echo's in table top of page
Learning php so far 2 that I wrote did all what I thought they would do, good! now other issue, I want to learn how to get my echoes into a table that needs t be created at top of page left side. here is the code. [syntax=php]<?php $numbers = strip_tags($_POST['pickanumber']); $submit = $_POST['pick...
- Mon May 09, 2011 9:22 pm
- Forum: PHP
- Topic: Question on the '.'
- Replies: 5
- Views: 1113
Re: Question on the '.'
LOL im allready into OOP or is that an oops just wondering seen a video where someone was cacatenating and kept saying add a full stop.
- Mon May 09, 2011 6:25 pm
- Forum: PHP
- Topic: Question on the '.'
- Replies: 5
- Views: 1113
Re: Question on the '.'
jacek wrote:a . is the character used to concatenate
[syntax=php]$string = "I am" . " " . "a string";[/syntax]
would be concatenating those three strings and create a variable that holds the result.
Understood, where does the full stop come from?
- Mon May 09, 2011 5:55 pm
- Forum: PHP
- Topic: Question on the '.'
- Replies: 5
- Views: 1113
Question on the '.'
now been doing some reading,They talk about full stop and concatenation are these the same, or is it in the process in which you use it determin the answer.
- Mon May 09, 2011 5:22 pm
- Forum: PHP
- Topic: echo,or cuotes problem
- Replies: 10
- Views: 2112
Re: echo,or cuotes problem
LOL, I can't tell you how long I've look at one line and the answer was right in front my face either '," or ; missing..
- Mon May 09, 2011 9:58 am
- Forum: PHP
- Topic: echo,or cuotes problem
- Replies: 10
- Views: 2112
Re: echo,or cuotes problem
maybe you need to convert the symbol?
try looking here, you said after you used euro symbol
http://php.net/manual/en/function.mb-convert-encoding.php
try looking here, you said after you used euro symbol
http://php.net/manual/en/function.mb-convert-encoding.php
- Mon May 09, 2011 9:50 am
- Forum: PHP
- Topic: echo,or cuotes problem
- Replies: 10
- Views: 2112
Re: echo,or cuotes problem
LOL I was lost thought he was talking about
[syntax=php]html_entity_decode('€', ENT_QUOTES, 'ISO-8859-15');[/syntax]
can you use str_replace() to change symbol
[syntax=php]html_entity_decode('€', ENT_QUOTES, 'ISO-8859-15');[/syntax]
can you use str_replace() to change symbol
- Mon May 09, 2011 9:33 am
- Forum: General Chat
- Topic: who likes Bingooo
- Replies: 61
- Views: 8627
Re: who likes Bingooo
I like it cause it my first own code LOL
- Mon May 09, 2011 5:20 am
- Forum: General Chat
- Topic: who likes Bingooo
- Replies: 61
- Views: 8627
Re: who likes Bingooo
TA2shop for a more random drawing of number use this [syntax=php]<?php $numbers = range(1, 90); shuffle($numbers); foreach ($numbers as $number) { echo "$number "; } ?> [/syntax] this will list 90 number without alot of overlap you could add a <br> [syntax=php] echo "$number " . ...
- Sun May 08, 2011 11:12 pm
- Forum: General Chat
- Topic: who likes Bingooo
- Replies: 61
- Views: 8627
Re: who likes Bingooo
Now I am guessing you would have to have these numbers run a limit,and check for duplicates.
If number exists generate differant number. also in the american game they draw 43 numbers and uses 42.
I just seen other card there is just numbers and not letters...
If number exists generate differant number. also in the american game they draw 43 numbers and uses 42.
I just seen other card there is just numbers and not letters...
- Sun May 08, 2011 11:06 pm
- Forum: General Chat
- Topic: who likes Bingooo
- Replies: 61
- Views: 8627
Re: who likes Bingooo
jacek wrote:Looks clean enough, good job
Thank You, I was gonna try to use Switch and Case 1 Case 2... but couldn't figure it out