- Upvotes Received
- 0
- Posts with Upvotes
- 0
- Upvoting Members
- 0
- Downvotes Received
- 1
- Posts with Downvotes
- 1
- Downvoting Members
- 1
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 … |
|
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 … |
|
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> … |
|
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 … |
|
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 … |
|
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 … |
|
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 … |
|
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 … |
|
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 … |
|
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 … |
|
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 … |
|
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 |
|
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 … |
|
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 … |
|
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(); … |
|
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 … |
|
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 … |
|
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 … |
|
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 … |
|
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 |
|
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" … |
|
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 … |
|
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 … |
|
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 … |
|
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 … |
|
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 … |
|
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 … |
|
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 … |
|
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 … |
|
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 … |