Posts
 
Reputation
Joined
Last Seen
Ranked #4K
Strength to Increase Rep
+0
Strength to Decrease Rep
-0
100% Quality Score
Upvotes Received
5
Posts with Upvotes
5
Upvoting Members
5
Downvotes Received
0
Posts with Downvotes
0
Downvoting Members
0
1 Commented Post
0 Endorsements
Ranked #914
~11.6K People Reached
PC Specs
Compaq 610 ,Microsoft Windows 7 Ultimate SP 1

43 Posted Topics

Member Avatar for Amr87

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> …

Member Avatar for Amr87
0
264
Member Avatar for Amr87

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 ? …

0
87
Member Avatar for Amr87

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='' …

Member Avatar for Amr87
0
1K
Member Avatar for Amr87

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 …

Member Avatar for Amr87
0
210
Member Avatar for Amr87

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 ( …

Member Avatar for Amr87
0
144
Member Avatar for Amr87

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 …

Member Avatar for nits18
0
197
Member Avatar for Amr87

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 …

Member Avatar for Amr87
1
125
Member Avatar for jacksantho

because you have a typo in the function and the correct one is [CODE]<?php mysql_real_escape_sting()?>[/CODE]

Member Avatar for jacksantho
0
1K
Member Avatar for WaltP

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', …

Member Avatar for WaltP
0
176
Member Avatar for triumphost

providing the code you are using will help in getting your problem solved , please provide the code

Member Avatar for Amr87
0
227
Member Avatar for Amr87

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 …

0
94
Member Avatar for Amr87

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 …

Member Avatar for Amr87
0
374
Member Avatar for Amr87

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 …

Member Avatar for Stefano Mtangoo
0
69
Member Avatar for dahi_man

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?

Member Avatar for dahi_man
0
108
Member Avatar for Kratos-s-

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

Member Avatar for rpv_sen
0
254
Member Avatar for decade

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 …

Member Avatar for decade
0
139
Member Avatar for l0ns008

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 …

Member Avatar for l0ns008
0
2K
Member Avatar for Amr87

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 :)

Member Avatar for Ancient Dragon
0
68
Member Avatar for chris_j_haines

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 …

Member Avatar for chris_j_haines
0
175
Member Avatar for chris_j_haines

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 …

Member Avatar for chris_j_haines
0
127
Member Avatar for Jamesiscrazzy

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 …

Member Avatar for Jamesiscrazzy
0
236
Member Avatar for smrict

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]

Member Avatar for chrishea
0
274
Member Avatar for lisaroy1

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]

Member Avatar for novice02
0
147
Member Avatar for Waynef

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 …

Member Avatar for Waynef
0
149
Member Avatar for momonq1990
Member Avatar for Amr87
0
80
Member Avatar for extemer

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; …

Member Avatar for Amr87
0
552
Member Avatar for vernz

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 ;)

Member Avatar for vernz
0
104
Member Avatar for Danny159

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 …

Member Avatar for Danny159
0
167
Member Avatar for Amr87

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 & …

Member Avatar for Amr87
0
79
Member Avatar for Ichcha

[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]

Member Avatar for smrict
0
143
Member Avatar for uselessninja
Member Avatar for newbie14

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 …

Member Avatar for malini1211@gmai
0
520
Member Avatar for momonq1990

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 …

Member Avatar for Amr87
0
156
Member Avatar for debasishgang7

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 () …

Member Avatar for Palle L
0
161
Member Avatar for Amr87

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"; …

0
46
Member Avatar for Amr87

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 ??

Member Avatar for chrishea
0
48
Member Avatar for Amr87
0
58
Member Avatar for ubi_ct83

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 …

Member Avatar for ubi_ct83
0
222
Member Avatar for techie929

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 …

Member Avatar for Luckychap
0
103
Member Avatar for masocha

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 …

Member Avatar for Amr87
0
999
Member Avatar for kuri88

[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 …

Member Avatar for Amr87
0
74
Member Avatar for Amr87

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 …

Member Avatar for Amr87
0
105
Member Avatar for Amr87

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 …

Member Avatar for Taywin
0
144

The End.