Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
20% Quality Score
Upvotes Received
0
Posts with Upvotes
0
Upvoting Members
0
Downvotes Received
1
Posts with Downvotes
1
Downvoting Members
1
~19.9K People Reached
Favorite Tags

56 Posted Topics

Member Avatar for andrewliu

Hello, I have a table and a div tag. My table is on the left side of the div tag. I was wondering how to make sure that my div tag wont be disrupted by my table. When I have a table next to the div tag, my context in …

Member Avatar for christinamarie1
0
651
Member Avatar for andrewliu

Hello, I'm getting problems with my coding. I'm trying to take out tags from my preg_match_all. I'm still new and learning. [CODE] preg_match_all("/\<b>\\$(.*?)\<\/b\>/is", $res[0], $Price ); for($i = 0; $i < count($Price); $i++) { $Price = preg_replace("/<.*?>/is","",$Price); } foreach($Price[0] as $kgbPrice) { $PriceArray[] = "<div class='prices' id='kgbdealsPrice'>".$Price."</div>"; } [/CODE] The …

0
64
Member Avatar for andrewliu

I have a pregexpression and its not outputting anything. Can someone explain why this might be? I'm also new to learning this [CODE]preg_match_all("/\<b>\$(.*?)\<\/b\>/is", $res[0], $match); foreach($match[0] as $value) { echo "<div class='prices' id='kgbdealsPrice'>".$value."</div>"; } [/CODE] The string that I'm trying to get looks something like this [CODE]<tr> <div> </div> <div> …

Member Avatar for andrewliu
0
299
Member Avatar for andrewliu

Hello, I was wondering if there is a way to layer my preg_matches? I have a code like this [CODE] preg_match("/\<div class=\"dealsListS\"\>(.*?)\<\/div\>(.*)\<\/form\>.*?\<\/div\>/is", $res[1], $bycontainer ); preg_match_all("/\<h2>\s*(\<div.*?\<\/div>\s*)?(.*?)\<\/h2\>/is", $bycontainer[0], $level1 ); preg_match_all("/\<div class=\"thumbWrapper\"\>(.*?)\<\/div\>/is", $level1[0], $matches); foreach($matches[0] as $travelzooTitles) { echo "<div class='titles' id='travelzooTitles'>".$travelzooTitles."</div>"; }[/CODE] I'm getting error, but can I even do …

Member Avatar for andrewliu
0
182
Member Avatar for andrewliu

Hello I'm learning regexp and I'm trying to get contents in a div tag. [CODE]<div class='name'> <div class='contents'> contents </div> </div>[/CODE] my regexp is something like this [CODE] preg_match_all("/\<div class=\"name\"\>(.*?)\<\/div\>/is", $res, $matches ); foreach($matches[0] as $value) { echo $value; }[/CODE] I want to get everything in the div class='name' but …

Member Avatar for andrewliu
0
9K
Member Avatar for andrewliu

Hello, I have a problem between different browser. I have a link that directs to a folder that is shared within a localhost server and it works find with internet explorer, but it doesnt work with chrome or mozilla. [CODE]<a href='\\Server\folder'>Click Here</a>[/CODE] That is a simple code I have set …

Member Avatar for tinymark
0
122
Member Avatar for andrewliu

Hello, I'm trying to create a search engine for my databse. I be able to select multiple tables [CODE]$sql = mysql_query("SELECT * FROM table1, table2, table3 WHERE ...");[/CODE] I was wondering if this even works? If it does, how do I get rows from different tables? [CODE]while($row = mysql_fetch_array($sql)){ $fromtable1 …

Member Avatar for andrewliu
0
226
Member Avatar for andrewliu

Hello, I was thinking what would be a best way to create another column if a list is too long? Say I have a <ul> tag and doing a while loop output <li> tags. Would it be good to just use like a while loop and set the condition to …

Member Avatar for petr.pavel
0
207
Member Avatar for andrewliu

Hello, I'm using curl to scrape information through sites. Since some sites don't have subscriptions, I would like to get information from their sites without constantly going to the site. I was wondering if you can sort their content when you've scrapped through site? Like if there was a list …

Member Avatar for smantscheff
0
63
Member Avatar for andrewliu

Hello, I'm building an ecommerce site with php and I'm trying to build an account page so users can manage their credit card info, shipping info, orders, etc... I wanted to design my own Manage Payment options on my site and not have to redirect the user to like paypal …

Member Avatar for andrewliu
0
137
Member Avatar for andrewliu

