| View previous topic :: View next topic |
| Author |
Message |
gogodr I post too much
Reputation: 125
Joined: 19 Dec 2006 Posts: 2041
|
Posted: Thu Nov 19, 2009 1:08 am Post subject: anyone here knows php? |
|
|
whats wrong with this code?
| Code: | <?php
?>
echo "<table border=\"1\" align=\"center\">";
echo "<tr><th>Cards</th></tr>";
for ( $counter = 1; $counter <= 363; $counter++) {
echo "<tr><td>";
echo "<img src="http://www.wowminisdb.net/Image.aspx?ID=" . $counter . "></img>";
echo "</td></tr>";
}
echo "</table>";
<?
?> |
|
|
| Back to top |
|
 |
Thanh Master Cheater
Reputation: 0
Joined: 21 Dec 2006 Posts: 385
|
Posted: Thu Nov 19, 2009 1:13 am Post subject: |
|
|
| Everything. |
|
| Back to top |
|
 |
gogodr I post too much
Reputation: 125
Joined: 19 Dec 2006 Posts: 2041
|
Posted: Thu Nov 19, 2009 1:48 am Post subject: |
|
|
| care to help? this is important |
|
| Back to top |
|
 |
redslothx Grandmaster Cheater Supreme
Reputation: 13
Joined: 27 Nov 2006 Posts: 1949
|
Posted: Thu Nov 19, 2009 1:52 am Post subject: |
|
|
| gogodr wrote: | | care to help? this is important |
This thread is srs business, everyone b srs. _________________
|
|
| Back to top |
|
 |
gogodr I post too much
Reputation: 125
Joined: 19 Dec 2006 Posts: 2041
|
Posted: Thu Nov 19, 2009 2:06 am Post subject: |
|
|
anyways I just decided that its going to be easier to just contact the guys and ask for the images database
if I show them the current advance of the game I'm pretty sure they will collaborate |
|
| Back to top |
|
 |
Cheat Engine User Something epic
Reputation: 61
Joined: 22 Jun 2007 Posts: 2071
|
Posted: Thu Nov 19, 2009 2:11 am Post subject: Re: anyone here knows php? |
|
|
| gogodr wrote: | whats wrong with this code?
| Code: | <?php
echo "<table border=\"1\" align=\"center\">";
echo "<tr><th>Cards</th></tr>";
for ( $counter = 1; $counter <= 363; $counter++) {
echo "<tr><td>";
echo "<img src="http://www.wowminisdb.net/Image.aspx?ID=" . $counter . "></img>";
echo "</td></tr>";
}
echo "</table>";
?> |
| <?php is the start of the php code, ?> closes it
So no <?php ?> at the end and start of it.
Also code is ripped, learn it instead. |
|
| Back to top |
|
 |
gogodr I post too much
Reputation: 125
Joined: 19 Dec 2006 Posts: 2041
|
Posted: Thu Nov 19, 2009 2:18 am Post subject: Re: anyone here knows php? |
|
|
| Querijn wrote: | | gogodr wrote: | whats wrong with this code?
| Code: | <?php
echo "<table border=\"1\" align=\"center\">";
echo "<tr><th>Cards</th></tr>";
for ( $counter = 1; $counter <= 363; $counter++) {
echo "<tr><td>";
echo "<img src="http://www.wowminisdb.net/Image.aspx?ID=" . $counter . "></img>";
echo "</td></tr>";
}
echo "</table>";
?> |
| <?php is the start of the php code, ?> closes it
So no <?php ?> at the end and start of it.
Also code is ripped, learn it instead. |
I know all what writes in here is not ripped
:/
I have used <?php
?>
several times without errors :/
and
only part of the code I copy and pasted was
echo "<table border=\"1\" align=\"center\">";
:/ since when I wanted to know if the for loop was able to be used with php I found it convenient to put the images on a table and the example was convenient so I copy and pasted it :/ |
|
| Back to top |
|
 |
