Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
67% Quality Score
Upvotes Received
2
Posts with Upvotes
2
Upvoting Members
2
Downvotes Received
1
Posts with Downvotes
1
Downvoting Members
1

65 Posted Topics

Member Avatar for devianleong

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 …

Member Avatar for Ansh8390
0
2K
Member Avatar for devianleong

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 …

Member Avatar for rproffitt
0
394
Member Avatar for devianleong

Hi everyone, I've no idea how to design the grid layout like this : ![unnamed.png](/attachments/small/3/47d9a91730b2938e6dc33cc5102761ec.png "align-left") 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? …

Member Avatar for peter_budo
0
198
Member Avatar for devianleong

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

Member Avatar for cereal
0
142
Member Avatar for devianleong

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 …

Member Avatar for diafol
0
740
Member Avatar for devianleong

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

Member Avatar for DJBirdi
0
122
Member Avatar for devianleong

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 …

Member Avatar for devianleong
0
245
Member Avatar for devianleong

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): …

Member Avatar for pixelsoul
0
265
Member Avatar for devianleong

![9ef0bea126bf57cd5cc267400d2ed75c](/attachments/large/3/9ef0bea126bf57cd5cc267400d2ed75c.png "9ef0bea126bf57cd5cc267400d2ed75c") Please look at attachment picture. This is my html <nav class="subnav"> <ul class="nav-pills categorymenu"> <li><a href="#">Fashion &amp; 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 &amp; 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 …

Member Avatar for devianleong
0
132
Member Avatar for devianleong

This is my script. Previously was fine but after I change to PDO will pop up error message like this: ![c3e8a4ba0737f3f2c3b274bd177d4fc3](/attachments/large/3/c3e8a4ba0737f3f2c3b274bd177d4fc3.png "c3e8a4ba0737f3f2c3b274bd177d4fc3") 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 …

Member Avatar for pritaeas
0
365
Member Avatar for mayuri_desh

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

Member Avatar for devianleong
-6
2K
Member Avatar for devianleong

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?

Member Avatar for diafol
0
197
Member Avatar for devianleong

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 …

Member Avatar for pixelsoul
0
111
Member Avatar for devianleong

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 …

Member Avatar for devianleong
0
191
Member Avatar for devianleong

![2c251d4a3e3c6cecf9a0a7f4b5258c24](/attachments/large/3/2c251d4a3e3c6cecf9a0a7f4b5258c24.png "2c251d4a3e3c6cecf9a0a7f4b5258c24") 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: …

Member Avatar for drjohn
0
150
Member Avatar for devianleong

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 …

Member Avatar for diafol
0
183
Member Avatar for devianleong

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 …

Member Avatar for devianleong
0
137
Member Avatar for devianleong

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 …

Member Avatar for devianleong
0
236
Member Avatar for devianleong

Hi, May I know how they do that kind of select box in css or javascript? ![8f9358290b71214d7abc0e455e8fa9f6](/attachments/large/3/8f9358290b71214d7abc0e455e8fa9f6.jpg "8f9358290b71214d7abc0e455e8fa9f6")

Member Avatar for ACRDepos
0
126
Member Avatar for devianleong

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

Member Avatar for mmcdonald
0
153
Member Avatar for devianleong

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 …

Member Avatar for devianleong
0
233
Member Avatar for devianleong

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 …

Member Avatar for diafol
0
1K
Member Avatar for devianleong

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

Member Avatar for pritaeas
0
227
Member Avatar for devianleong

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 …

Member Avatar for devianleong
0
396
Member Avatar for devianleong

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 …

Member Avatar for LastMitch
0
175
Member Avatar for devianleong

Hi, is there any preg_match only allow `a-zA-Z0-9():[space]` ? Please help me =(

Member Avatar for diafol
0
131
Member Avatar for kyle.santelices.31

if(!authorized) { header('location:login.php'); exit(); } ?> should be : if($authorized == false) { header('location:login.php'); exit(); } ?>

Member Avatar for AndrisP
0
198
Member Avatar for devianleong
Member Avatar for pritaeas
0
145
Member Avatar for devianleong

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?

Member Avatar for pritaeas
0
14K
Member Avatar for gurungb03
Member Avatar for andreiviziru
Member Avatar for devianleong

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 …

Member Avatar for pritaeas
0
170
Member Avatar for devianleong

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).

Member Avatar for devianleong
0
671
Member Avatar for devianleong

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

Member Avatar for devianleong
0
156
Member Avatar for devianleong

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 …

Member Avatar for stbuchok
0
154
Member Avatar for devianleong

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

Member Avatar for devianleong
0
183
Member Avatar for devianleong

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 …

Member Avatar for diafol
0
271
Member Avatar for devianleong

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="" …

Member Avatar for devianleong
0
362
Member Avatar for devianleong

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.

Member Avatar for pritaeas
0
188
Member Avatar for devianleong

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 …

Member Avatar for EvolutionFallen
0
207
Member Avatar for devianleong

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 …

Member Avatar for pritaeas
0
195
Member Avatar for devianleong

I've a problem to my linkedlist at line 10. Can anyone help me to solve it? Thank in advance. ![edcc2efd2d7051037a9a147491e15671](/attachments/large/3/edcc2efd2d7051037a9a147491e15671.png "edcc2efd2d7051037a9a147491e15671") 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 …

Member Avatar for devianleong
0
262
Member Avatar for devianleong

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 …

Member Avatar for Webville312
0
734
Member Avatar for devianleong

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 …

Member Avatar for Reverend Jim
0
447
Member Avatar for devianleong

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

Member Avatar for Begginnerdev
0
143
Member Avatar for diablo4151

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 …

Member Avatar for dbalas
0
11K
Member Avatar for devianleong

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 …

Member Avatar for pritaeas
0
173
Member Avatar for devianleong

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 …

Member Avatar for iamthwee
0
146
Member Avatar for devianleong

<?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 == …

Member Avatar for phorce
0
131
Member Avatar for devianleong

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 …

Member Avatar for pritaeas
0
253

The End.