Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
~1K People Reached
Favorite Forums
Favorite Tags
php x 9
Member Avatar for cty

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 …

Member Avatar for chrishea
0
257
Member Avatar for cty

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 …

Member Avatar for php_daemon
0
105
Member Avatar for cty

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 …

Member Avatar for remcov
0
203
Member Avatar for cty

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' …

Member Avatar for digital-ether
0
103
Member Avatar for cty

$totalCost=0; while($row = $result->fetch_assoc()) { $totalCost+=$row["price"]; ------------------------------ --->why the $totalCost always is 0?

Member Avatar for UrbanSky
0
58
Member Avatar for cty

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 …

Member Avatar for DennisP
0
120
Member Avatar for cty

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 …

0
72
Member Avatar for cty

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 …

Member Avatar for cty
0
91
Member Avatar for cty

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

Member Avatar for happygeek
0
64