Trucido Moderator
Reputation: 6
Joined: 08 Sep 2007 Posts: 2792
|
Posted: Thu Nov 19, 2009 2:19 am Post subject: |
|
|
Cris or HL are your men for this job. _________________
I'm out. |
|
| Back to top |
|
 |
gogodr I post too much
Reputation: 125
Joined: 19 Dec 2006 Posts: 2041
|
Posted: Thu Nov 19, 2009 2:28 am Post subject: |
|
|
| bleh like I said, I'm just going to email the guys from wowminisdb (( as soon as msn gets back up .. .___. )) and ask they if they want to collaborate since their database is a fan made and not really related to blizzard or the upper deck company |
|
| Back to top |
|
 |
Cheat Engine User Something epic
Reputation: 61
Joined: 22 Jun 2007 Posts: 2071
|
Posted: Thu Nov 19, 2009 4:22 am Post subject: Re: anyone here knows php? |
|
|
| gogodr wrote: | I know all what writes in here is not ripped
:/
I have used <?php
?>
several times without errors :/
and
only part of the code I copy and pasted was
echo "<table border=\"1\" align=\"center\">";
:/ since when I wanted to know if the for loop was able to be used with php I found it convenient to put the images on a table and the example was convenient so I copy and pasted it :/ | Are you sure it's not ripped? It sure looks a lot like:
| Code: | echo "<table border=\"1\" align=\"center\">";
echo "<tr><th>Quantity</th>";
echo "<th>Price</th></tr>";
for ( $counter = 10; $counter <= 100; $counter += 10) {
echo "<tr><td>";
echo $counter;
echo "</td><td>";
echo $brush_price * $counter;
echo "</td></tr>";
}
echo "</table>";
|
http://www.tizag.com/phpT/forloop.php << first result when searching for loop php.
I would do it like this though:
| Code: | <?php
$i = 0
while($i!=364)
{
echo '<img src="http://www.wowminisdb.net/Image.aspx?ID='.$i.'"><br>';
$i++;
}
?> |
And next to that:
| Code: | <?php
?>
echo 'This must be incorrect';
<?php
?> |
Outputs:
| Code: | | echo 'This must be incorrect'; |
And I even was stupid enough to try it.
You have clearly no skill and therefore a ripper of code.
http://www.w3schools.com/php/default.asp next time.
I feel so Athaem right now. |
|
| Back to top |
|
 |
RealMayar Newbie cheater
Reputation: 0
Joined: 12 Nov 2009 Posts: 24
|
Posted: Thu Nov 19, 2009 4:49 am Post subject: Re: anyone here knows php? |
|
|
| gogodr wrote: | whats wrong with this code?
| Code: | <?php
?> //end of php section, all the other things untill <?PHP will be considered simple HTML by the PHP
echo "<table border=\"1\" align=\"center\">";
echo "<tr><th>Cards</th></tr>";
for ( $counter = 1; $counter <= 363; $counter++) {
echo "<tr><td>";
echo "<img src="URL" . $counter . "></img>";//you should use \" here too or else PHP won't consider the URL as a string to be displayed by echo and you don't have to use </img>
echo "</td></tr>";
}
echo "</table>";
//don't use <? unless the "short tags" are enabled in php.ini (default is on, but hosting companies may switch it off
?> |
|
Fixed version:
| Code: | <?php
echo "<table border=\"1\" align=\"center\">";
echo "<tr><th>Cards</th></tr>";
for ( $counter = 1; $counter <= 363; $counter++) {
echo "<tr><td>";
echo "<img src=\"URL".$counter."\" />";
echo "</td></tr>";
}
echo "</table>";
?> |
PS: I wrote "URL" instead of the original link because of forum restriction. _________________
| RealMayar wrote: | | Noko_112 wrote: | | What on earth is IE 64-bit even good for? | For example downloading Firefox. Atleast IE can do that properly. Most of the time. |
|
|
| Back to top |
|
 |
