Matt Maclennan's Profile
Reputation: 2
Neutral
- Group:
- Members
- Active Posts:
- 63 (0.08 per day)
- Joined:
- 17-March 10
- Profile Views:
- 2,300
- Last Active:
Mar 26 2012 07:06 PM- Currently:
- Offline
My Information
- Member Title:
- Forum Newcomer
- Age:
- 20 years old
- Birthday:
- December 7, 1991
- Gender:
-
Male
- Location:
- Gravesend, Kent
- Interests:
- Web Design, hand coding, photo editing, troublewhooting
Contact Information
- E-mail:
- Click here to e-mail me
- MSN:
-
mattmaclennan@live.co.uk
Users Experience
- Experience:
- Intermediate
- Area of Expertise:
- Web Designer
Latest Visitors
-
Ashley- 
30 Jan 2012 - 18:25 -
antivoidmon 
01 Dec 2011 - 11:45 -
Weeeb Store d... 
19 Oct 2011 - 03:41 -
cab322003 
01 Mar 2011 - 20:51 -
Circles 
03 Oct 2010 - 22:51
Topics I've Started
-
PS "Save for Web" automatically resizing image
19 March 2012 - 10:23 PM
Hi guys!
Trying to save slices of an image, sized 12800 x 600. I need to make 16 slices which are 800 x 600. When I put it into "Save for Web and Devices", it gives me the usual warning about file size (I know the purpose of "Save for Web and Devices, however, need to save these slices), then it automatically resizes my image to 64%.
Any method to combat this? Or any other way to save slices?
Regards
Matt -
Interview Advice
30 January 2012 - 04:48 PM
Hi Guys!
Seeing as you all (or most) of you are working for a company doing some sort of Web Work, or own a Web Design company and conduct the interviews. I would like to ask what the interview process is like?
Need advice as I have an interview soon for an Undergraduate Placement.
Thanks! -
Advice on an "Assessment Day" for a sandwich year placement
27 January 2012 - 09:24 PM
Hi guys!
I have applied for a Marketing Placement at a company, and they have got back to me and invited me to an Assessment Day. Anyone have any advice? Any experiences of these? Any HR people or anyone on here been involved in the interview process? Any advice would be great for the day!
Thanks!
-
User role inserted into comments section instead of User Name
20 January 2012 - 06:47 PM
Hi Guys!
I am currently doind a comment board for a PHP page, and the problem is, now that I have assigned numbered roles (1 being a normal user) it is outputting the role number instead of the user name. Below image shows what I mean...

Comments page code:
<?php session_start(); ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Digispace - Level up with us!</title> <link href="global.css" rel="stylesheet" type="text/css" /> </head> <body> <div id="header"></div> <div id="wrapper"> <div id="links"> <a href="index.html"><img src="images/header_01.png" width="133" height="50" alt="logo" style="float:left; margin-top:-15px; padding-right:70px;" /></a> <ul id="menuLinks"> <li><a href="games.php">Games</a></li> <li><a href="login.php">Login</a></li> <li><a href="register.php">Register</a></li> <li><a href="contact.html">Contact</a></li> </ul> </div> <p> <div id="left"> <? include 'dbconnect.php'; $game_ID = $_GET['id']; $_SESSION['id'] = $game_ID; $output = mysql_query("SELECT * FROM game WHERE game_ID = '$game_ID'"); $image = mysql_query("SELECT imageUrl FROM game WHERE game_ID = '$game_ID'"); $alt = mysql_query("SELECT gameName FROM game WHERE game_ID = '$game_ID'"); $row2 = mysql_fetch_array($image, MYSQL_ASSOC); $row3 = mysql_fetch_array($alt, MYSQL_ASSOC); echo "<table border='0' id='games'>"; while($row = mysql_fetch_array($output)) { echo "<tr>"; echo "<td></td>" . "<td><h1>" . $row['gameName']. "</h1></td>"; echo "</tr>"; echo "<tr>"; echo "<td>Platform:</td>" . "<td>" . $row['platform']. "</td>"; echo "</tr>"; echo "<tr>"; echo "<td></td>"."<td>" . $row['description']. "</td>"; echo "</tr>"; } echo "</table>"; include 'close.php'; ?> </p> </div> <div id ="right"> <img src="<?php echo $row2['imageUrl']?>" alt="<?php echo $row3['gameName']?>" /> </div> <div id="bottom"> <p> <a href="games.php">Back</a> </p> <h3>Comments</h3> <? include 'dbconnect.php'; echo "<table border='0' id='comments'>"; if(session_is_registered('user')){ echo "<form action='commentPost.php' method='post'>"; echo "<tr>"; echo "<td style='vertical-align:top;'>Comment</td><td><textarea name='comments' cols='30' rows='10'></textarea></td>"; echo "</tr>"; echo "<tr>"; echo "<td></td><td><input name='submit' type='submit' value='Submit' />"; echo "</tr>"; } else { echo "<p>Login to post your own comment on the game!</p>"; } echo "</table>"; include 'close.php'; ?> <br /> <? include 'dbconnect.php'; $comments = mysql_query("SELECT * FROM comments WHERE $game_ID = page_ID"); echo "<table border='0' id='commentsOutput'><th width='15%' class='commentsHeader'><h3>User Name</h3></th><th class='commentsHeader'><h3>Comment</h3></th><th class='commentsHeader'></th>"; while($row4 = mysql_fetch_array($comments)) { echo "<tr>"; echo "<td>" . $row4['userName'] . "</td>"; echo "<td>" . $row4['comment'] . "</td>"; if(session_is_registered('admin')){ echo "<td>"."<a href='deleteComment.php?id=" . $row4['comment_ID'] . "'>Delete</a>"."</td>"; } echo "</tr>"; } echo "</table>"; include 'close.php'; ?> </p> </div> </div> </body> </html>
Insert comment page code
<? session_start('id', 'userName'); ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Digispace - Level up with us!</title> <link href="global.css" rel="stylesheet" type="text/css" /> </head> <body> <div id="header"></div> <div id="wrapper"> <div id="links"> <a href="index.html"><img src="images/header_01.png" width="133" height="50" alt="logo" style="float:left; margin-top:-15px; padding-right:70px;" /></a> <ul id="menuLinks"> <li><a href="games.php">Games</a></li> <li><a href="login.php">Login</a></li> <li><a href="register.php">Register</a></li> <li><a href="contact.html">Contact</a></li> </ul> </div> <p> <div id="left"> <? include 'dbconnect.php'; $userName = $_SESSION['user']; $comment = $_REQUEST["comments"]; $game_ID = $_SESSION['id']; $query = "INSERT INTO comments (userName, comment, page_ID) VALUES ('$userName', '$comment', '$game_ID')"; mysql_query ($query); echo "Thanks, your comment has been added!"; include 'close.php'; ?> </div> </p> </div> </div> </body> </html>
Any ideas will be great, and +1'd! Sorry if that is a bit long winded!
Thanks!
Matt -
Comments section when PHP generates page
27 November 2011 - 07:43 PM
Hi guys!
I need to code a comments section for the games on my website. I know how to do this, however, I'm not sure how to make comments specific to the PHP generated id page. Here is a link so you can get the full picture...
The Site
In terms of the Database...
Table Name: comments
Columns: comment_id, comment
Any advice would be great!
Matt
Help




Find My Content
Display name history
Comments
Ben
17 Mar 2010 - 21:15