![](https://forums.phpfreaks.com/uploads/set_resources_1/84c1e40ea0e759e3f1505eb1788ddf3c_pattern.png)
Unholy Prayer
-
Posts
166 -
Joined
-
Last visited
Never
Posts posted by Unholy Prayer
-
-
Ok, that's wierd because semicolons have never been a problem in my other scripts in both the require_once() and echo lines. Where exactly do I put them? Just at the end?
-
This is the whole page:
[code]<?php
require_once('database.php')
$result = mysql_query("SELECT * from affiliates");
while($r=mysql_fetch_array($result))
{
$site_name=$r["site_name"];
$site_url=$r["site_url"];
$banner_url=$r["banner_url"];
echo "<a href='$site_url' target='new'><img src='$banner_url' width='88' height='31'></a>"
}
?>[/code]
I know... not that much coding, right? But hey, with a PHP noob like me, this kind of stuff is expected. -
Ok, I am trying to make an affiliates management program, but I keep getting this error on the index display page... here it is:
[code]Parse error: syntax error, unexpected T_VARIABLE in /home/mutantde/public_html/programs/index.php on line 4[/code]
This is line 4:
[code]$result = mysql_query("SELECT * from affiliates");[/code]
This is probably a noob question, but this is my first PHP program so I guess I am a PHP Noob.
Thanks in advance for the help. -
Wow, you think I stole the images from a pre-made PHPbb2 template? I made that template by myself. I hand coded the HTML. There are still some bugs in the template coding. That's why it's so messy. Where's your proof that I downloaded that template? I designed the template and made the PHPbb2 template from the same images, just different names. Before you accuse someone of stealing, find proof.
-
Ok, there are only two things wrong with the poll system I am currently using is that users can vote more than once.
1. Users can vote more than once. All they have to do is refresh the page.
2. Everytime I refresh the page, the POST DATA prompt comes up.
How do I fix these problems? You can see my poll system at my newly launched website:
http://www.mtechdev.com/ -
Visit my new site and we will re-design your site.
http://www.mtechdev.com/ -
or you could use this:
[code]<table>
<tr>
<td>stuff</td>
<td>other stuff</td>
</tr>
</table>[/code]
That should do the trick. -
Get yahoo ads. You could put a banner on your site that says "This could be your banner" and put a link underneath it that leads to a page where people can submit their banner and pay you to put it on your site.
-
Uh, the only option I get is "Array". Lol. But I love the 360. I got mine a month ago and it's amazing.
I first thought PS3.... then ps3 and now i don't know...
revolution - yes that's right now you can see your favorite characters such as mario and pikachu in better graphics. - ah... yeah awesome...... mabye not.... that's pretty much what they bass them selves on each time the system changes...... the nintendo market is the kindergarten market of the gaming world.... i mean seriously..... anyone up to the age of 10.... or 8 or 10.... would be happy.... and fankly... i think it survives by having those classic characters like little kidies can recognise... + most parents wont get there 7 year old son/daughter a console which half the games include shooting....
The only people who want to see pikachu are little kids. Tchh. But anyways Xbox 360=Complete Ownage
-
I am 17 male.
-
I need some oppinions on my website. First, is if you like the template. Second, is what you guys think I should add to it. The areas below the right navigation and news articles are very empty, so I was wondering what you guys think.
http://www.mtechdev.com/
Note: The client of the month content is just temporary so it doesn't look empty. -
Hmm... I changed it, but I still get the same error on the same line.
-
I tried the code you gave me, but I got an error on the following line:
[code]$assoc = mysel_fetch_assoc[$query];[/code]
The error was:
[quote]Parse error: syntax error, unexpected '[' in /home/mutantde/public_html/bbultimate/functions.php on line 16[/quote] -
Will the session scripting find the username of the person that is logged in? If so, all I have to do is use <?php echo "Welcome, $username"; ?> ?
-
Ok, I made my register, login, and logout scripts, but the last thing i need to know is once a user is logged in, how do I display their username? For example, if Bob logs in under the username Bob, how do I make it say "Welcome, Bob." But then it should change for every user. If the user Henry logs in from a different computer, it should display "Welcome, Henry", not "Welcome, Bob". Can someone help me with this?
Unexpected T VARIABLE?
in PHP Coding Help
Posted