gogodr I post too much
Reputation: 125
Joined: 19 Dec 2006 Posts: 2041
|
Posted: Thu Nov 19, 2009 9:19 am Post subject: |
|
|
Querijn>>
I still dont see how it is a rip :/
anyways, doing it with a for conditional or a do while is just the same thing :/
RealMayar>>
thanks, it worked
>x< I noticed that what I was missing was the \ before the " so it wouldn't take it as an operator xP |
|
| Back to top |
|
 |
Benji Random spam moderator
Reputation: 4
Joined: 31 Dec 2007 Posts: 61 Location: The Netherlands
|
Posted: Thu Nov 19, 2009 9:24 am Post subject: Re: anyone here knows php? |
|
|
| Querijn wrote: | | gogodr wrote: | whats wrong with this code?
| Code: | <?php
echo "<table border=\"1\" align=\"center\">";
echo "<tr><th>Cards</th></tr>";
for ( $counter = 1; $counter <= 363; $counter++) {
echo "<tr><td>";
echo "<img src="http://www.wowminisdb.net/Image.aspx?ID=" . $counter . "></img>";
echo "</td></tr>";
}
echo "</table>";
?> |
| <?php is the start of the php code, ?> closes it
So no <?php ?> at the end and start of it.
Also code is ripped, learn it instead. |
I was going to say "inb4querijn", then I saw your post. _________________
|
|
| Back to top |
|
 |
Cheat Engine User Something epic
Reputation: 61
Joined: 22 Jun 2007 Posts: 2071
|
Posted: Thu Nov 19, 2009 6:54 pm Post subject: |
|
|
| gogodr wrote: | Querijn>>
I still dont see how it is a rip :/
anyways, doing it with a for conditional or a do while is just the same thing :/ | The two do not matter, forloop is just something for advanced uses.
And do I fucking need to write a php code to check ou how much you actually took out of that example?
Jesus Christ that I can rage this much on an idiot like you.
Next time you think like making code, learn it first. You failed on making a signature generator from my spoonfeeding tutorial, I mean, goddamn it. And now you made this new thread with "i just made a php call to the image.aspx and macrod all the images." No you didnt. You didnt call anything. You made nothing. You made a loop that shows images on your screen. |
|
| Back to top |
|
 |
gogodr I post too much
Reputation: 125
Joined: 19 Dec 2006 Posts: 2041
|
Posted: Thu Nov 19, 2009 7:05 pm Post subject: |
|
|
| Querijn wrote: | | gogodr wrote: | Querijn>>
I still dont see how it is a rip :/
anyways, doing it with a for conditional or a do while is just the same thing :/ | The two do not matter, forloop is just something for advanced uses.
And do I fucking need to write a php code to check ou how much you actually took out of that example?
Jesus Christ that I can rage this much on an idiot like you.
Next time you think like making code, learn it first. You failed on making a signature generator from my spoonfeeding tutorial, I mean, goddamn it. And now you made this new thread with "i just made a php call to the image.aspx and macrod all the images." No you didnt. You didnt call anything. You made nothing. You made a loop that shows images on your screen. |
used flashget to make a continuous download:
all downloads where for image.aspx so I had to change the names to Variable.png >> Used ACTools and made a macro for the Flashget configureation :/
"Yes I did"
:/
and I still dont get why ar eyou so pissed ? :/ all I did was to ask for some help with PHP since I have no real intention of getting further learning it and I just neded that simple thing :/
also idk why you call my for loop a rip ? its a universal loop
present in C#, C++, Pascal (( if I remember correctly )) , Visual Basic, and other programming languages :/
:/ and since you mentioned the sig generator tutorial :/ well I learn t how to use a preg_split correctly and we argued on the code a lot because of me asking if it was possible to use | like an or at the time of making the preg_split search parameters, you saying that it wasn't possible and me saying that it was since I saw it on the msdn library and in the end It was posible and I used it. |
|
| Back to top |
|
 |
|