mattster 195 Practically a Master Poster Featured Poster

I am expletive 99% of the time.

I would never have guessed lol, and so glad you're not banned!!

mattster 195 Practically a Master Poster Featured Poster

Example? Source code? Links/demos?

Come on try a bit.

mattster 195 Practically a Master Poster Featured Poster

Are you sure $_GET['id'] is set and is the correct value, so we have a valid $query_UA?

I think that <a href="member_profile.php?id=' .$row_UA['id']. '">' .$row_UA['username']. '</a> is being echoed successfully (as logout is visible), but there is no value for $row_UA['username'] so you end up with:

<a href="member_profile.php?id="></a>

This of course, will not be visible and would explain your problem.

mattster 195 Practically a Master Poster Featured Poster

Yep I have a router (to which both PCs are connected) and that is connected to a modem and the internet.

Thanks very much @JorgeM, so will i have to use port forwarding even if I dont want to access it from the internet, just within a local network?

Thank you!!

mattster 195 Practically a Master Poster Featured Poster

moat

mattster 195 Practically a Master Poster Featured Poster

fool

mattster 195 Practically a Master Poster Featured Poster

So the game works like this:

We start with a word, and each person must change that word. You must change one letter only, and you may not add or remove letters.

For instance: fame -> game -> gate

We'll start with the word tool

mattster 195 Practically a Master Poster Featured Poster

a pilot who's scared of flying

mattster 195 Practically a Master Poster Featured Poster

thanks

mattster 195 Practically a Master Poster Featured Poster

The other week I saw The Inbetweeners 2, very funny but for a very select sense of humour!

mattster 195 Practically a Master Poster Featured Poster

here are many fine looking geek girls

I found that at uni - I was very very happy where I was for 4 years ;p But at first I had exactly the same problem as @Diafol...

My last year was the most stressful thing of my life, having been given a chance of a lifetime at uni, I had to work extremely hard.

Just meant that as soon as we got our results we could party very hard at prom ;)

mattster 195 Practically a Master Poster Featured Poster

To transfer the data:

After redirect (probably using header("Location: lala.php");) you will need to use sessions.

At the top of your code above and on lala.php, place session_start().

## Repalce this

while($row = mysql_fetch_array($result, MYSQL_ASSOC)){
     echo $row['username'] . " " . $row['userrole'];
        echo "<br>";
}

## With this

while($row = mysql_fetch_array($result, MYSQL_ASSOC)){
     $_SESSION['username'] = $row['username'];
     $_SESSION['userrole'] = $row['userrole'];
}

Then on lala.php use this code:

<?php
session_start();

echo $_SESSION['username'] . " as " . $_SESSION['userrole'];

?>

You can refine this code alot more, so it's merely a starting point.

mattster 195 Practically a Master Poster Featured Poster

So how do I setup the firewall so I can access it internally (without everyone on the internet getting access)

Thanks very very much!

mattster 195 Practically a Master Poster Featured Poster

Aha lol exactly ;)

mattster 195 Practically a Master Poster Featured Poster

Heres something based on what we've said so far:

if(is_Array($Players)){
    foreach($Players as $Player) {
        $option = htmlspecialchars($Player['Name']);
        echo "<option>". $option."</option>";
    }
}

Neaten your code up and make it consistant.

The above should solve your problem, if not, check that $Players array contains the correct variables.

mattster 195 Practically a Master Poster Featured Poster

Game over

The game is over when I win.

mattster 195 Practically a Master Poster Featured Poster

Only 4% of the energy in a standard light bulb is light, the rest is heat

West Virginia (USA) holds an annual "Roadkill Cook-off"

Abraham Lincoln's Gettysburg address was only 237 words long

A typical bed houses over 6 billion dust mites

.. could go on forever ..

  I pick up a lot of useless junk aha
mattster 195 Practically a Master Poster Featured Poster

Maybe Disney will throw all of their money in, hijack George Lucas' ideas and come up with a bloody good film?

Or not lol

mattster 195 Practically a Master Poster Featured Poster

Hi there!

mattster 195 Practically a Master Poster Featured Poster

Hi there!

mattster 195 Practically a Master Poster Featured Poster

https://www.copy.com/home/

Works great for me, not too sure how it'll do for your requirements but take a look!

<M/> commented: i am gonna look into that. +10
mattster 195 Practically a Master Poster Featured Poster

<?php print '<img src="uploads/'.$session_id.".".$ext'" />' ?>

A file extension would be a good idea, so assuming (as @pirateas has said) $session_id = $student_id, and you have an image saved in uploads/{student_id}.{extension}, all of that looks fine.

mattster 195 Practically a Master Poster Featured Poster

First Point:
Well what the hell am I meant to solve if I don't even know what the error message is?
echo "<option><?php echo htmlspecialchars( $Player[ 'Name' ] ); ?></option>"; isn't good enough my friend.

Second Point:
Can you provide some source code of report.php and give us a bit of a hand here?

Put some effort in.

mattster 195 Practically a Master Poster Featured Poster

Hi There,

This comes under a few forums on DaniWeb, so I've guessed and posted it here...

I have two computers, both connected to the internet and running Windows 7 (Home Premium + Professional).

One is my main one, the other is one I do not use.

If I installed say, SQL Server, on the old machine, is there a way of connecting them together so I can access the databases via C#?

Thanks guys,
Matt

mattster 195 Practically a Master Poster Featured Poster

Sorry my bad, meant is_null()

mattster 195 Practically a Master Poster Featured Poster

<iframe marginheight="0" marginwidth="0" src="http://maps.google.com/maps? ... &ll=50.954966,0.493012&spn=0.018615,0.021458 ... output=embed" frameborder="no" height="500" scrolling="no" width="500"></iframe>

