Jump to content

joinx

Members
  • Posts

    38
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

joinx's Achievements

Member

Member (2/5)

0

Reputation

  1. In some pages it is being displayed but some i get this error: Warning: mysql_select_db(): supplied argument is not a valid MySQL-Link resource in C:\Apache2.2\htdocs\Jacey\order.php on line 75 Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in C:\Apache2.2\htdocs\Jacey\order.php on line 77
  2. I dont want a google search but within my database itself... So i have product like laptops, PC, printers, scanners etc and each of a specific brand like acer, sony etc... i'm trying to build a query but don't know how to do..
  3. here is my code but not working...always displaying 0 items in your cart. //Function to display num of items in cart function writeCart() { require_once('../Connections/JaceyConn.php'); $sid = session_id(); mysql_select_db($database_JaceyConn, $JaceyConn); $sqlnum = "SELECT * from cart where session_id = '$sid'"; $num = mysql_query($sqlnum, $JaceyConn) or die(mysql_error()); $totalRows_num = mysql_num_rows($num); if ($totalRows_num = 0) { return '<p>You have no items in your shopping cart</p>'; } else { // Parse the cart session variable return '<p align ="center">You have '.$totalRows_num.' item(s) in your shopping cart</p>'; }
  4. Can someone help me to set up a search engine in my website to search a product... thnx
  5. How to select and retrieve data that has been inserted from the last row of a table...?
  6. I am using php code and mysql.. i'm not able to delete any records..i think i'm not filling the requirements properly.. Can someone plz guide me.. thx
  7. ok i solved my problem..in the database i insert <br>after each line.. thnxxxxxxxxx
  8. How to format data from a database.. I have a list of description that i retrieve form database..this is coming as a paragraph and me i want each sentence on one line... How should i do??
  9. I was able to remove the malware..thnx...
  10. I am working on a project. I have to submit it in 2 days.. Now i got malware and when i run the pages in the browser its not loading i'm trying to remove the malware but can't...trying several software.. i need to format i think but this also u can't rite now because of my project... is there any other safe browser or server i can run my pages??
  11. ok thnx...there was an unknow field... problem solved..
  12. me too i'm getting same error...here is my code <?php mysql_select_db($database_JaceyConn, $JaceyConn); $sql = "SELECT product_name, product_price, product_status from FROM product WHERE product_id = $productId;"; $result = mysql_query($sql, $JaceyConn); while ($row_result = mysql_fetch_array($result)) { echo $row_result['product_name']; } ?> where is the error?
  13. plz help...need to make that work..still hasn't find a solution... getting errors like Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at C:\Apache2.2\htdocs\Jacey\functions.inc.php:52) in C:\Apache2.2\htdocs\Jacey\showcart.php on line 5 Warning: extract() [function.extract]: First argument should be an array in C:\Apache2.2\htdocs\Jacey\showcart.php on line 214
  14. if i remove it then i should only use the array to retrieve the data..like that while($row=mysql_fetch_array($info){ $row['product_id']; . . .} i am having that problem in almost all my pages...nothing is being retrieved from the database n displayed... thnx a lot for ur help..
  15. Even i change the php.ini..i am having these same error msg... how to solve that..
×
×
  • 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.