No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
Title:CAn anyone provide me a very simple code for shopping cart? Good day, I am newbie in PHP. I wish to learn to implement a shopping cart. Since i start doing my final year project with the title "buy and sell books". I have to learn how to code the … | |
Anyone know where is my mistake? The error show when i click on "buy" in product.php. Please guide me. --------------------------------------------------------- Error shown: Fatal error: Call to a member function fetch_row() on a non-object in C:\test\kelly.php on line 14 ---------------------------------------------------------- [PHP] //product.php <?php include("db.php"); $db=new mysqli('localhost','root','','test'); $db->select_db('test'); $query="select * from book … | |
Error message: Query failed:You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near ')' at line 1 -------------------------------------- Can any one able to edit it in correct form?(*I using PHP5) ---------------------------------------------- $[PHP]query="select count(*) from cart … | |
my problem is :whenever i log in ,it always shown 'You are not log in'. Never show "You are logged in as :xxx" For example:i do a testing,i input username:abc and password:1234 in "user" table. Next,i try to log in using abc and 1234.But,still shown 'You are not log in' … | |
$totalCost=0; while($row = $result->fetch_assoc()) { $totalCost+=$row["price"]; ------------------------------ --->why the $totalCost always is 0? | |
PHP Parse error: parse error, unexpected $end in C:\test\kelly.php on line 118 <?php function AddItem($itemId, $qty){ $db=new mysqli('localhost','root','','test'); $db->select_db('test'); $query="select count(*) from cart where cookieId = '" . GetCartId() . "' and itemId = $itemId"; $result=$db->query($query); $row =$result->fetch_assoc(); $numRows = $row[0]; if($numRows == 0) { // This item doesn't exist … | |
1)Error display in cart.php page: PHP Notice: Undefined offset: 0 in C:\test\kelly.php on line 16 PHP Notice: Undefined variable: totalCost in C:\test\kelly.php on line 61 2)Error show when i try to remove item form cart: PHP Notice: Undefined variable: db in C:\test\kelly.php on line 43 PHP Fatal error: Call to … | |
Title: Problem in session using php5 Good day, I use php5+mySQL4+IIS5.x Previuosly i use php4 and no error occur, after i uninstall php4 and install php5, error happen. -------------------------------- error message: 24lmnsndeh7pkibp65mttcajo7PHP Warning: Module 'mysql' already loaded in Unknown on line 0 PHP Warning: session_start() [function.session-start]: open(C:\DOCUME~1\CTY\LOCALS~1\Temp\php\upload\sess_24lmnsndeh7pkibp65mttcajo7, O_RDWR) failed: No … | |
I currently doing my final year project,that related to e-commerce. Any ideas? What kind of language is suitable to complete the project? Please give me more guideline. TQ |