Hey, im not sure if this is javascript, but i thought it would be (if anyone knows a better Cross Browser compatible way, let me know...)
Image if you will a blog entry, and at the end of the actual paragraph, you have pictures. Now the paragraph and <img> tags are all saved in the same field in the database, so when you loop through the query and print out the the content, the pictures load too. The pictures are always at the...
User Profile
Collapse
-
Put pictures on a new line.
-
yeh, looks like you left out a </tr> tag. -
Try this...
Add this line to your form.
[HTML]<input type="hidden" name="i" value="<?=rand( )?>">[/HTML]
now pass "i" into the url. The rand() will generate a random number every time the page is loaded. When it gets passed in the url, the browser will not cache the photo because it will think its a new page because the url keeps changing (thanks to the...Leave a comment:
-
recordlovelife started a topic How do i control a "foreach" loop when it is inside a "while" loop? (uses smarty)in PHPHow do i control a "foreach" loop when it is inside a "while" loop? (uses smarty)
So I am trying to display a title, date, and content of a wordpress blog. Word press provides nice drop in functions to get the job done with simple names like "the_title" , and the "the_conten t" But on the homepage of a site, i wanted to truncate the content to like the first 75 characters and then put "..." (a perfect use of the smarty "truncate" modifier) and then give the visitor a link to read the whole... -
OP? alright now im just lost, the encoding step was working fine. And i understand to decode i'd have to reverse the encode list, so it check for encode matches and gives a decode return.Leave a comment:
-
That does make senses actually. My problem is I keep getting error messages based on what way I go about it.
I will be going the funtion route with this.
Like so...
string huffmanDecode(s tring huffmanCode)
Now here is the idea of what I want
(Pardon the crappy code, im typing this from my phone)
Code:huffmanDecode(string huffmanCode){ Int i=0; While (i<huffmanCode.strlen();){
Leave a comment:
-
Huffman Code Decoding Problem
So i have written a code to encode a string of a select amount of letters into huffman code.
Code:#include <iostream> #include <string> using namespace std; string Huffman(char letter); string Huffman_word(string word); string Huffman_code(int code); string word; int main() { string word; cout<<"Please
-
My problem isn't making a music player. It how to keep my music player playing when someone clicks a new link on the page. This is cause the player to reload (interupting the player)....Leave a comment:
-
Can I use AJAX to keep a musicplayer on a site?
Hello all, thanks in advance -
I want to put a music player on a site, I will make it in flash.
The site is in a LAMP environment. I want to have the music player in the main navigation section. My issue, I do not want to have the music player be reloaded everytime you click a new link. And I don't want to use frames in the site, and i don't want to use flash anything other than the actual music player (no flash made website)... -
-
ok, so i looked into what you two were both saying, but i cant seem to get it to work. I understand that if i simply call the name of the file input "uploaded[]", it will enter the file names into and array.
so this is what is printing the form for me: [PHP]
$max_no_img=5;
echo "<form method=post action=postnews .php enctype='multip art/form-data'>";
echo "<table border='0'...Leave a comment:
-
How can I have PHP identify $POST values.
I have a photo uploader for a client. It's a simple input file button.
But they wanted to be able to add more than one picture.
So, when the client clicks the "add another picture?" button, I used javascript to clone the initial input button, and then used a counter to increase a digit in the name. I.E:
First input buttons name => name="uploaded1 "
When Client Wants... -
recordlovelife started a topic How to tell if my server provides ASP hosting ability.in ASP ClassicHow to tell if my server provides ASP hosting ability.
So i want to learn ASP, i go to a tutorial...I'm uploading the "hello world" initial file, but the web page is blank (although it does have the <title></title> i provided)
Here is the code, so basic....
Code:<body> <% Response.Write("Hello World!") %> </body>
Code:<%@LANGUAGE="JAVASCRIPT"
-
-
Without spoon feeding you the answer, why don't you just google "php back button", i found a good answer in the first post that shows up.
What you should do, for the back button, is find out how you can pass the url or the last page you are on (ex. "index_1.ph p") to the next page you go to ("index_2.php") . Then set some variable...
[PHP]$lastpage = index_1.php[/PHP]
then...Leave a comment:
-
-
Help Using Checkboxes to delete MySQL Rows.
Hey guys, ill try to make this simple. I want to make a GUI for a client so that they can delete news entries that they have posted. I figure I can code a site that will query the table for the news and post the titles of all of the news entries, and put a check box next to each one. The name of the check box will be the id number of the row in the MySQL table where the news entry is located. So if they click a check box, when they hit submit, it... -
#dateinfo ul{
float:right;
margin:0;
padding:0;
}
that fixed it for me in Safari and FFLeave a comment:
-
in Safari, it fixes it. I just saw though, that in FF it doesn't. Ill keep pokin'....Leave a comment:
No activity results to display
Show More
Leave a comment: