Search found 112 matches

by gandahar
Fri Apr 27, 2012 5:28 pm
Forum: JavaScript
Topic: auto scroll text upwards within div.
Replies: 3
Views: 1947

Re: auto scroll text upwards within div.

try with jQuery, it's very simple to animate scroll

example:

function goToByScroll(id){
$('html,body').animate({scrollTop: $("#"+id).offset().top},'slow');
}
goToByScroll("anchorId");

you can put an anchor and pass the id to the function
by gandahar
Fri Apr 27, 2012 5:23 pm
Forum: JavaScript
Topic: Change window location then iframe src when press button
Replies: 1
Views: 1233

Re: Change window location then iframe src when press button

i dont understand really where is the iframe and from where you want to redirect, but take a look :

Code: Select all

parent.document.location.href=URL;
document.location.href=iFrameURL;
but, hey, if you first load a page to parent, iframe will disappear ;)
by gandahar
Fri Apr 27, 2012 5:15 pm
Forum: JavaScript
Topic: Pass 2D array from Webpage to PHP page VIA jQuery or JS
Replies: 0
Views: 1172

Re: Pass 2D array from Webpage to PHP page VIA jQuery or JS

Code: Select all

var myArray = new Array();

myArray[0] = new Array(1,2,3);
myArray[1] = new Array(4,5,6);
//etc...
by gandahar
Fri Apr 27, 2012 5:10 pm
Forum: JavaScript
Topic: Javascript Validation
Replies: 2
Views: 1190

Re: Javascript Validation

hi ! it's not working because the name of the variable can't be completed by other variable, if you want to do this, try jQuery, you have lots of selector option //try to put an id it will be much easier //(i added a class to the input field for jQuery example) <input type='text' id='clockIn_<?php e...
by gandahar
Fri Apr 27, 2012 4:54 pm
Forum: PHP coding => Images
Topic: load image as link from database
Replies: 1
Views: 1791

Re: load image as link from database

hi!

you can try something like this :

Code: Select all

//database query
$image_URL=$result['image_URL']);
echo '<a href="'.$image_URL.'"><image src="'.$image_URL.'"></a>';
by gandahar
Fri Feb 03, 2012 8:37 am
Forum: PHP coding => General
Topic: $_SESSION not being passed
Replies: 1
Views: 588

Re: $_SESSION not being passed

check your cart.php if it contain session_start();
maybe you can try to change header by

Code: Select all

die('<script>document.location.href="cart.php"</script>');
by gandahar
Tue Jan 31, 2012 8:47 am
Forum: PHP coding => General
Topic: multidimensional array sort ?
Replies: 1
Views: 510

Re: multidimensional array sort ?

EXPECTED RESULT : $myArray[0][0]['priority']=1; $myArray[0][1]['priority']=2; $myArray[0][2]['priority']=3; $myArray[0][3]['priority']=4; $myArray[1][0]['priority']=1; $myArray[1][1]['priority']=2; $myArray[1][2]['priority']=3; $myArray[1][3]['priority']=3; i need to sort this array with the key 'p...
by gandahar
Tue Jan 31, 2012 4:15 am
Forum: PHP coding => General
Topic: retrieving data from $_post string
Replies: 1
Views: 583

Re: retrieving data from $_post string

$_GET is not so obvious, it depend of the kind of data you want to send and the maximum length accepted in the URL, it can be a serious limitation, the maximum length of the URL is about 255 chars ( http://stackoverflow.com/questions/812925/what-is-the-maximum-possible-length-of-a-query-string ) for...
by gandahar
Tue Jan 31, 2012 3:09 am
Forum: PHP coding => General
Topic: retrieving data from $_post string
Replies: 1
Views: 583

Re: retrieving data from $_post string

hey ;) the example of URL you give is for use with $_GET for example when sending a form with <form method="GET">: itemimage.php?type=2&design=3 $type=$_GET['type']; // $type=2 $design=$_GET['design']; // $design=3 the variable $_POST is used when you send a form with method="POST", the data will no...
by gandahar
Mon Jan 30, 2012 8:31 am
Forum: PHP coding => General
Topic: multidimensional array sort ?
Replies: 1
Views: 510

multidimensional array sort ?

