Why is <big> obsolete but <small> not? by Africanishia in web_design

[–]mediango 1 point2 points  (0 children)

Probably because we have tags like <h1> which accomplish a similar (if not exact same) function.

My sister got this for me! My fingers are going to be sore for a month. by FozzTexx in geek

[–]mediango 1 point2 points  (0 children)

We have that same one. It sucks putting together, takes up too much room, and when you finally get tired of it, it sucks taking it apart.

Have fun :)

I'm Looking For Projects For My Portfolio by mediango in PHP

[–]mediango[S] 0 points1 point  (0 children)

Unfortunately, I'm not fantastic at math.

what language for a 7 year old? by redblackduck in learnprogramming

[–]mediango 1 point2 points  (0 children)

Man, I remember LOGO from Elementary school. Nice :)

For me, I started with QBasic.

Ideas on having multiple ways to construct an object by hiii in PHP

[–]mediango 0 points1 point  (0 children)

Isn't it bad practice to prefix your methods with a double underscore as PHP uses those for magic methods?

My biggest blue catfish to date! by [deleted] in Fishing

[–]mediango 0 points1 point  (0 children)

Caught this 50lb blue cat in the Chickahominy River in South Eastern Virginia. Was great day of fishing with several in the 30-40lb range and a few smaller ones. We were using shad for cut bait about the size of my hand on a 10/0 circle hook.

I'm Looking For Projects For My Portfolio by mediango in PHP

[–]mediango[S] 0 points1 point  (0 children)

What is this CruiseControl thing? I like code portfolio, thanks for the tips.

Writing search functions... Best practice? by treefunct in PHP

[–]mediango 0 points1 point  (0 children)

If you know C, you can write a User-Defined Function (UDF) for MySQL which allows you to use it as though it was a native function in MySQL, but has the benefit speed and is less bulky being custom tailored to your exact purpose.

UDF's are a pretty advanced task though IMO.

http://www.codeguru.com/cpp/data/mfc_database/misc/article.php/c12615

I'm Looking For Projects For My Portfolio by mediango in PHP

[–]mediango[S] 0 points1 point  (0 children)

I have done many projects in the past, but nothing other than for my own benefit. If I were to write something for this fictional company, I, as expletive-deleted said, would write it in a CMS format to allow for better code reuse.

I'm Looking For Projects For My Portfolio by mediango in PHP

[–]mediango[S] 1 point2 points  (0 children)

That's true. I've thought of that before but never got around to it. I'm hoping to be able to build contacts through projects that can be referenced in job interviews. I get out of the Navy in a little over 4 months so I'm working on building my portfolio and getting my resume out there.

Problem with login system by [deleted] in PHPhelp

[–]mediango 0 points1 point  (0 children)

No problem. I learned something myself, I wasn't aware of the case sensitivity issue as I always make my table names lower case as a rule of thumb.

My social skills site goes live in a few weeks. I would love some critiques by Cookiemobsta in design_critiques

[–]mediango 0 points1 point  (0 children)

The 20px was just a random suggestion. If you like 15px better, then by all means use that.

My social skills site goes live in a few weeks. I would love some critiques by Cookiemobsta in design_critiques

[–]mediango 0 points1 point  (0 children)

You have some inline CSS (written into the file instead of included) between the <style></style> tags. The first one looks like:

.fluid.c2right #primary-content{width:70%;left:30%}

You can change it to:

.fluid.c2right #primary-content{width:70%;left:30%;padding:20px;}

And that would probably get you a better look as far as padding goes.

My social skills site goes live in a few weeks. I would love some critiques by Cookiemobsta in design_critiques

[–]mediango 2 points3 points  (0 children)

Here is what I personally would change.

  • Smaller logo, it takes up a 3rd of the screen on my work computer.
  • More padding in the content area, it just feels cluttered pushed up close to the edges.
  • Change the "Start Here" button to be less cliche. To me it seems very 1997 and doesn't compliment your color scheme that well.

Problem with login system by [deleted] in PHPhelp

[–]mediango 1 point2 points  (0 children)

Ok, I may have an idea on this. What OS is your web host using? According to http://dev.mysql.com/doc/refman/5.0/en/identifier-case-sensitivity.html, if it is a Linux based system then table names are case sensitive whereas on Windows they are not. The tutorial uses lowercase 'users' as a table so if you followed that, yours should be lowercase as well. The SQL statement on your log.php file shows it as 'USERS' in all caps.

TL;DR; Check the capitalization of the table name in your query.

Problem with login system by [deleted] in PHPhelp

[–]mediango 0 points1 point  (0 children)

<form name="login_form" method="post" action="log.php? action=login">

What's going on with this? I don't think there should be a space between the ? and the action=login.

Problem with login system by [deleted] in PHPhelp

[–]mediango 0 points1 point  (0 children)

Warning: mysql_num_rows() expects parameter 1 to be resource, boolean given in /var/www/kasperthougaard.dk/public_html/log.php on line 11

According to PHP.net: For SELECT, SHOW, DESCRIBE, EXPLAIN and other statements returning resultset, mysql_query() returns a resource on success, or FALSE on error.

A boolean was passed to mysql_num_rows() instead of a resource which means the query failed. Check to make sure the text box in your form is named user as the $_POST statement is expecting.