- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 5
- Posts with Upvotes
- 5
- Upvoting Members
- 5
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
- PC Specs
- Compaq 610 ,Microsoft Windows 7 Ultimate SP 1
43 Posted Topics
I have an array ob objects like this `[Object { cat="4", attr={"att1":"val1","att2":"val2","att3":"val3"}}, Object { cat="2", attr={"att1":"val1","att2":"val2","att3":"val3"}}, Object { cat="3", attr={"att1":"val1","att2":"val2","att3":"val3"}}, Object { cat="2",attr={"att1":"val1","att2":"val2","att3":"val3"}}, Object { cat="3", attr={"att1":"val1","att2":"val2","att3":"val3"}}]` and I have series of divs with child divs as follow <div class="container" data-cat="1"> <div class="zone" data-product=""></div> <div class="zone" data-product=""></div> <div class="zone" data-product=""></div> … | |
I have the following code that craete homepage builder setting page under the appearance tab I am saving and retrieving the option successfuly but when I am echoing them to the hidden input type values I got NULL value why is that although the saving and retrieval is ok ? … | |
I have function that creates textareas fields on the fly upon a click on a link I want to convert these textareas into tinymce wysiwyg here is the code $("body").delegate("a.add_tab","click",function(e){ e.preventDefault(); var uniq = $(this).attr("uniqid"); add_tab_ui($(this),uniq); }); function add_tab_ui(elem,uniq){ var content = "<div class='wrapTab'><label >Tab Title:<input type='text' name='tab-title-"+uniq+"' id='tab-title' value='' … | |
Give that array I want to use the random string attached to the tab-title and tab content keys which are rEXMp and 3T2IV respectively , I want to use those to split the array into two arrays and getting rid of these characters in the new array and also add … | |
I have this array Array ( [0] => Array ( [post_category] => cat-1 ) [1] => Array ( [posts_count] => 33 ) [2] => Array ( [cells_num] => 1 ) [3] => Array ( [grid_num] => 0 ) [4] => Array ( [post_category] => cat-2 ) [5] => Array ( … | |
Hello Everyone , I`m using an Jquery accordion effect that you can download from here [url]http://www.marghoobsuleman.com/jQuery-common-accordion[/url] The Author of this script does not respond to my complains , and I hope u can help me here the problem happens only in webkit based browsers (Chrome,Safari) where when trying to re-play … | |
Hello Everyone , I`m trying to build MVC pattern using OOP PHP , please read the rest of the post to understand what I want exactly This is the homepage controller which extends the main controller [CODE]class Home extends Controller { function __construct () { parent::__construct(); } public function index … | |
Re: because you have a typo in the function and the correct one is [CODE]<?php mysql_real_escape_sting()?>[/CODE] | |
Re: This can be done easily using a combination of Ajax and PHP , see this small solution I made for u and hope that u already familiar with php and ajax u have index.htm [CODE]<!doctype html> <head> <title>Get File Contents</title> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.1/jquery.min.js"></script> <script> function get_content() { $.ajax({ type:'POST', url: 'file.php', … | |
Re: providing the code you are using will help in getting your problem solved , please provide the code | |
Hello Everyone, I`m Using this code to pass javascript associative array to php using jquery ajax [CODE]function install (loc) { var mydata = []; //lightbox(); switch(loc){ case "step1": { mydata['step'] = '1'; mydata['SiteName'] = $("#siteName").val(); mydata['SiteDesc'] = $("#siteDesc").val(); mydata['AdminEmail'] = $("#adminEmail").val(); mydata['username'] = $("#username").val(); mydata['password'] = $("#password").val(); } break; case … | |
Hello Everyone, I`m a PHP developer, These days I`m thinking seriously about learning ruby , but I`m not sure if it gonna add to my knowledge , so i have few questions about it and hope that a ruby specialist will answer me 1- Do I need to learn ruby … | |
Hello Everyone, I have a plain joomla template and I have articles that I want to list on the main the page , but they must take an exact style in displaying , I have an example of what I mean , I just need to know how I can … | |
Re: do you want to list these images as an image gallery in a page for example ? and do you store these images as a path in the database or as actual image? | |
Re: DO NOT USE THIS [CODE]extract($_REQUEST);[/CODE] Also On line 15 on the Php code the global $_POST cant not be written in lowercase $_post as it will be NULL and nothing will be inserted to your database | |
Re: you decide what the function echo should display but if this is error message stored in array of errors for example and you want to get rid of the these characters when displaying the error , then use a function [CODE] <?php function clean_error($error) { return str_replace("0__notice__","",$error); } echo clean_error("0__notice__Email … | |
Re: The Problem is you need to echo the variables $row['category'] in the first page and $row['subcategory'] in the second page inside the hidden input as a value of this input like this for the first page [CODE]<input type="hidden" name="category" value="<?php echo $row['category']; ?>"> [/CODE] and this for the second page … | |
Hello Everyone I want to ask about the Reputation Points and how its being increased for a member(the rule for increasing these points ) thanks :) | |
Re: I know 2 function to do encryption [CODE]md5(); sha1();[/CODE] They have one way algorithm meaning that once you encrypt the parameter u pass it to it , you can not decrypt it again * For determining the user value I suggest that you store the userlevel in your session so … | |
Re: Fisrt : you need to make sure that the password in the database is stored in encrypted Form , If not clear it and add the encrypt form through the use of sha1 function as an example or md5 will work just fine for example [CODE]<?php $password = sha1($_POST['password']); $sql … | |
Re: Its Okay to have your functions all in one place (file) and I like to do that in my projects and even wordpress and joomla works in this modulized way , in fact its good practice - its good practice also to put all your files that will be included … | |
Re: make sure that you file have this basic structure at the begging and at the end [CODE] <?php //Start Session Before anything else session_start(); //Turn ON the output buffering ob_start(); //You Code Goes HERE //At the End Close the output buffering ob_end_flush(); ?> [/CODE] | |
Re: I Highly Recommend this course for you , its just amazing [url]http://www.lynda.com/PHP-tutorials/php-with-mysql-essential-training/435-2.html[/url] | |
Re: To Accomplish this , you should use the string method replace() which takes 2 arguments the portion you want to replace and what you want to replace it with so , in your case you need to replace the whole string except the image name with nothing in the main … | |
Re: what is exactly the effect you want to trigger while hovering over these links? | |
Re: I made you a basic thing using Jquery and hope that is what you want btw, I made slight modification on your html code and removed the javascript entirley html [CODE]<!DOCTYPE html> <html> <head> <title></title> <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.1/jquery.min.js"></script> <script src="popup.js"></script> <style> div {margin:0; padding:0; overflow:hidden;} .holder,#popupMSG {display:none;} #popupMSG { padding:20px; width:300px; … | |
Re: Well Andy , I think this is a whole project task and you need to pay for someone to make him tackle it for you or even make him a partner in this project ;) | |
Re: If you are setting your id field preferences to be AUTO_INCREMENT , then this solution will work for you [CODE] <?php $MaxID = ""; //Declare A Variable to hold the max id and set it to nothing $table = "myTable"; // Declare the table name that you want capture its … | |
Hello Everyone, I just have few questions about the the job of web developer and I hope that I selected the right place 1- what is the difference between web developer and web coder ? 2- should a web developer study computer science deeply , before starting a career & … | |
Re: [B]TRY THIS[/B] [CODE]<?php session_start(); ?> <?php ob_start(); ?> <html> <!-- centermain.php is a frame, user redirected to frame if tried to access from url--> <SCRIPT LANGUAGE='javascript'>try { if (top == self) {top.location.href='centermain.php'; } } catch(er) { } </SCRIPT> </html> <?php ob_end_flush();?> [/CODE] | |
Re: Hope This Helps [CODE]<!DOCTYPE html> <html> <head> <style> a {display:block;} a.clicked { background:#ccc; text-decoration:none; color:#f00; } </style> </head> <body> <ul> <li><a id="" href="#">LINK 1</a></li> <li><a id="" href="#">LINK 1</a></li> <li><a id="" href="#">LINK 1</a></li> </ul> <script type="text/javascript"> window.onload = SetAction(); function SetAction() { var allLinks = document.getElementsByTagName("A"); for (var i=0;i<allLinks.length;i++){ if (allLinks[i].parentNode.nodeName … | |
Re: This is Technically a PHP Question The Answer is that you can access the value of username and password in sample.php using the global variable $_POST (because the form action is POST ) if it is GET then u use $_GET and and u need to pass to the $_POST … | |
Re: see the code below [CODE]<!DOCTYPE html> <html> <head> <title>Ajax Request</title> <script type="text/javascript"> var xhr = false; if (window.ActiveXObject){ xhr = new ActiveXObject("Microsoft.XMLHTTP"); } else { xhr = new XMLHttpRequest(); } xhr.open("GET","yourpage.php",true); // Insert a reference of the php page you wanna get instead of yourpage.php xhr.send(null); xhr.onreadystatechange = function () … | |
Hello Everyonr , I`m Junior PHP developer , and I have problems using phpmailer v .9 I`m using Windows 7 OS and I don`t know if I have SMTP client or not anyway, I used the following code [CODE]<?php require ("includes/phpmailer/phpmailer.inc.php"); require ("includes/phpmailer/smtp.inc.php"); $to_name = "Site Admin"; $to = "chemist_amr87@yahoo.com"; … | |
Hello Everybody I`m using shared server on HostMonster that runs PHP 5.2.17 , and I want to upgrade to the latest version 5.3.6 which I downloaded from PHP.net as tar.gz2 extension first is that possible to replace the version with the newer one? and if so How ?? | |
Re: Do You plan to show hidden inputs when choosing a value from drop down or , you plant to create them ? anyway , If I get you right , see the code below , it will help you and If u wanna ask more question , I will be … | |
Re: This can be solved by javascript as follow: first you need to set a style specific for safari , just ignore the rest of browsers (as long as your code looks pretty in them) and design only for safari then you need to include a bit of javascript code that … | |
Re: This often happens due to the styles of the your container (div) does not suit the amount of the returned data from the request , to solve that , you need to develop a strategy for the styles of the container , for example you need to set some padding … | |
Re: [CODE] <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <!-- use External Stylesheet instead of internal one Also , specify two different external stylesheet , named as classic.css & modern.css --> <link rel="stylesheet" type="text/css" href="#" media="all"/> <script type = "text/javascript"> function start () { var input = prompt( " Enter … | |
Hello Everyone :) I found a script for a sliding effect that uses OO Javascript rather than Jquwry , and I wanted to study it . actually , I`m almost understanding it All , but I have a few question that I hope someone answer regarding this script , I`m … | |
Hello Everyone; I`m Beginner Javascript Developer and I Have a small problem with parseInt method the code is below: [CODE] <script type="text/javascript"> window.onload = Rectangle; function Rectangle () { var e = document.getElementById('Rectanglee'); var w =parseInt(e.style.width); var h =parseInt(e.style.height); alert (w); alert (h); } </script>[/CODE] the code is supposed to … |
The End.