Jump to content

virtuexru

Members
  • Posts

    200
  • Joined

  • Last visited

Profile Information

  • Gender
    Not Telling

virtuexru's Achievements

Regular Member

Regular Member (3/5)

0

Reputation

  1. Trying to echo out a variable like: $SelOffersQryRow->spid Now, same DB but the column name has a space in it, how am I supposed to properly echo it out? $SelOffersQryRow->Model Detail am I supposed to use `` or '' or "" Thanks!
  2. OK, that's fine. Better than before! Now just use trim() or str_replace().
  3. Why don't you format them together BEFORE the query? example: <?php $newstring = $licen.",".$reso; ?> Then when you put it in make sure its <?php SET sublicenses = '$newstring' WHERE .... etc ?>
  4. I would agree that is best practice, and to cache it locally. But I presume he doesn't want a link to a real local copy either. All the best Keith How would I go about saving a local copy automatically?
  5. That's not the method I asked for, thanks though. Anyone else have any ideas? Maybe its possible not through PHP but through Javascript?
  6. We have a data feed from another website that we pay for. Images are a part of this feed (they feed us their updates links into a MySQL database). I don't want people seeing where the images are being fed from though, that is the problem.
  7. How would I mask where my images are being downloaded from (like the images on www.domain1.com are hosted on www.domain2.com, but I do not want people knowing that the images are coming from www.domain1.com).
  8. Hey everyone.. OK, my basic idea is this. I have an auction website. It has a countdown.. all the auctions end once a night at 9:00PM. Basically, since people are sending bids all the time, I wanted to know how I would going about developing a "ticker".. Like everytime an offer is placed (Query to a MySQL db) I can display (Query that db + AJAX + PHP) what the offer was (amount$) and on what item (id#) it was on. Everytime a bid is submitted, it would pop up the new information on the "ticker". Can anyone link me or post some thoughts on how I would begin? Maybe a tutorial? Thank you so much ahead of time!
  9. OK.. basically I'm doing a math project in PHP for a friend. He puts in an initial number into a MySQL database.. say 100. I need to run a script that when I enter a maximum say 1000, the page showing the number will go up by 50 every 30 minutes.
  10. But I need to run the script every 30 minutes or no?
  11. Like say I want to update a page that has a countdown on it for a number... The max for that number is 800 for instance.. I set that to be the maximum, then if the number on the page is less than that, I can add 100 every 30 minutes until it is equal to or greater than 800. How would I go about doing this in PHP without having to manage the page after I set the initial maximum?
  12. OK, so I have populated a table, I was wondering if I can run this to check if the table DOESNT have a certain ID number, then an update function can add a new row, is this coherent or am I retarded? Here is my code: <?php $ListQuery = "SELECT * FROM relist where vid='".addslashes($tlist[7])."'"; $ListQueryRS = mysql_query($ListQuery); $TotList = mysql_num_rows($ListQueryRS); if($TotList>0) { mysql_query("UPDATE relist SET newdate = '".$AuctionDate."' WHERE vid = '".addslashes($tlist[7])."'"); } else { mysql_query("UPDATE relist SET id='', vid = '".addslashes($tlist[7])."', origdate='".$AuctionDate."', newdate='".$AuctionDate."'"); } ?>
  13. Quick question, I'm having a brainlapse right now. I want to take a url like this: http://anywhere.com/x/bw/bbbb/vid?lot=6874699 and extract just the number after "lot=" so I just need the numerical value. What's the most efficient way of doing this? Substr? (the number can be anywhere from 5-8 numerals).
×
×
  • 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.