65 Posted Topics
PLease help me. I'm doing a login form with ms access but this line of code having problem "Dim dr As OleDbDataReader = cmd.ExecuteReader" Below is the source code Imports System.Data.OleDb Public Class Form1 Dim con As New OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\Users\leong\documents\visual studio 2010\Projects\WindowsApplication4\WindowsApplication4\coursework.mdb") Dim cmd As OleDbCommand Private Sub Button1_Click(ByVal sender … | |
Hi guys, I am facing a little bit problem in mobile menu design. In android is working fine but in iOS safari or chrome has the same issue where I press on the Menu and press on dropdown menu, I cannot scroll to bottom of other <li> element This is … | |
Hi everyone, I've no idea how to design the grid layout like this :  My image is square and I want to make it responsive to mobile and tablet. I only have title, price and image in one grid. Any can help me on this kind of design? … | |
Hi guys, currently I have 3 groups of user which is A, B and C. A will handle tasks for first week, B will handle tasks for second week, C will handle tasks for third week, C will handle tasks for 4th week, A will handle tasks for 5th week, … | |
Hi, I just want to share this after I scratching my head for few hours. To integrate Laravel 5 with ckfinder authorization method (So far I only can get the solutions for Laravel 4 but get none for Laravel 5 from google.), simply add these code at the top of … ![]() | |
Hi, I am in trouble for getting related product. Any idea to implement it with SQL? For Example: Main Product Name: ABC Shirt B190 Men The sql will show the related product like ABC Shirt B190 Women ABC Shirt B190 Child | |
Hi, I need a table with dynamic header for first row and the rest of rows is the price. Example:http://www.adtravel.com.my/domestic/package/142-legoland-2d1n-johor-special Any idea to develop in admin page as well as product page? I want to use WYSIWYG editor but my client do not know how to use it.(Because the table … | |
Hi guys, I want to hover all the images and show the image with colour when mouseover (remove hover when mouseover). I hover it by using this line of code and it's work fine but I do not know how to add mouseover method to change fadeTo value become (400,1): … | |
 Please look at attachment picture. This is my html <nav class="subnav"> <ul class="nav-pills categorymenu"> <li><a href="#">Fashion & Accessory</a> <div> <ul class="arrow"> <li class="category"><a href="category.php?id=Women">Women</a></li> <li><a href="category.php?id=5">Women's Dresses</a></li> <li><a href="category.php?id=7">Women's Jeans</a></li> <li><a href="category.php?id=8">Women's Tops</a></li> <li><a href="category.php?id=9">Women's Coats & Jackets</a></li> <li><a href="category.php?id=10">Women's Pants & Shorts</a></li> <li><a href="category.php?id=11">Women's Skirts</a></li> <li><a href="category.php?id=12">Women's … | |
This is my script. Previously was fine but after I change to PDO will pop up error message like this:  It's showing this two line got error: stripslashes($result->getColumnMeta($i))) . $csv_enclosed; and : if ($row[$j] == '0' || $row[$j] != '') Here is my script: if(isset($_SESSION['fromdate']) && isset($_SESSION['todate'])){ $filename … | |
Re: I'm so sorry for late reply. I'm out station to other place so..Please forgive me. pritaeas, your solution help me a lots! Thanks =D | |
Hi, How can I loop this out? <input type="text" name="attr[1][value][1][name]"> <input type="text" name="attr[1][value][1][price]"> <input type="text" name="attr[2][value][1][name]"> <input type="text" name="attr[2][value][1][price]"> Any Solution? ![]() | |
Hi, How can I pass my ID to fancy box when I click the image? When I use alert it show I success to get class attribute ".image" and show 1 for the id. But how come it's not working after I add $('#'+currentId).fancybox and the following code? This is … | |
Hi, I am developing a website and I want to use htaccess to change the url from `www.abc.com/user.php?c=devian` to www.abc.com/user/devian I use the code below to convert url and it's work but why all CSS and js not reading? `RewriteRule ^user/(.+)$ user.php?c=$1 [NC,L]` If I access `www.abc.com/user.php?c=devian` then I can … | |
 Hi, I've a problem which is the screenshot above. If the product name too long will not going to next line. Please help me. And how can I make sure each box of product have a same width and height and same position ? This is my HTML: … | |