Hello all! I have set up a multidimensional array, and I was wondering how would I update a value within the array? Like how if you update a value in mysql, u use mysql_query("UPDATE.... Simply the same thing I want to achieve in an array. I just wanted to update …

Member Avatar for andrewliu
0
1K
Member Avatar for andrewliu

Hello, I'm building an ecommerce site and I was wondering if developers usually use mysql to store credit card information? Or do they use some other service to store credit card information? I want my website to be secure for my users. Thank you

Member Avatar for andrewliu
0
549
Member Avatar for andrewliu

Hello, I have a problem that I'm trying to figure out. I'm trying to come up with a solution where I have multiple links in a form... Let me give an example : [CODE] <form name='newForm' method='post' action=''> while($row .....) { <input type='hidden' value='".$id."' name='selBillAdd'/> <a href='#' onclick='document.forms["newForm"].submit();' >Use This …

Member Avatar for andrewliu
0
150
Member Avatar for andrewliu

Hello, If a user logs in with an email address and I have a session to save its email address so I can pass it along to other pages, how does it work if the user decides to update their email address in their account page? Will the session that …

Member Avatar for andrewliu
0
117
Member Avatar for andrewliu

Hello, I have these div tags, they're very similar but I just need to change the IDs. Is there anyway to condense this code? [CODE] $(document).ready(function(){ //Full Name var changeName = $('#changeName'); var cancelName = $('#cancelName'); var fullnameDisplay = $('#fullnameDisplay'); var fullnameChange = $('#fullnameChange'); var helperName = $('#helperName') changeName.click(function(){ $(this).hide(); …

Member Avatar for andrewliu
0
155
Member Avatar for andrewliu

I have this link, and when you click on it, theres a GET variable lets say domain.php?page= [CODE]$_GET['page'];[/CODE] and if page equals a variable, I can echo out a form. So what if that form has a link to edit, but its under domain.php?page=[B]form[/B] oh and I have set this …

Member Avatar for Shanti C
0
105
Member Avatar for andrewliu

Hello. I'm still in the learning process. I'm trying to figure out how this works. I'm trying to change the background and color of the text on hover and make it click able. When it is clickable, I would like the background to change on active, and then when you …

Member Avatar for andrewliu
0
341
Member Avatar for andrewliu

Hello, I've been trying to figure this out and I'm not sure why my code does not work? [CODE]$(function(){ $('ul.ldd_menu li.topLink ul').hide(); $('div.ldd_submenu').hide(); $('div.submenu_top').hide(); $('li.topLink').hover(function(){ $(this).find('ul').show() $(this).css({'color':'#FFF','background-color':'#000000'}); $(this).find('div').show() },function(){ $(this).find('ul').hide(); $(this).css({'color':'#000','background-color':'#ffffff'}); $(this).find('div').hide(); }); });[/CODE] That is my code, and the background-color works. But why doesn't my font color change colors …

Member Avatar for andrewliu
0
123
Member Avatar for andrewliu

Hello all! I have a problem with my jquery. I have hidden some parts of my menu, but I can't seem to hide the div tag. How do I accomplish this? This is my jquery: [CODE]$(function(){ $('ul.ldd_menu li.topLink ul').hide(); $('li.topLink').hover(function(){ $(this).find('ul').show() $(this).css({'background-color':'#000000', 'color':'#ffffff'}); },function(){ $(this).find('ul').hide(); $(this).css({'background-color':'#ffffff','color':'#000000'}); }); });[/CODE] This is …

Member Avatar for andrewliu
0
124
Member Avatar for andrewliu

Is there a way to read the contents in a word or pdf document and output it with the exact format it is inside the document (i.e. spaces, indents, etc...)? Thank you

Member Avatar for smantscheff
0
52
Member Avatar for andrewliu

Hello, I'm having trouble figuring this one out. I'm trying to output more field boxes when a certain value is selected from a populated drop down menu. [CODE] <select name="selected_category" id="selected_category"> <option value='0'>Select Category</option> <option value='1' id='text' >Text</option> <option value='2' id='text2' >text2</option> <option value='new_category' id='new_category' >Add New</option> </select> <div class="works" …

Member Avatar for andrewliu
0
163
Member Avatar for andrewliu

Hello, I'm still learning jquery and I was wondering how to work with dynamic links So say I have a while loop, and inside theres a link something like this: [CODE]while($row = mysql_fetch_array($sql_query) $test = $row['id']; { echo "<a href='".$test.php."'>".$test."</a>"; }[/CODE] I want to be able to click on the …

Member Avatar for Agarsia
0
120
Member Avatar for andrewliu

Hello. I have gone through various checks, and I can't seem to figure this one out... [CODE]while($row_sizes = mysql_fetch_array($sql_sizes)); { $sizes = $row_sizes['size']; $product_list .= count($sizes); $product_list .= "<li>".$sizes."</li>"; }[/CODE] Its not outputting any sizes. However, my count($sizes) outputs 0. And that shouldn't because I have [CODE] $sql_colors = mysql_query("SELECT …

Member Avatar for andrewliu
0
113
Member Avatar for andrewliu

I have an [B]ajax-register.php[/B] [CODE]include("connection.php"); if($_POST) { //form data $fname = mysql_real_escape_string($_POST['fname']); $lname = mysql_real_escape_string($_POST['lname']); $password = md5(mysql_real_escape_string($_POST['password'])); $confimPass = md5(mysql_real_escape_string($_POST['confirmPass'])); $email = mysql_real_escape_string($_POST['email']); $confirmEmail = mysql_real_escape_string($_POST['confirmEmail']); $dob = mysql_real_escape_string($_POST['dob']); // database $queryreg = ("INSERT INTO users (fname,lname,password,email,dob) VALUES ('$fname','$lname','$password','$email','$dob'"); mysql_query($queryreg) or die(mysql_error()); }[/CODE] Then I have my [B]register.php[/B] with …

Member Avatar for johnsteve.bravo
0
236
Member Avatar for andrewliu

Hello I have a question dealing with links and the page that the link is directed to. So if i have [CODE]<a href="www.check.com/check.php">check</a>[/CODE] And if I click on it and then i go to that page. I would like the "check" link to be underlined. So I would like the …

Member Avatar for andrewliu
0
80
Member Avatar for andrewliu

Hello I have a menu and when you hover theres a drop down. I also have a div tag surrounding this "ul" tag that drops down. The div tag has a border on top to make it more appealing. But I'm trying to hide this div tag because the border …

0
63
Member Avatar for andrewliu

Hello, I'm having trying implementing this... I have a menu that drops down using jquery when a mouse hovers over it. I want to be able to set a background color on the link so when the mouse moves to the sub menus, the user will remember that the submenu …

Member Avatar for Bestwebdesign
0
196
Member Avatar for andrewliu

Hello, I have a problem with my image. I have an image displayed. But I also have set up a div table to display in front of it. I have set my z-index of my div table to 100 and my image to -1 with position: absolute. This way it …

Member Avatar for codewall
0
38
Member Avatar for andrewliu

Hello I hope you can assist me with this :) [CODE]$(document).ready(function(){ $(".downservices").mouseenter(function() { $(this).parent().find(".servicesdropped").slideDown("fast").show(); $(this).parent().hover(function() { }, function(){ $(this).parent().find(".servicesdropped").slideUp("fast"); }); }); });[/CODE] This code allows me to make a drop down menu when the cursor hovers over a link. I have a horizontal menu, so when I hover over a …

Member Avatar for bvelez352
0
163
Member Avatar for andrewliu

Hello, I'm displaying information, but I'm trying to figure out how to create a button that says "change details" and in the exact place of the displayed information, there will be input fields where you can change details ex: Color : Blue Size : Large (link or button for change …

Member Avatar for AleMonteiro
0
85
Member Avatar for andrewliu

Hello if my page outputs a certain item number from my database, how do i put that item number into my javascript? [CODE] '<div class="update".$item_id.">'; [/CODE] say i have $item_id and it various how do i put it into javascript code? would it be the same thing? I can just …

Member Avatar for andrewliu
0
157
Member Avatar for andrewliu

I'm trying to create a shopping cart but I need help with arrays. [CODE]if(!isset($_SESSION["cart_array"])||count($_SESSION["cart_array"])<1){ // RUN IF THE CART EMPTY OR NOT SET $_SESSION["cart_array"]=array(1=>array("item_id"=>$pid,"quantity"=>1, "item_size" => $size, "item_color" => $color)); //quantity => $quantity (can be applied) }else{ // RUN IF THE CART HAS AT LEAST ONE ITEM IN IT foreach($_SESSION["cart_array"] …

Member Avatar for andrewliu
0
149
Member Avatar for andrewliu

Hello, I have a problem with my css styling with div tags. Right now I have 3 div tables and they're aligned next to each other when I do [CODE]float:left;position:relative; [/CODE] but when I drag my browser smaller, the div tags that are in the middle and on the right …

Member Avatar for andrewliu
0
369
Member Avatar for andrewliu

Hello. I have an image that is stored in a folder directory, and I was wondering how I can use php to retrieve that image by its name and directory with a search. I do have a search that will retrieve information on mysql, but I don't know the code …

Member Avatar for andrewliu
0
175
Member Avatar for andrewliu

Hello, I have a login form and a user can register their email address. But I was wondering how do I only allow certain email domains able to register? Like if I only want @gmail.com or @yahoo.com only This is my code right now [CODE] /* Email error checking */ …

Member Avatar for andrewliu
0
150
Member Avatar for andrewliu

Hello, I have a variable that I want to pass into my include file but not sure how to do this say i have this in my index.php file [CODE] <?php $new_id = $row['id']; include('main.php') ?> [/CODE] How would my $new_id get passed into my main.php file? I'm trying to …

Member Avatar for hielo
0
312
Member Avatar for andrewliu

Hello, I'm using php to write my code and I have an if else statement. If the user is logged in, show the content. If the user is not logged in, show a login form where the user has to input username/password. So how do I correct my layout where …

Member Avatar for diafol
0
96
Member Avatar for andrewliu

Hello, I have a button that counts the number of clicks. when it is clicked, number goes up, and the image disappears. but I want it to show the image again when it is clicked, but can't be clicked after the first time is clicked. I already have this script …

Member Avatar for andrewliu
0
126
Member Avatar for andrewliu

Hello, I was wondering what it is I need to do in order for my width of the div tag to be 1000px; and then it will shrink/resize the width of it if the browser shrinks/resized? Thank you

Member Avatar for andrewliu
0
113
Member Avatar for andrewliu

[CODE]<form> <table class="spon_info"> <tr><td> <label for="add_street" style="font-size:12px;vertical-align:middle;padding-left:2px;">Street</label></td><td> <input name="add_street" type="text" style="vertical-align:middle" value="" size="35" maxlength="50"/> </td></tr> <tr><td> <label for="add_city" style="font-size:12px;vertical-align:middle;padding-left:2px;">City</label></td><td> <input name="add_city" type="text" style="vertical-align:middle" value="" size="35" maxlength="30"/> </td></tr> <tr><td> <label for="add_state" style="font-size:12px;vertical-align:middle;padding-left:2px;">State</label></td><td> <input name="add_state" type="text" style="vertical-align:middle" value="" size="5" maxlength="2"/> </td></tr> </table> </form>[/CODE] I have this table and in that table has …

Member Avatar for JRM
0
149
Member Avatar for andrewliu

Hello, I have set up a searchable database code for my website and I was wondering if it is possible to filter the database if I have two of the same names. Example: my database consists of names and other information, but I have similar names but different information for …

Member Avatar for andrewliu
0
108
Member Avatar for andrewliu

Hello, I'm trying to get a div tag to move while scrolling. I know you can do position: fixed, but I was wondering how to do it so if the div tag is in the middle of the web browser, it will stay there until when you scroll down and …

Member Avatar for andrewliu
0
107
Member Avatar for andrewliu

Hello. I have a search engine, and I was wondering how to have certain checkbox forms appear depending on what the person searches for. And would it be easy to make the checkbox filter out the search results I have? I tried looking for it online but I can't find …

Member Avatar for andrewliu
0
54
Member Avatar for andrewliu

Hello, I was wondering what could be wrong? There is this ajax code that I'm trying to work on and its supposed to show the results in a div tag when submitting a search form, but theres no results. here's my code [CODE]$(document).ready(function(){ $("form.ajax").submit(function(){ var ajax_div = $(this).attr("id")+"_results"; var data …

Member Avatar for andrewliu
0
351
Member Avatar for andrewliu

Hello, I have a search engine that I've created. It searches my MySQL database, but I was wondering how do you make it so it won't refresh the page? This is my form.php [CODE]<?php global $search_term; global $location_term; ?> <form action="index2.php" name="form" style="float:right;width:650px;height:60px;margin-right:30px;" onSubmit="return searchLocations();" > <table style="float:right;"><tr> <td> <label …

0
98
Member Avatar for andrewliu

Hello, I'm following this script [url]http://evolt.org/PHP-Login-System-with-Admin-Features?from=2450&comments_per_page=50[/url] and it uses username to sign up. I was wondering if anyone can help me out in figuring out what to change in order for the user to input the username to email sign in. I know how to change the main.php where you …

Member Avatar for andrewliu
0
312
Member Avatar for Stefano Mtangoo

[QUOTE=phpbeginners;951387]Try this: [url]http://evolt.org/node/60384[/url] Admin/user If you want multiple login with the number of cashier, supervisor etc... Admin/master/agent/user/guest [url]http://sourceforge.net/projects/phploginsystemw/[/url][/QUOTE] Hey, I was wondering if you know how to change the username login to email login from the evolt.org website Thanks

Member Avatar for Stefano Mtangoo
0
1K
Member Avatar for andrewliu

Hello. I have a search engine form that is not ajax and it refreshes the page on search. I was wondering if it is possible to type a onclick code where it will contain my php script for the search engine by when you search, it'll send show the result …

Member Avatar for Graphix
0
118
Member Avatar for andrewliu

Hello, I got my search engine working and it does show the number of results including the number of pages it should have. But I'm having trouble outputting the results when I click next. When I click the next page it doesn't show any results. [code]<?PHP global $search_term; global $location_term; …

Member Avatar for andrewliu
0
293
Member Avatar for andrewliu

Hello, I'm trying to create a list of categories and have a link with "more categories" and when a user clicks on it, a div table pop up will show. So far I've hidden a div tag and had it show and close if a user clicks on the link. …

Member Avatar for almostbob
0
148

The End.