Jump to content

loxy1914

Members
  • Posts

    10
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

loxy1914's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Could someone change my username to "loxy1914" please?
  2. Nice. I think it is very much better now... Thank you very much. Solved.
  3. OK, but in the case I would like to add a new car into the shopping cart, where should I keep the cart`s data. For example, I order a new car, color green, price 10000, firm VW. These are too much for a unique session. Am I wrong?
  4. Hello. I want to implement a simple shopping cart with sessions but without using DB, despite the fact that I have a DB consisting of Car-Shop-Customer. Is the only way using arrays?
  5. Actually, this is not a problem because there is only one record in the DB. Is it prossible to return $results, and in another script to call : $car = new Car(); $searchResults = $car->searchByName($searchword); $cName=$searchResults['I_TITLE'];
  6. That`s true. I have decided to return and call it in another script. Should I avoid something,like this?
  7. I am sorry for the duplicate post, but only the query worked: the return $results['title'] part, Not.
  8. This really worked. Cheers! Nonetheless, I cannot understand why this happened... The query remains the same.
  9. Hi everybody. I have 3 years to deal with PHP, and I am facing an issue in this function: function searchByName($carTitle) { $searchQuery = mysql_query("SELECT * FROM car WHERE `title`= '$carTitle'") or die(mysql_error()) ; echo $searchQuery; while($results = mysql_fetch_assoc($searchQuery)){ print($results['title']); }} I am trying to print the executing query,also. Can someone help me with this?
×
×
  • 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.