Borzoi 24 Posting Whiz

That has done just what I need. Thank you. I wanted all instances so I removed and Data[2]='running' and just replaced SSDP Discovery with the service I was looking for.

Borzoi 24 Posting Whiz

If you're only seeing the code on the site and in the view source then your hosting doesn't have PHP enabled. Check with your hosting provider to make sure PHP is enabled on the hosting.

Borzoi 24 Posting Whiz

W3 Schools is one I've used and sometimes still reference. If you're looking for PHP specific things, PHP.net is a good reference but it's not a tutorial site. It's mainly a list of functions and what they do with examples.

Borzoi 24 Posting Whiz

Just a note but your if statement has an error.

if($_SERVER["REQUEST_METHOD"] == "POST" && isset($_POST['submit']) == 'POST')

You're checking if a variable is set and then if the result is POST. You will need either:

isset($_POST['submit'])

Or

$_POST['submit'] == 'POST'

My recommendation would be the first.

The isset(); function can only return either TRUE or FALSE but you are checking to see if it has the value of POST. By just having isset($_POST['submit']) in the if statement, you are checking to see if it is set to TRUE. To check if it is false, you would change it to !isset($_POST['submit']).

The error log will be more precise as to the cause of the 500 error message. I don't think the error in the if statement would have caused a 500 error.

Borzoi 24 Posting Whiz

You may find that Yahoo! have blocked the server the mail is being sent from, bouncing it back or just refusing it. The mail log on the server sending the mail will be able to tell you this.

I've seen it a lot where the server sending the mail has mis-matched hostname and reverse DNS or a hostname which doesn't resolve properly. A lot of mail providers, Yahoo! included, will not accept mail from a server which hasn't been set up properly.

Borzoi 24 Posting Whiz

Your problem is with your IF statement on lines 14/15. You're checking the variable $screen before you're putting anything in to it:

if (!isset($screen))
    $screen = 0; else echo $_GET["screen"];

You neede to check it $_GET["screen"] is the one which is set:

if (!isset($_GET["screen"]))
    $screen = 0; else echo $_GET["screen"];
Borzoi 24 Posting Whiz

This isn't a clean fix (someone may be able to provide a better one) but you could loop through the array, placing each entry of the array into an appended variable.

$newvariable = ""; //create the variable

for ($i= 0; isset($result[$i]); $i++)
{
    $newvariable .= $result.", "; //Add the current array entry to the variable, appended with a comma and space.
}

The problem with this is that there will be a trailing comma and space at the end.

Borzoi 24 Posting Whiz

I want to tell a joke about UDP but I don't know if you'll get it.

Slavi commented: good 1 :D +0
Borzoi 24 Posting Whiz

Pretending it started working randomly isn't going to help anyone. We're all human and miss things sometimes. Admitting to my mistake will hopefully help others who are having a similar problem.

diafol commented: well said +14
Borzoi 24 Posting Whiz

I found the problem. It looks like I had accidentally changed the line specify the name of the .htaccess file in the httpd.conf file. The line should read:

AccessFileName .htaccess

But I had accidentally changed it to:

AccessFileName .htacess

Which was causing the problem. I've corrected it and restarted apache and it's now working correctly.

Borzoi 24 Posting Whiz

Does it really? 4/2 = 2, 2 X 1 = 2. It's the same for me on my planet.

We learn CORLAT which translates as Parenetheses|Brackets, Indicies|Powers|Orders|Exponents, Division, Multiplication, Addition, Subtraction. But Div,Mult can be swapped as can Add,Sub.

I think the BIDMAS,BODMAS,PEDANT is a smokescreen. Unless you look at the second operator (indicies), there's very little that can go wrong.

CORLAT is another I've not heard of but it's the same order as BIDMAS so our results are the same.

Azmah commented: what's your planet? :D +0
Borzoi 24 Posting Whiz

I was always taught BODMAS/BIDMAS:

(B)rackets
powers (O)f/(I)ndices
(D)ivision
(M)ultiplication
(A)ddition
(S)ubtraction

