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
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
385
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
196
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
139
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
736
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
120
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
242
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
262
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
363
Member Avatar for mayuri_desh
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
194
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
109
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
187
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
148
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
133
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
235
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
122
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
152
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
215
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
223
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
283
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
172
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
128
Member Avatar for kyle.santelices.31

i have a index.php i just want only logged in user can access the page my code . in the index page is <?php error_reporting(0); $authorized=false; @session_start(); if(isset($_SESSION['$myusername']) && isset($_SESSION['$mypassword'])) { $authorized = true; } if(!authorized) { header('location:login.php'); exit(); } ?>

Member Avatar for AndrisP
0
188
Member Avatar for devianleong
Member Avatar for pritaeas
0
142
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

I am a 3rd yr student and I have to do a FYP project. So guys can you please suggest topics that come across your mind( projects that you would do as your FYP). I am planning to make it web based system using HTML/CSS, PHP and the duration for …

Member Avatar for diafol
0
287