-
Keeping everything in a span on one line
I have several span tags inside a div. The spans contain anywhere from 1 to 3 words. How do I keep all of the words in a single span on one line? If it is too long to fit, I need it to all be on the next line.
-
getting a file's creation date
I have a php script that reads an image directory and saves the image names in a database. Is there a way I can get all of the files creation dates and time and save them to a variable?
-
Using array names in html forms
I don't see how that is going to work since it's in a loop. I should have put that "36" as $x. When it's in the loop, it's got to be set in some sort of array.
-
Using array names in html forms
I have tried everything I can think of to use to get array names in a form name. Either I am using the php code wrong to execute them or how I'm putting them in just isn't right. I'll give an example. I pick out the songs each week at church for service. I keep all of the songs we sing in a database and I change the date we sing them. If I pick out 6 songs and change the date, I have to do it one at a time with over 100 forms and submit buttons. I'd like each song to have its own if where I have something like $date[1], $date[2] etc. Then when I submit it, it will change all with one submit. I have a different page that has many more pieces of data that I have set to 100 per page. Therefore, each will have a different id attached to it so I use a counter $x. When I try to set this up as name = "$name[$x]" it doesn't work. I am using the escape with the "". I have changed it around so much that I'm probably repeating myself now. How do I set this up? What I currently have looks something like this. echo "Title<input type=\"text\" name=\"shortDesc[$x]\" size=\"40\">\n"; I've tried several ways to get the submitted data. Here's one of many. $shortDesc = $_POST['shortDesc']['$x']; echo $shortDesc
-
Inspecting Images
I've created this to get the size of several images I have in a directory.... $image = file_get_contents("$fileLocation"); $source = imagecreatefromstring($image); $width = imagesx($source); $height = imagesy($source); echo " width : ", $width, " $nbsp; height : ", $height, "<br><br>"; When it gets to an image with a name that has a space in the name, it gives me an error.... Warning: imagecreatefromstring(): Data is not in a recognized format in /setupdb.php on line 23 Warning: imagesx() expects parameter 1 to be resource, boolean given in /setupdb.php on line 25 Warning: imagesy() expects parameter 1 to be resource, boolean given in /setupdb.php on line 26 What do I need to add to get it to read them better?
-
How does Pinterest copy images from other sites to theirs?
I have a web site that I want my pictures copied easily from a site something like dropbox where I can look at all of my images but not really download them other than one at a time. How do I copy them over? Is there a php command or something that will do this?
-
getElementById
Yes, because each page is different and my have one, two, or twenty or more.
-
getElementById
I have a function that uses getElementById and it has been working great. Now I have a page where I call it more than once on the page. The first one works but the rest don't. What do I need to do to make multiples work on one page?
-
Responsive Menu
The pictures on the home page aren't extremely large? Even though I have them set to be smaller on the phone.
-
Responsive Menu
I've created a responsive menu that works great on a "resized" computer browser. Doesn't work on my phone. What gives? aspecialspot.com
-
div margin
There is still one pixel left. How do I get rid if it? Nevermind. Got it.
-
div margin
Also, my content area isn't filling again. Edit: Got that part.
-
div margin
Why did the creators of the css world not make a margin 0 actually be 0? I'm still having trouble with a margin-bottom:0 and a margin-top:0 not be margins of 0. I guess logic wasn't something they were considering. If you look on my vacation guide page, there's a big gap between the top nav and the main content.
- div margin
-
div margin
That took most of it out. Now there's about 2 px still there.