In some countries, replacing "Brackets" with "Parentheses" would be the case making it PODMAS/PIDMAS but I've never hear of PEMDAS. I'm assuming the "E" is representing another word for powers of or indices but why is the M and D switched?

The only time I was taught to do multiplication before division was when the sum was written as a fraction:

2x2
---
2

Rather than inline:

2x2/2

Using BIDMAS, it would make the answer to the first, 2 and the answer to the second, 1.

Borzoi 24 Posting Whiz

Why is Halloween the same as Christmas?

Because Dec 25 is Oct 31.

Borzoi 24 Posting Whiz

Even strong passwords are crackable and it won't stop the user being subjugated to phishing. I would go with ardav and only allow bbcode.

jonsca commented: Thank you +6
Borzoi 24 Posting Whiz

Have the water in some sort of container and hold the container above his/her head.

Borzoi 24 Posting Whiz

Just as Kraai said, you need to view source and not save the page. Bear in mind that viewing the source only shows the outputted HTML and will not show any PHP so you won't be able to steal websites database passwords.

Borzoi 24 Posting Whiz

Looking at your code for the page, you have </p> after each link in that menu but you don't have an opening <p> tag.

You have:

<p class="text1">
  <a href="whoweare.php">Who We Are</a></p>
  <a href="events.php">Events</a></p>

  <a href="newsletter.php">Newsletter &amp; News</a></p>
  <a href="AwardNominations.php">Award Nominations</a></p>
  <a href="videos.php">Video Library</a></p>
  <a href="jobs.php">Jobs</a></p>
  <a href="links.php">Links</a></p>

  <a href="discounts.php">Discounts</a></p>
  <a href="volunteers.php">Call for Volunteers</a></p>
  <a href="societies.php">Society Websites</a></p>
  <a href="bylaws.php">By-laws</a></p>
  <a href="http://www.ieee.org/portal/index.jsp?pageID=corp_level1&amp;path=membership&amp;file=coa.xml&amp;xsl=generic.xsl">Update
  IEEE profile and email address</a></p>
  <a href="other.php">Other Events</a></p>

  <a href="http://www.ieee.org/fap"><img border="0" src="images/fap.jpg" width="120" height="60"></a>
</p>

Try this:

<p class="text1">
  <p><a href="whoweare.php">Who We Are</a></p>
  <p><a href="events.php">Events</a></p>
  <p><a href="newsletter.php">Newsletter &amp; News</a></p>
  <p><a href="AwardNominations.php">Award Nominations</a></p>
  <p><a href="videos.php">Video Library</a></p>
  <p><a href="jobs.php">Jobs</a></p>
  <p><a href="links.php">Links</a></p>
  <p><a href="discounts.php">Discounts</a></p>
  <p><a href="volunteers.php">Call for Volunteers</a></p>
  <p><a href="societies.php">Society Websites</a></p>
  <p><a href="bylaws.php">By-laws</a></p>
  <p><a href="http://www.ieee.org/portal/index.jsp?pageID=corp_level1&amp;path=membership&amp;file=coa.xml&amp;xsl=generic.xsl">Update IEEE profile and email address</a></p>
  <p><a href="other.php">Other Events</a></p>
  <p><a href="http://www.ieee.org/fap"><img border="0" src="images/fap.jpg" width="120" height="60"></a></p>
</p>
daviddoria commented: Thanks for catching my mistake! +4
Borzoi 24 Posting Whiz

Correct, although not necessarily 3 seconds before and after.

A panda goes into a restaurant. He eats a meal then afterwards stands up, pulls out a pistol and shoots someone then leaves the restaurant. Why did he do this?

AndreRet commented: I'll give you some whilst I hate riddles:) +0
Borzoi 24 Posting Whiz

Heh, you'll kick yourself when you hear the answer.

Borzoi 24 Posting Whiz

That's a good point Borzoi, but can you indicate a situation where float: left would not work when used on divs?

I cannot indicate any situation where it wouldn't work but I was referring to the internal <div> tags which wouldn't be floating, not the wrapping one.

Try both of these codes to see what I mean:
(use one of the w3schools "TryIt" pages if you want).

