i was very fortunate that i had over 15 years experience when i was working on my BA and MS degree. I think working on your education and in your field at the same time is definitely more effective than doing either individually.

Good luck with your study group but you shouldnt have to limit yourself to your city. There is enough technology out there where you can collaborate and even connect your labs over the internet without too much difficulty.

i not sure what you are tyring to do by hidding it, but if the problem is related to display: none, then try setting the position to "relative", then move it off of screen by using "left: -99999px".

"Foto" in spanish, italian, catalan, etc.. means Photo. The OP refers to image therefore, the assumption is that we are talking about uploading a picture.

it could be a picture of goat cheese though.

I dont see any PHP code and your form action attribute is blank. You need to include the name of the php page that will handle the processing of your form submission.


<form action="fileUpload.php" method="post" enctype="multipart/form-data">

Then on the PHP page, extract the data that was included in the post and process accordingly.

. i want to upload image with hide input type file but doesnt work

please clarify what you are trying to do. I dont understand the logic/worklow

Maybe providing some relevant code will help.

Just build the link and include a query string parameter that you can retrieve on the target page. For example..

 echo "<td><a href='single-post-page.php?post=" . $row['ID'] . "'>";

On the target page, retrieve the value passed.


If you take a look at the soure of the page and find the element where the video is being played from, you'll see that the source of the videos comes from ytapi[.]com. maybe there are doing some type of proxy/streaming because i cant beleive they would have all of those videos downloaded on their servers, but who knows. that's my guess.

I have seen several posts through the years with questions about navigation menus. Menus can be built using different approaches. This example is easy to build and simple to integrate with your site. The menu is built only using HTML and CSS so you don't have to have a lot of web development experience, and still enjoy a nice and clean navigation menu on your site.

A working demo can be found on JSFiddle.net

With some minor updates, you can easily change the size and color of the items.


DaveAmour commented: Excellent and so muhc better than all that nasty JavaScript +8
diafol commented: Nice example with useful fiddle +15
AleMonteiro commented: Simple and useful +8

ah, hate those days..

not that it would help anything on your list, but i'm a minimalist. I try to achieve a deeper level on a daily basis. the more you have, the more energy required to keep things managed (physically, emotionally, mentally). the less you have, the more energy and time you have for those things in your life that you really value.

i'd keep the wine though. it helps get you through those situations.

How are you displaying these records? Are you using a web application?

first, please present your code in format that is easier to read. I edited your post because it was very difficult to even look at your code.

next, for the benefit of people trying to help you, provide some information and details, such as what error message do you see on the screen? What are you trying to do?

then, other members here can take a quick look and provide you with guidance.

definately keep it as an integer. to add pritaeas suggestion, you can display it as a string by adding the leading zeros..

int num = 1;
Label1.Text = String.Format("{0:00000000}", num);

Yes, i'd use those two variables. THere are more if you want to try to collect other info..


im not really php developer, more like a php noob, but this is how i basically collect the same info in asp.net

mattyd commented: Thank you! +8

if you get rid of the try..catch block, asp.net should provide you with the actual error. At the moment, you are seeing that message because an error is causing the catch block to execute.

You need to enclose your style values in quotes.

<div style="property:value;property:value">

It sounds like while the instructor's focus here is on placing the values of the image source in an array and then access them via a loop of some sort. There are a variety of options here. Do you need to use plain JS or are you able to use jQuery?

For me, what comes to mind is something like this if I'm using jQuery.

<img src="dessert1.png" class="slideImg">
<img src="dessert2.png" class="slideImg">
<img src="yummy.jpg" class="slideImg">

  $( ".slideImg" ).each(function() {
    console.log($(this).attr("src") );

You should go back and get clarification regarding the expectation. If i was teaching the class, i think i'd ask for JS if the focus here is arrays and loops. I dont see the challange if you are using jQuery.

In addition, while that will fix the sytnax error, the other problem that you should address is that your approach exposes you to SQL injection. Use parameterized queries instead.

What do you mean supposedly? If you aren't sure how is anyone less going to know?

You need to get a clear understanding of what the requirement is, then give it a try and for the issue(s) you run into, post your relevant code you are having trouble width. This can be done client or server side so it depends on what you need it to do.

Great reference DaveArmour.

If the router does not support this, this alternative is to simply access the internal host for within the internal network using its internal IP instead of the external WAN IP or you'd have to get a router that supports this feature. Some do, and some don't provide this support.

@wojciech1 - nothing else better to do than post this nonsense? Having a good time trying to irritate other people?

@sdtechi - regarding your comment about rubberman. First, you come across as being very rude and arrogant. Second, I guarantee you that rubberman has a lot more knowledge about networking that you do and I don't even know him personally.

If you understood that these models are purely conceptual, you wouldn't be asking these questions. The number of layers isn't really that important. The idea behind the models are to illustrate where and how protocols are related to one another in the TCP/IP communication process. The layers also provide a way to organize similar protocols that perform a similar service.

hello and welcome.

The expense generaly depends on the level of reliability that is required. What you described can work to host a web page, but you arent factoring in other components such as load balancing, fault tolerance or disaster recovery. When the $3 fan in that system you described fails, it will bring down your system in a matter of minutes. Not a very good design for a system that services millions of pages per month.

As you try to reach 4-5 9's (99.99%-99.999%) of availability, the cost increases exponential.

Hello and welcome.

THe whole "echo" stuff is very hard to maintain.

PHP is not my thing, but I always wondered why plain HTML is being echo'd in PHP. I mean i could see the point if you were building a table or a list from a data source, but for "non-dynamic" data..??.. Why not just include the HTML without the echo. I dont get it.

I wouldnt recommend saving the zip code as an interger either. The information in a zip code isnt going to be used in any type of arithmetic. The zip just happens to be using numbers as its characters. I'd store the zip in char (if you are absolutely sure of the length) or varchar (if you are collecting zip codes from different regions that may have different lengths) as well. I dont think that the benefit of storing it as an integer (space and handling) justifies the use of integer here.

With regards to displaying the 5 digits, you can pad it with leading zeros either by your SQL statement or in php.

For example, if you are using MySQL, your SQL statement could look like...

SELECT LPAD(zip, 5, '0') as zipcode FROM table;

Take a look at your SQL query. Are you referencing a field in your SELECT statement that is not defined in the table(s) in your FROM clause? Maybe you are treating that email address as a field instead of a string?

Hello and welcome.

When users interact with your web page and processes, it is important to provide them with continuous feedback. Without the feedback, a user is left wondering if you page is actually processing work, frozen, or just not working. This is especially true when incorporating Ajax requests that take more than a few seconds for the process to complete successfully.

For this reason, you will find that "spinners" or "progress bars" are used to display what seems to be the browser performing some work in the background. In reality, all that is really happening behind the scenes is that the web page is displaying some type of animation. Once the process is completed, the animation should be hidden on the page.

In many cases, you will find that if you use an animated GIF, the animation can encounter "freezing". There are some options you can implement to try to adress the freezing, but I have been using a better solution for quite some time. Rather than using a image based spinner, I now incorporate a JavaScript based spinner instead. Actaully, what I call a JavaScript spinner is a combination of JavaScript, and CSS leveraging Keyframes. This JavaScript spinner is also very consistent across the most common browsers being used. I've found that it is a "hit or miss" when using an image based spinner.

Fortunately, there is a great project availabe called spin.js which makes it very easy to incorporate this type of spinner in your web pages. You can even ...

cereal commented: nice! +13
DaveAmour commented: Looks good +5