Hi all ! :D i have this array filled by multiple for loops: $array[$counterA][$counterB]['id_ficheclient'] $array[$counterA][$counterB]['nomservicio'] $array[$counterA][$counterB]['priority'] $array[$counterA][$counterB]['id_plato'] $array[$counterA][$counterB]['plato_ES'] $array[$counterA][$counter...
by gandahar
Thu Jan 26, 2012 6:58 am
Forum: mySQL & php coding
Topic: [Solved] Select Match Against with accent insensitive
Replies: 1
Views: 565

Re: Select Match Against with accent insensitive

ok, it's working now !!! I changed all the database this morning and I didn't make a new test after, but its working now this query is by default ACCENT INSENSITIVE but look at the query below, I changed the quotes, and it work now :D if it can help : $res = mysql_query("SELECT id_plato,plato_ES,pla...
by gandahar
Thu Jan 26, 2012 5:39 am
Forum: mySQL & php coding
Topic: [Solved] Select Match Against with accent insensitive
Replies: 1
Views: 565

[Solved] Select Match Against with accent insensitive

Hi all ! :D I have this query : $res = mysql_query('SELECT id_plato,plato_ES,plato_FR,plato_EN, MATCH(plato_ES, plato_FR, plato_EN) AGAINST ("'.$q.'") AS score FROM a_platos WHERE id_plato IN '.$bout_de_requete.' and MATCH (plato_ES, plato_FR, plato_EN) AGAINST("'.$q.'") ORDER BY score DESC'); $q = ...
by gandahar
Wed Jul 20, 2011 12:49 pm
Forum: PHP General
Topic: Php link exchange with pics
Replies: 1
Views: 681

Re: Php link exchange with pics

no, it's not what i'm doing, but when you post question like this, it's clear you have not used google to find anything, we can't respond to you if you do nothing a minimun by yourself, :yawn:

try something, when you get stuck, i'll help you, whith pleasure

bye
by gandahar
Wed Jul 20, 2011 9:12 am
Forum: PHP coding => General
Topic: Help about PHP and JScript
Replies: 0
Views: 496

Re: Help about PHP and JScript

replace content of a div with javascript : function : <script> function sendCONTENTtoDiv(divID){ document.getElementById(divID).innerHTML = '<a href=""><img src="">'; //or you can assign directly the content of a hidden div : document.getElementById(divID).innerHTML = document.getElementById('hidden...
by gandahar
Wed Jul 20, 2011 9:03 am
Forum: PHP General
Topic: Auto increment a form value - Please Help..!!
Replies: 0
Views: 462

Re: Auto increment a form value - Please Help..!!

look at the manual of you provider, or the bank

they must have one, they always can help you
by gandahar
Wed Jul 20, 2011 9:00 am
Forum: PHP General
Topic: Php link exchange with pics
Replies: 1
Views: 681

Re: Php link exchange with pics

do you know google ?
by gandahar
Wed Jul 20, 2011 12:29 am
Forum: JavaScript
Topic: Editable regions within list box option
Replies: 1
Views: 1097

Re: Editable regions within list box option

yes it's possible, please post the code between apropriate [code tag

have you found solution to your problem ?
by gandahar
Wed Jul 20, 2011 12:26 am
Forum: PHP coding => General
Topic: Getting a file path from another page/Saving it to DB
Replies: 0
Views: 538

Re: Getting a file path from another page/Saving it to DB

$thelist .= '<a href="'.$file.'">'.$file.'<br></a>'; $thehyperlink = '<a href="'.$file.'">'.$file.'<br></a>'; $query = "INSERT INTO files.files_tbl(Name) VALUES ('$thehyperlink');"; mysql_query($query) or die('Error, Insert query failed' . mysql_error()); $thehyperlink contain hyperlinked file, jus...
by gandahar
Wed Jul 20, 2011 12:20 am
Forum: PHP coding => General
Topic: Need help on bidding site
Replies: 0
Views: 432

Re: Need help on bidding site

disable the button when clicked one time...
by gandahar
Wed Jul 20, 2011 12:19 am
Forum: PHP coding => General
Topic: Help on 'get only a certain part of a variable'
Replies: 4
Views: 976

Re: Help on 'get only a certain part of a variable'

easy :

Code: Select all

$myVar= $_GET['id'];
$myVar = 195
by gandahar
Wed Jul 20, 2011 12:17 am
Forum: PHP coding => General
Topic: user profile help
Replies: 0
Views: 530

Re: user profile help

what the problem ? I don't understand
by gandahar
Mon Jul 18, 2011 1:07 am
Forum: PHP coding => General
Topic: Changing url from GET to POST
Replies: 0
Views: 413

Re: Changing url from GET to POST

if you want to use post, you'll need to send a form, or use ajax easy to do it with simple form (there is various way to do it, this one is easy to understand) : <form name="NOform" id="NOform" action="ratepost.php"> <img src="http://riot-web-static.s3.amazonaws.com/forum/ui/thumbs_down.png" onclick...
by gandahar
Mon Jul 18, 2011 12:51 am
Forum: PHP coding => General
Topic: simple form using javascript and php
Replies: 2
Views: 630

Re: simple form using javascript and php

Hi all, i want to create a simple form with 5 fields name,email id,password,retype password and phone number.I have written code in javascript now tell me how to do next step. below i have written functions for every one..... i am confused how to do next..... <html> <head> <SCRIPT LANGUAGE="JavaScr...
by gandahar
Mon Jul 18, 2011 12:40 am
Forum: PHP coding => General
Topic: frndz plz help
Replies: 0
Views: 417

Re: frndz plz help

google know that, no need to create a post
by gandahar
Mon Jul 18, 2011 12:39 am
Forum: PHP coding => General
Topic: Yes/No disable text box
Replies: 4
Views: 971

Re: Yes/No disable text box

here a working example : <form name="" action=""> <input type="radio" name="radioGroup" value="No" onclick="document.getElementById('theTXTBox').disabled='disabled';"> <input type="radio" name="radioGroup" value="Yes" onclick="document.getElementById('theTXTBox').disabled=false;"> <input type="text"...