<html>
  <head>
    <title>banana</title>
    
  </head>
  
  <body>
     <div style="float: left; color: #5555ff;">
       <div>Element 1</div>
       <div>Element 2</div>
       <div>Element 3</div>
     </div>
     <p>This will be the content of the site.</p>
  </body>
</html>
<html>
  <head>
    <title>banana</title>
    
  </head>
  
  <body>
     <div style="float: left; color: #5555ff;">
       <div style="display: inline;">Element 1</div>
       <div style="display: inline;">Element 2</div>
       <div style="display: inline;">Element 3</div>
     </div>
     <p>This will be the content of the site.</p>
  </body>
</html>

You probably don't even need the internal <div> tags and just need the element itself, whether it's image or text. As long as they're coded without a <br /> or without their own positioning of some sort, they should be displayed on the same line. The second code I provided would display the same as:

<html>
  <head>
    <title>banana</title>
    
  </head>
  
  <body>
     <div style="float: left; color: #5555ff;">
       Element 1
       Element 2
       Element 3
     </div>
     <p>This will be the content of the site.</p>
  </body>
</html>

The float: left; would probably be better left out if it's for a menu bar of some sort so that the content is automatically placed beneath it.

<html>
  <head>
    <title>banana</title>
    
  </head>
  
  <body>
     <div style="color: #5555ff;"> …
Borzoi 24 Posting Whiz

<div> tags are naturally display: block; so if you're going to use peachy0685's method, you should use either <span> or in the class of the <div> put display: inline; otherwise you might get each element on a new line. There are some things that <div> supports that <span> doesn't. For example, positioning.

cguan_77 commented: thanks i don't know that css got inline command +0
Borzoi 24 Posting Whiz

To be fair though, my answers are technically correct.

Borzoi 24 Posting Whiz

Hmm...

An STD/STI?

SgtMe commented: LOL +0
Borzoi 24 Posting Whiz

In that case, it's very simple.

In your database, you need a table with 4 columns: id , post_user , post_text , post_time id should be an int , auto-increment and your primary key post_user is the username of the user that made the post. Should be a varchar(25) . (25 characters should be enough). post_text is the post. It should be a text so that line breaks can be used. post_time would be the time of the post and what to sort by. Whenever inputting the time into the database, just use the now() function.

Make sure you use stripslashes() so that people can't use SQL injection.

When calling the data from the database, your query should look something like this:
(assume the table is called "Feed")

SELECT * FROM Feed ORDER BY post_time ASC

You would then go on to display the user, post, and post time in a table of some sort.

I used to have something like this on my site which I have since expanded upon to make it into a forum with topics and users.

Zagga commented: Well written post, easy to follow with examples. +1
Borzoi 24 Posting Whiz

You can use rowspan.

<table>
  <tr>
    <td rowspan="2">1</td>
  </tr>
  <tr>
    <td>2</td>
    <td>3</td>
  </tr>
</table>

You would need colspan for that, not rowspan. You would use rowspan like this:

<table>
  <tr>
    <td rowspan="2">1</td>
    <td>2</td>
  </tr>
  <tr>
    <td>3</td>
  </tr>
</table>
Borzoi 24 Posting Whiz

You post in a forum topic entitled "You know you are old when..."

happygeek commented: :) +0
Borzoi 24 Posting Whiz

Just so you know, you aren't closing your form tag in the first page.

I don't believe you can POST the value of a button. It would probably be better to have a check box saying "include responsible?" before the "Submit" button.

Borzoi 24 Posting Whiz

Even if you have the font, anyone viewing your site will need to have the font installed on their computer to be able to view it.

To use the font though, find out what it's displayed as (in Word for example) then in the CSS you would put font-family: font name;

Borzoi 24 Posting Whiz

I came across a siuation tat i need to store multiline inputs with paragraps. and i need to insert ( ' ) symbol in sql db thro php. I'm a newbie canany one help??

I used multiline textbox for input. It successfull get inserted to db but when i qurey back, it comes as a single line.

You should start your own topic to get the help you need.