Hi,Today I face a very weird problem which is I've a button which generate pid from database: <a href="orderdetail.php?pid='.$OrderID.'"><button type="button">View Shipping Status!</button></a> Let say my OrderID is 53588130964806920 and it will look like orderdetail.php?pid=53588130964806920 isn't ? But after I click the button , the URL display well but when I … ![]() | |
How to use the function within the class?? class UserRegister{ public $password = ''; public function escape($val) { return mysql_real_escape_string($val); } public function setPassword($val) { $this->password = $val; $val = escape($this->password); $this->password = $val; } public function getPassword() { echo $this->password; } } $obj = new UserRegister; echo $obj->setPassword("dsadsadasdas'das"); echo … | |
This is my code : for($i = 0;$i<$count1;$i++){ echo '<select name="attribute['.$i.']">'; while($parent = mysql_fetch_array($query)){ //echo $parent['Name']; echo '<option value="'.$parent['ID'].'">'.$parent['Name'].'</option>'; }//while $parent echo '</select>'; }//for loop My problem is why the output like this?: <select name="attribute[0]"> <option value="2">Colour</option> <option value="3">Size</option></select> <select name="attribute[1]"></select> Why this line does not contain the both option … | |
Hi, May I know how they do that kind of select box in css or javascript?  | |
Hi, I've a project is create a shopping cart system. I'm wondering how to create add option(color,size,etc) in add product page just like opencart? I'm trying to understand opencart files but too bad, I don't understand class file at all. Anyone can give me some concept about how it work? … | |
Hi,currently i m developing a PHP Cart. I have a php function is call product option value. When Admin adding product ,ajax will load my php function without refreshing page to allow admin to select the option like color,size etc. In my php function got no any submittion data but … | |
Hi, This is my php code for category UL and LI recursive. Now is working fine but the output is not what I expected. Here is the HTML output of the code I provided: <ul><li> <a href="#">Electronic Gadgets </a><span class="subDropdown plus"></span><ul><li> <a href="#">Pant</a></li><li> <a href="#">Aircond</a></li><li> <a href="#">Shoe</a></li><li> <a href="#">test</a></li><li> <a … ![]() | |
Hi, How can I add ul and li tag and add `<span class="subDropdown plus"></span>` before sub category `<ul>` called? ? my database: ID,CatName,ParentID This is the output I expected: <ul> <li><a href="#">Car Accessories</a></li> <li><a href="#">Clothing & Shoes</a> <span class="subDropdown plus"></span> <ul> <li><a href="#">Shoes</a></li> <li><a href="#">Sndals</a></li> <li><a href="#">Dresses</a></li> <li><a href="#">Jeans</a></li> </ul> … | |
Hi, How can I use modulus to add TR tag for my output below? <tr> <td>data1<td> <td>data1<td> <td>data1<td> <td>data1<td> <td>data1<td> </tr> <tr> <td>data1<td> <td>data1<td> <td>data1<td> <td>data1<td> <td>data1<td> </tr> <tr> <td>data2<td> <td>data2<td> <td>data2<td> <td>data2<td> <td>data2<td> </tr> <tr> <td>data2<td> <td>data2<td> <td>data2<td> <td>data2<td> <td>data2<td> </tr> In the example above got 2 set of … | |
Hi, now I've a function which is add product to cart: function addtocart($pid,$q,$attribute){ if($pid<1 or $q<1) return; if(is_array($_SESSION['cart'])){ $max=count($_SESSION['cart']); $_SESSION['cart'][$max]['productid']=$pid; $_SESSION['cart'][$max]['qty']=$q; $_SESSION['cart'][$max]['attribute']=$attribute; } else{ $_SESSION['cart']=array(); $_SESSION['cart'][0]['productid']=$pid; $_SESSION['cart'][0]['qty']=$q; $_SESSION['cart'][0]['attribute']=$attribute; } } And now my remove product function is : $id is generate from for loop in cart page which is same … ![]() | |
Hi, is there any preg_match only allow `a-zA-Z0-9():[space]` ? Please help me =( ![]() | |
Re: if(!authorized) { header('location:login.php'); exit(); } ?> should be : if($authorized == false) { header('location:login.php'); exit(); } ?> | |
Hi,how to force desktop view to https non www and mobile view force to use http www ? | |
Here is my array: $a = array( “1” => “3”, “1” => “2”, “2” => “1”, “1” => “2”, “2” => “2”, ); and my expected output is : 1 = 7 , 2 = 3 How can I do that in foreach? | |
Hi, I'm developing a mall script.Here is the senario. When user add item to the cart the session will store product ID. THen I've some function to display product name, price, merchant id & etc from product ID parameter. Now I want to get a shipping price base on the … | |
Anyone can tell me how can I rewrite my url from www.example.com/user.php?id=1 and id=1 will get the name from mysql. Like example id=1 user name is "abcdef". Now the parameter(id=1) will get result from database and display "abcdef" to url(www.example.com/abcdef). | |
Hi, how can I group sessions value? Example I have session 1,2,2,3,3,3,4 .Now I want to get sessions 1,2,3,4 only | |
My product list picture unable to make it smaller and the boxes are not align properly. Please help me to fix it. I'm trying for few hours already still got no idea. I've a global image class and the attribute is max-width 100% and max-height 100% Please look at the … ![]() | |
Hi,Currently I'm using this tutorial : [Click Here](http://docs.cksource.com/CKFinder_2.x/SelectFunction) but the output is /home/xxx.com/public_html/images/image/1234.jpg How can I change the path to /images/image/1234.jpg ? Please help me >< | |
I've a working code and display well. Now I want to integrate into html code but I don't know how to add a custom div into it. Here's my php function hasChild($parent_id) { $sql = "SELECT COUNT(*) as count FROM w_category WHERE ParentID = '" . $parent_id . "'"; $qry … ![]() | |
Currently I've a database table call category: Table attribute: id,parent_id,name How can I make it display in the following structure? <li class="dropdown level-0"><a href="#">electronics<img src="images/dropdown-arrow.png" alt="" /></a> <ul> <li class="level-1"><a href="#">Televisions</a> <div class="level-1-div clearfix"> <ul> <li class="level-2"><a href="catalog.html">Projectors</a></li> <li class="level-2 last-level-2"><a href="catalog.html">DVD Players</a></li> </ul> <div class="productImageDiv"> <a href="catalog.html"><img src="images/product-image2.png" alt="" … | |
Hi, how to make a category tree in php? Recently I've a table called 'category' and inside containt ID,Name,ParentID. Please give me a simple example code to do it. Very appreciated if you could help me to solve this problem. | |
I want to overlay "New" & "Hot" logo on the product image just like a shopping cart website but I don't know how to do it. Please guide me or help me to modify the code if possible. Great thanks to everyone who try to help me. Really urgent. This … | |
Hi, I'm very new to smarty. I would like to learn more about smarty engine. I understand how smarty works like assign and display but how can I implememt something that able to switch template? I mean when I upload few different template with different name and CMS will auto … | |
I've a problem to my linkedlist at line 10. Can anyone help me to solve it? Thank in advance.  This is my code : package linkedlist; import java.io.FileReader; import java.io.IOException; import java.util.Scanner; public class LinkedList { private String firstName; private String lastName; private static LinkedList<LinkedList> classRoster = new … | |
Hi, how to add a checkout function to this code? In the picture you can see, I had call the member list and cart function together. I want it automatic execute INSERT INTO query when I click the checkout function. I already make a cart and member list and both … | |
Hi, I've a form which allow a user to select the year and category. Year and category will pass the value to the query : "SELECT * FROM Shares WHERE Year = '"&yearr.txt&"' AND Category = '"&category.text&"'" After that I want the report print the report to excel base on … | |
As title show. I still not able to connect my ms.access login database . Please help me ~ Dim con As New OleDb.OleDbConnection("Provider=Microsoft.ACE.OLEDB.12.0;Data Source=C:\Users\leong\Documents\Visual Studio 2010\Projects\WindowsApplication4\WindowsApplication4\coursework.accdb") ' Dim cmd As OleDbCommand = New OleDb.OleDbCommand("SELECT * FROM AdminUser WHERE Username ='" & Usernametxt.Text & "' AND Password ='" & Passwordtxt.Text & … | |
Re: first thing, you need to add the following code to all the page so that the website will detect whether is login or not..if login,then allow to go to the page,if not,go back to workspace.php <?php session_start(); if (!isset($_SESSION['username'])) { header('Location: workspace.php'); } ?> Second thing,try to change the code … | |
Currently all the images got no extension after I upload and mysql store the images with no extension too. Any solution? This is the code: <?php if(!empty($_POST['Name'])){ if(!empty($_POST['SellPrice'])){ if(!empty($_POST['RentPrice'])){ if(!empty($_POST['Quantity'])){ if(!empty($_POST['CostPrice'])){ $name = $_POST["Name"]; $SellPrice = $_POST["SellPrice"]; $RentPrice = $_POST["RentPrice"]; $Quantity = $_POST["Quantity"]; $CostPrice = $_POST["CostPrice"]; $Category = $_POST["Category"]; $name … | |
Please help me..I've the following code and I entered an account number in bank account number field but in database was changing the value. what's wrong? My input in bank account number field is :112046067391 but the output is :2147483647 In database I set it to int(20) but still the … ![]() | |
<?php include('./config.php'); //protect SQL injection $username = $_POST['username']; $password = $_POST['password']; $username = stripslashes($username); $username = mysql_real_escape_string($username); $password = mysql_real_escape_string($password); $password=hash('sha256',$password); //SQL query that sent login info to database $result = mysql_query ("SELECT * FROM admin WHERE Login ='$username' AND Password ='$password'",$con); $check = mysql_num_rows ($result); @session_start(); if ($check == … | |
function returnnotify(){ $result = mysql_query("SELECT * FROM rentcustomer WHERE Expiredtime = CURDATE()"); $count = mysql_num_rows($result); if ($count >= 1){ echo $count; }else{ echo "0"; } } now when I run the code above ,it will prompt out this error: Warning: mysql_num_rows() expects parameter 1 to be resource, boolean given in … |
The End.