Jump to content

pachelbel101

Members
  • Posts

    11
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

pachelbel101's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Sorry, the quote wasn't wrong - I accidentally left it there when I removed some meaningless URL garbage off the end. Also, I figured out a solution - if I wrap to the next line anywhere in the middle of the quote, then it doesn't try to interpolate the {} Thanks for your help!
  2. $slideshowJavascriptCode = "<script>setTimeout( function() { window.location='".$config['baseurl']."/index.php"';}, 30000 );</script>"; It just winds up storing this in the variable: <script>setTimeout( function() , 30000);</script>
  3. Good evening, How do you keep braces inside of a string? I'm attempting to store a string of javascript into a variable. That string of javascript contains braces, and everything between and including the braces is not showing up in the string. I believe it's interpreting those braces as variable-enclosers, but they aren't. I have tried escaping them (\{), doubling them ({{), putting them in single quotes instead of double quotes, and every time I lose everything between the braces. How do I keep braces inside of a string in PHP? Thanks for your help, this is killing me!
  4. Ok.  Will this still reload the page from the server if you visit the page directly (either type in the address or click a link) or would it use the cache in this case too?
  5. I've written a number of PHP applications, and in all my applications if you reload the page (or go "back" to a page), then any form fields on that page are reset to their original value.  Basically I think that instead of returning to the state that page was in - as often happens on other sites - the PHP script executes again as if you typed in the URL and click "Go" instead of reloading. In an attempt to find the culprit I created a bare-bones form page - that worked perfectly on reload.  Slowly I added in pieces of a page that doesn't work correctly, and still the test page worked fine.  Finally, I copied everything in the "bad" page into the "good" test page, and STILL the test page worked correctly and the old page didn't. So, what do you have to do to get form data to remain when a user reloads the page, or goes "back" to a page?  Or what do you NOT have to do? Thanks for your help.  This has been driving me crazy for a while.
  6. In response to jcombs: - What specifically don't you like about the colors? - As far as the two-row navigation, I may switch it to a tabbed thing, if I can determine all the links will fit accross. - The upside-down space in the logo is because of the "Spinner" in the name - but making "Spinner" upside down looked worse to me.  Was that not obvious, or did you just think it was stupid?  I thought the logo would look to plain without the rotated "Space" - what do you think? - I assumed that my visitors would know what the site was about (it is a myspace customizing site), but maybe that is a poor assumption.  I'll work on the text. In response to redbullmarky: 1.  interesting that the colors do somewhat match those on php.net - purely coincidental.  I changed the link colors to better match the colors in the rest of the page, and make them stand out.  I also added a drop shadow to give them some character. 2.  I personally think a balance of curvy and squared-off is good - too curvy looks like you're trying to hard, and too squared looks like you didn't try at all...if that makes sense 3.  I think I agree with your feeling on the "pills" - like I told jcombs, I will probably change them to curved tabs in the future, if I can determine they'll all fit across the top. What do you think of the changes to the pills...are they at least somewhat better?
  7. Good morning, everyone. I recently released this site and I would like to know what you all think of the design, content (text), etc.  Although it is now released, I work on it frequently, so any opinions for changes are certainly welcome.  The site is [url=http://spacespinner.com]spacespinner.com[/url] Thanks for taking the time to look it over and share your thoughts. pachelbel101
  8. Before the redirection you can use $_SERVER['PHP_SELF'] OR $_SERVER['REQUEST_URI'] to get the source URL. Then you can carry it over to the next script by attaching it to the redirect url as a GET ("?src=$_SERVER[REQUEST_URI]") or store it in $_SESSION.
  9. Try this (I must admit I'm not sure if it's valid SQL, but I think it'll work, as long as you can correlate queries across an INTERSECT): [code] SELECT * FROM sc_member_images smi1 ORDER BY sci_id DESC LIMIT 0,1 INTERSECT SELECT * FROM sc_member_images smi2 WHERE smi2.mem_id!=smi1.mem_id ORDER BY sci_id DESC LIMIT 0,1 [/code] You may need parentheses around each entire SELECT statement: [code] (SELECT ......) INTERSECT (SELECT ......) [/code] Hope this works out for you.
  10. Good afternoon, I find myself needing to do an HTTP request for a sizeable webpage with PHP's PEAR functions, but I don't need the whole webpage.  In the interests of limiting bandwidth, I would like to retrieve only a specific range of the content.  I believe this is possible using HTTPRequest, but I'm afraid I don't (and can't) have access to the necessary extension to use that class - can this be done using PEAR (or with some other method)? Thank you for the assistance.
  11. I encountered this same error in Firefox once, but instead of flipping between 0 and 1, I was incrementing a field.  So each refresh incremented it by 2 instead of 1.  Unfortunately I didn't track down the problem and solution, because for this application it didn't really matter.  But I can back you up and say you're not crazy!  Good luck.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.