Change ll so ll=-YourLat-,-YourLong

So the end code would be like:

<?php
$src= "http://maps.google.com/maps?f=q&hl=en&amp;geocode=&q=&amp;ie=UTF8&om=1&amp;&s=AARTsJpQqM3ktaXD4q9ItwThgIRSOtr4zg&ll=".$row[1].",".$row[2]."&spn=0.018615,0.021458&amp;z=9&iwloc=A&amp;output=embed";
?>
<iframe marginheight="0" marginwidth="0" src="<?= $src ?>" frameborder="no" height="500" scrolling="no" width="500"></iframe>

And do you mean the user will look at a map, and every now and then it will change? (if so, we'll have to sort you out with AJAX)

mattster 195 Practically a Master Poster Featured Poster

Looks really good, thanks!!

mattster 195 Practically a Master Poster Featured Poster

Hi there!

mattster 195 Practically a Master Poster Featured Poster

Welcome!

BTW: rally like your username!

And it's 100% because you haven't given us reason to think anything else, yet.

mattster 195 Practically a Master Poster Featured Poster

Try using the JS forum mate. Will get alot more help then.

mattster 195 Practically a Master Poster Featured Poster

Use a javascript/jQuery function: Click Here

You will just have to adjust the selectors to suit your needs

mattster 195 Practically a Master Poster Featured Poster

Font Awesome, as the name suggests, is a font library of SVGs, so behaves very differently.

Ideally you want to actually use font awesome for something like a plus icon. If not, you can look at things like this: click here (scroll down to the bit about inline SVGs.

Things get very complicated doing everything this way, so I really suggest using the Font Awesome library (and if you've got problems with that, they're probably much easier to fix!!)

mattster 195 Practically a Master Poster Featured Poster

^^ As he's posting in the PHP forum hopefully its PHP he's using lol ;)

<?php

function YourFunctionsName ($string)
{
    if (substr($string, -1) == ','))
    {
        echo $string;
    }
}

?>

You can use regex, but it would look like if (preg_match('/,$/', $string)) and this to me is a bit of an overkill

mattster 195 Practically a Master Poster Featured Poster

Why not use this:

<iframe marginheight="0" marginwidth="0" src="http://maps.google.com/maps?f=q&hl=en&amp;geocode=&q=&amp;ie=UTF8&om=1&amp;&s=AARTsJpQqM3ktaXD4q9ItwThgIRSOtr4zg&ll=50.954966,0.493012&spn=0.018615,0.021458&amp;z=9&iwloc=A&amp;output=embed" frameborder="no" height="500" scrolling="no" width="500"></iframe>

Taken from here

Replace the &ll=50.954966,0.493012 bit with &ll=<?php echo $row[1].",".Row[2];?>

Then just echo out all of your other information and variables as normal :)

mattster 195 Practically a Master Poster Featured Poster

Have a go with Bootstrap to get your popup.

Then you need some PHP (and MySQL) to set out your database, insert and extract from it. You want a PHP server and a MySQL database setup to hold a column for each piece of data you want to store.

So try getting that setup, then we can write some simple PHP SQL SELECT and INSERT queries to get the data in and out.

Have you any web/server-side development experiance?

Matt

mattster 195 Practically a Master Poster Featured Poster

No worries, please up-vote and mark solved :D

mattster 195 Practically a Master Poster Featured Poster

Your link sends my antivirus awol. 'Dangerous Site'.

Would be helpful to get that fixed.

mattster 195 Practically a Master Poster Featured Poster

If the file existed in the right place and was filled with correct content, it would display fine.

Your code above is unclear, if you are presumably wanting to view the content of a file use file_get_contents($url_to_file);. You might need to expand on your objectives if you want more help.

mattster 195 Practically a Master Poster Featured Poster

Train stations are where trains stop, workstations are where the work stops!

Magnets will attract or repel. The Earth has a huge magnetic field. So why dont some magnetic objects get fired into space like missiles because they're repelling Earth?

mattster 195 Practically a Master Poster Featured Poster

Make sure you are running PHP on your server:

## index.php ##
<html>
    <head>
    ...
    </head>
    <body>
        <?php
            include('menu.php');
        ?>
    </body>
</html>


## menu.php ##

<ul>
    <li>...</li>
    ...
</ul>
mattster 195 Practically a Master Poster Featured Poster

Something like this?

<?php 

if(!not_null($result[0]['Heamogram_26']) || !not_null($result[0]['Heamogram_25']) !not_null($result[0]['Heamogram_24']) || ...){
    echo "disabled='disabled'";
}

?>
mattster 195 Practically a Master Poster Featured Poster

Hi there!

mattster 195 Practically a Master Poster Featured Poster

Couldn't get out of there fast enough eh?

Aha pretty much ;p

University isn't something I bothered with I'm afraid

Fair enough, far too expensive lol

mattster 195 Practically a Master Poster Featured Poster

Hi there!

mattster 195 Practically a Master Poster Featured Poster

Welcome ;)

mattster 195 Practically a Master Poster Featured Poster

He might do, I wouldn't know where he'd put them ;) I'll ask aha

mattster 195 Practically a Master Poster Featured Poster

Granted. Then you have to talk like it forever and everyone thinks you're strange.

I wish I could breathe underwater as well as on land.

mattster 195 Practically a Master Poster Featured Poster

You'd be board of pasta lol

How can you have a shooting star without a gun?

mattster 195 Practically a Master Poster Featured Poster

Strongly advise to use CSS3, as it is very commonly supported (enough for Facebook and Twitter) and works like a dream.

Also much faster load times, less file space and less bandwith.

mattster 195 Practically a Master Poster Featured Poster

A Formula 1 world-class racing driver who hasn't passed his driving test