ober
-
Posts
5,327 -
Joined
-
Last visited
Posts posted by ober
-
-
XP Home will work fine. You could try the tutorials here.
-
I suggest you post this question over there. Your login here and there are the same.
-
Switch hosts?
-
[a href=\"http://www.grisoft.com/doc/SmallAndMedium/lng/us/tpl/tpl01\" target=\"_blank\"]http://www.grisoft.com/doc/SmallAndMedium/lng/us/tpl/tpl01[/a]
AVG is the way to go, IMO. I wouldn't trust McAfee any farther than I could throw them and Symantec has been ok here where I work, but I honestly feel like Grisoft makes a better product and will cost you less in the long run. -
You can download and install PHP and Apache on your computer to test your scripts and you can use a text editor or something like PHP Developer 2005 or 2006 to develop the code. But yes, you'll need a host that has PHP on it to run PHP scripts.
-
Well I'm not going to write it for you. The examples provided in the manual don't get much more clear on how to use them.
-
I'd suggest checking with them. The code is too simple to be anything else if you say the response is being returned correctly.
-
Has anything changed on the server in the past day?
-
Remove the error suppression (@ symbol) and see if the file_get_contents() part is working.
-
Well... you have a div in there plus a <br>. You may have to take one or both out to get it to stay on one line.
-
All you should have to do is check to see if there is anything in the $_FILES array. If there isn't, skip that portion of the processing event.
-
That is correct.
-
May I ask what is taking so long? What are you possibly doing that would take 6 minutes to process on the database?
And are you starting the sending of the script every 60 seconds? You really need to change the execution time in the php.ini file. -
All you have to do is add a counter variable to the loop. I'm going to modify your code, because do-while loops aren't the normal or preferred way of looping through a recordset... because it will ALWAYS do one before checking the condition and I'm not sure how you're getting your first record that way either... and for that matter, you're jumping in and out of PHP tags FAR too often:
[code]<?php
if($Recordset1 && mysql_num_rows($Recordset1) > 0)
{
$counter = 0;
while ($row_Recordset1 = mysql_fetch_assoc($Recordset1));
{
if(++$counter == 12)
{
echo '<span class="breaker"></span>';
$counter = 0;
}
extract($row_Recordset1);
?>
<div class="employee">
<p>
<img src="images/<?=$firstname?>_<?=$lastname?>.jpg" width="140" height="140" /><br />
<?php
echo "$firstname<br />
$lastname<br />
$office<br />
$phone</p>"; ?>
</div>
<?php }
}
?>[/code]
-
I'm not sure what you're trying to do. The only reason you would use HEREDOC is to echo something. If you want to do string comparisons, put the strings into an array.
-
I'm not sure I understand how the code you posted relates to the problem.
Everytime you run that script, you should just add in another query to check the stock level and if the results of the query match your level... you echo a message.
Maybe you can explain the problem a little more? -
I'm not completely sure I understand the question or how it relates to your dynamic image script, but you should look into fopen(), fread(), fwrite() for reading and writing text files.
-
This is not a PHP question. Thread Closed.
-
Hmm... double posting. Yeah, that's against forum guidelines. If you want it moved to this board, that can be done, but please don't double post. You can bump your old thread if it hasn't been answered or PM me to have it moved to here.
Thread Closed. -
Everyone has their own personal tastes, but I think a lot of what people post on this critique board is technical stuff (how the site works, whether it uses mailto vs a contact form, etc.). And certain fonts are just bad ideas... you want the site to be readable, easy to navigate, and have a good flow. The rest is just graphics and making the site appeal to the general public.
However, if you're finding that what you like is the complete opposite of what everyone else is saying, maybe you're in wrong business. Some people just have a knack for this stuff. It's all about style... people like jcombs have it and they know how to produce it. I'm pretty much a hack when it comes to style, but I'd like to think I know what works and what doesn't.
EDIT: for example... you obviously don't care about paragraphs and making sure your spelling is ok when you post on a forum. I do. It's little things like that that set us apart. -
They support PNG, just not transparency and opacity in those browsers.
-
James,
Thanks for reporting all those threads. I've gone though and deleted every thread he posted that was offensive. I've also PMed the admins.
-
I don't understand your layout whatsoever. The banner image is fixed width... and it's stretched to all hell so it looks like garbage. The font you're using is horrid and hard to read. And there's no styling otherwise to speak of. Work on the CSS and pick either fixed width or full and then get back to us.
And I'm not sure what Javascript you're talking about, because what you have right now shouldn't require ANY javascript. -
If you find someone posting something inappropriate or spamming the forums, hit the "Report" button under the post. One of the mods will see it and take care of it.
If it goes on long enough, they'll be banned.
login two types of members to a correct page please help.
in PHP Coding Help
Posted
1) you don't have to use session_register(). Just use $_SESSION['var_name'] = x;
2) }else if( ! $name|| $password) won't work. $name and $password are not boolean variables. And I assume you want to fail that if when $password is blank as well.... right now it passes if $password is true. And you never compare the database results to what is passed from the form. How do you think authentication works!?!?