Jump to content

divinedesigns1

Members
  • Posts

    1,200
  • Joined

  • Last visited

Posts posted by divinedesigns1

  1. Can you explain a little what you mean by that?

     

    flat means not shadows and borders?Also what's elegant style?On the site you linked I saw only 2 screenshots.

    like put some color in it, maybe some box shadow, border, something that will make it pop a little, to me its just plain, and i saw some plain website that are amazing

  2. i have been using javascript to move from one div within a form to the other but when it comes to getting the information from the textarea it doesnt get that value, i am using the id of the textarea to do so, is there a way for me to get this value?

    function processPhase2(){	page1 = _("page1").value;	epage1 = _("page1extra").value;	if(page1.length > 4 && epage1 > 4){		_("phaseform2").style.display = "none";		_("phaseform3").style.display = "block";		_("progressBar").value = 66;		_("status").innerHTML = "Phase 3 of 3";	} else {	    alert("Please fill in the fields");		}}
    <div id="phaseform2">    	<textarea name="page1" id="page1" rows="10" cols="40" placeholder="Details that you want on the Home Page or Page One"></textarea>        <textarea name="page1extra" id="page1extra" rows="10" cols="40" placeholder="Extra details that you want on the Home Page or Page One"></textarea>        <input name="phase2image1" type="file"> <input name="phase2image2" type="file"> <input name="phase2image3" type="file"> <input name="phase2image4" type="file">    	<button onclick="processPhase2()">Continue</button>    </div>
  3. What you do when You have big problem regarding CSS and also me tell what kind of online references you rad for your solution?

    depends on whats the problem is, and theres a css section on this website

  4. ORDER BY RAND()

    ORDER BY RAND() would take too long, according to what i have readed so far

     

     

    Do you mean to randomize the order of the records? Or to retrieve a random record from the database?

     

    To retrieve multiple random rows efficiently is a bit complicated. Here's what seems to be a solution:

    http://snippetsofcode.wordpress.com/2011/08/01/fast-php-mysql-random-rows/

    I don't recommend using the mysql PHP extension as that example does, use MySQLi or PDO.

     

    To look for a single random row is simpler:

    1. First determine how many rows there are:

    SELECT COUNT(*) AS numRows FROM data 

    2. Store the result in a PHP variable, $numRows.

    3. Make a PHP variable with a random number:

    $rand = mt_rand(0, $numRows);

    4. Then search for the row with that number

    SELECT * FROM data LIMIT $rand, 1

    i will try this and get back to you with the results, appreciate all the help

  5. I would appreciate your help with layering a widget title with a background over a slider.

     

    The demo site appears here:

     

    http://acceleratedpowermarketing.com/reicher/

     

    I want it to look like this:

     

    http://www.standrewsch.org/

     

    Where the bar with the title doesn't move when the screen is zoomed.

     

    Using this code, I'm able to get it to look like I want if it's zoomed at the correct place. Otherwise the bar, is out of place.

     

    I want to learn how to do this with blocking if that is possible and will solve the problem.

     

    Thanks

     

     

    #it_widget_content-5 .widget-title {

    background: url("images/Home-Page-Banner.jpg") repeat scroll 0 0 rgba(0, 0, 0, 0);

    color: #fff;

    font-size: 2em;

    font-weight: normal;

    padding: 0.35em 0.5em;

    position: absolute;

    right: 15%;

    text-indent: 0;

    top: 30%;

    z-index: 995;

    }

    that look exactly like the first website

  6. now i found the problem -_- bastard

    ( ! ) Notice: Undefined index: images in C:wampwwwe-commeradmininventory_edit.php on line 95

    and this is my script, not sure why its not recognizing the input type

    if(isset($_GET['pid'])){					$pid = $_GET['pid'];					$dwl = mysqli_query($con, "SELECT * FROM items WHERE id='$pid' LIMIT 1") or die('Error: ' . mysqli_error($con));					// try to get the info to display					if($dwl){						while($row = mysqli_fetch_array($dwl)){							$id = $row['id'];							$pname = $row['product_name'];							$price = $row['price'];							$details = $row['details'];							$cate = $row['category'];							$subcate = $row['subcategory'];						}						echo '<form action="" method="post">						<table align="center" width="90%">						<tr>							<td>Product Name</td>							<td><input type="text" name="product_name" size="24" value="' .$pname . '"></td>						</tr>						<tr>							<td>Product Price</td>							<td>$<input type="text" name="price" size="2" value="' .$price . '"></td>						</tr>						<tr>							<td>Category</td>							<td><input type="text" name="category" size="24" value="' .$cate . '"></td>						</tr>						<tr>							<td>Subcategory</td>							<td><input type="text" name="subcategory" size="24" value="' .$subcate . '"></td>						</tr>						<tr>							<td>Product Details</td>							<td><textarea name="details" rows="8" cols="30">' . $details . '</textarea></td>						</tr>						<tr>							<td>Product Image</td>							<td><input name="images" type="file"></td>						</tr>						<tr>							<td></td>							<td>								<input type="submit" name="submit" value="Save">							</td>						</tr>					</table>						</form>';						// input the updates						if(isset($_POST['submit'])){							// santize							$pname = mysqli_real_escape_string($con, $_POST['product_name']);							$price = mysqli_real_escape_string($con, $_POST['price']);							$cate = mysqli_real_escape_string($con, $_POST['category']);							$subcate = mysqli_real_escape_string($con, $_POST['subcategory']);							$details = mysqli_real_escape_string($con, $_POST['details']);							// input the update							$upsql = mysqli_query($con, "UPDATE items SET product_name='$pname', price='$price', details='$details', category='$cate', subcategory='$subcate' WHERE id='$pid'") or die('Error: ' . mysqli_error($con));							// try to overwrite the image							$file = $_FILES['images']['tmp_name'];							if($file){								$newimg = $id . ".jpg";								move_uploaded_file($file, "/inventory_images/" . $newimg);								}							//header("location:inventory_list.php");						}					}				}
  7. im trying to over write an item using this code

    if($_FILES['images']['tmp_name'] != ""){      $newimg = "$id.jpg";      move_uploaded_file($_FILES['images']['tmp_name'], "inventory_images/$newimg");}

    what it does is check to see if the image isnt empty and if it isnt you upload the new image to replace the old one, but so far im having problems with replacing the current image

  8. If you're talking about the borders above and below the links, that's just a gradient. CSS has support for background gradients I believe.

    yeah, i just found the link with the fancy css curves that you had send me a few months ago.

     

    I thought you might be talking about a div with rounded corners

    http://www.w3schools.com/css/css3_borders.asp

     

    Your image leaves a lot to the imagination.

    not that exactly but ill try to do it with the css thanks for helping tho

  9. i am trying to learn how to go about learning to make the below image navigation bar, i have been doing some research on how to make it, but no luck so far, i prefer to make it in photoshop or using css to make the curve. any link or tips will be appreciated greatly

     

    4dd2f5688e1f2ca185cf137cfc32cc86.jpg

  10. I am new at server side scripting and around here. Can someone tell me how to create a page for each files (like all download pages).Any help would be appreciated. Thank you

    open notepad and save it according to what your script is about

×
×
  • Create New...