841 Posted Topics

Member Avatar for abelingaw

correct this line to (==) [icode] if ($username == 'letmein') { [/icode] = means assignment operator. == means comparision operator.

Member Avatar for dietdew12z
0
100
Member Avatar for tcollins412
Re: help

if you are listing all clients names from members table then pass member table id as parameter in java script on click function, which is not difficult. like [CODE]<a href="javascript:showuser('<?php=$clicnt_id;?>');"><?php=$client_name;?></a>[/CODE] The [ICODE]$client_id[/ICODE] and [ICODE]$client_name[/ICODE] are the variables contains proper values fetched from database table. If this is not your requirement …

Member Avatar for lyrico
0
75
Member Avatar for chand5055

read this article: [url]http://molendijk.110mb.com/include_menu_tutorial_passing_data/[/url] [url]http://www.cryer.co.uk/resources/javascript/script8.htm?Something=3.%20This%20works%20too[/url]

Member Avatar for Shanti C
0
126
Member Avatar for ypks_destiny

If you want to update a row in your table , then come up with that table's primary key. based on that id you can update your table and refresh that page which contain table data. Means: add this line after your hearder in line number 25 : [ICODE]<td bgColor="#008080"><font …

Member Avatar for ypks_destiny
0
2K
Member Avatar for Eblahmysuper

Two points have to be noted here: 1. if you use else if conditional loop then it will go for only on condition for your input,then other matched inputs will not return strings. 2.decide your input manner, whether it is in comma separated or space separated or some thing else. …

Member Avatar for Eblahmysuper
0
308
Member Avatar for sshaham1
Member Avatar for steelshark
0
70
Member Avatar for panagosa

if [ICODE]if($critiria=="epitheto_iatrou")[/ICODE] this is true, then how would the following become true.. [ICODE]$sql="SELECT * FROM doctors WHERE epitheto='$critiria'";[/ICODE] if [ICODE]$critiria="epitheto_iatrou"[/ICODE] then [ICODE]epitheto==epitheto_iatrou[/ICODE], this never become true.. change your code into accordingly..

Member Avatar for panagosa
0
127
Member Avatar for prem2

:: is for referencing static properties or methods of a class. -> is for referencing instance properties and methods. check line 4 for static is missing in first example.

Member Avatar for Shanti C
0
126
Member Avatar for schalkl

use ajax function on drop down onchange.. read some [URL="http://www.skillfusion.com/articles/ajaxDropdown.php"]ajax tutorials[/URL]..

Member Avatar for schalkl
0
163
Member Avatar for Nick Evan

[QUOTE]What to do? When you see a post containing this Russian spam (or any spam for that matter), click the "flag bad post" button next to it and type something creative. [/QUOTE] ok, Sure..

Member Avatar for AndreRet
2
435
Member Avatar for imti321

[QUOTE]no body replies what happened? [/QUOTE] post your check login query here...

Member Avatar for imti321
1
3K
Member Avatar for Imratzio

for error 1 : you need to close while loop brace }. for error 2 : switch case ends in line : 304. But you have written default in line no : 345. So remove unexpected default there. or re arrange your switch cases.

Member Avatar for Imratzio
0
139
Member Avatar for sanjaypandit

hi, i checked your code, your facility field contains 17,16,14,15. Means these values are not in sorted order. that is the problem.. sort the array while inserting the facility column. why because mysql IN() function works based on binary search. binary search needs to be searched array in sorted manner.

Member Avatar for Shanti C
0
80
Member Avatar for tape enterprise
Member Avatar for tape enterprise
0
159
Member Avatar for solvision

>> check $row['al_id'] getting value or not. If it is same field id in both tables then you have to get it by alias name. and try to echo $row['al_id']; >> try with a static query string : [code] <a class="pics" href="javascript<b></b>:ajaxpage('jobs/list-jobs-detail.php&album=2', 'mainwindow');"> [/code] >> and when you use [B]GET[/B] …

Member Avatar for pritaeas
0
183
Member Avatar for jithinsil

yes, you can do this by php,ajax,mysql combination. check this link: [url]http://www.w3schools.com/ajax/ajax_aspphp.asp[/url]

Member Avatar for Shanti C
0
101
Member Avatar for anita_86

try this: [code] <?php if(isset($_SESSION['userlevel']) || !empty($_SESSION['userlevel'])) { if ($_SESSION['userlevel'] == 2) { echo "ADMIN"; } else { header('Location:index.php?query=notadmin'); } } else { echo "session not exists.."; } ?> [/code]

Member Avatar for anita_86
0
111
Member Avatar for bbinais

check this link: [url]http://stackoverflow.com/questions/520237/how-do-i-expire-a-php-session-after-30-minutes[/url]

Member Avatar for Shanti C
0
137
Member Avatar for altarek

like this: [code] <select name="con_st" onChange="getData('current_page.php',this.value);" > [/code] in javascript [code] function getData(page,x) { window.location=page+"?dropdownid="+x; } [/code] in current_page.php write your code and with the query string $_GET['dropdownid'] like this: [code] if(isset($_GET['dropdownid'])) { $q="select * from your_tbl where your_field="+$_GET['dropdownid']; // your code here } [/code]

Member Avatar for altarek
0
205
Member Avatar for bbinais

just intialize a session with username and logincounter like $_SESSION['usernmae'] and $_SESSION['logincounter'] for every try increment the logincounter session for the same username.. if its greater than 3 then dont' allow for login.. or post your code, we will check it out..

Member Avatar for bbinais
0
467
Member Avatar for zlloyd1

by this: [code] foreach($_SESSION as $directory){ for($i=0;$i<count($directory);$i++) { $r_values=$directory[$i]; foreach($r_values as $value) { echo $value;echo "<br>"; } } } [/code]

Member Avatar for zlloyd1
0
157
Member Avatar for bjeffries

or create alias names for common fields like : [code] SELECT p.thumb as photo_thumb,....... FROM photo_album as p, video as v ORDER BY photo_album.p DESC LIMIT 10 [/code]

Member Avatar for bjeffries
0
93
Member Avatar for zlloyd1

yes, you can do this by using sessions... try this: [code] session_start(); if(!isset($_SESSION['words'])) { session_register(); $_SESSION['words']=array(); } $iterator=count($_SESSION['words']); $_SESSION['words'][$iterator][] = wordCheck($lname, "lastname"); $_SESSION['words'][$iterator][] = wordCheck($addr, "address"); . . . . print_r($_SESSION['words']); [/code]

Member Avatar for zlloyd1
0
138
Member Avatar for anithajerome
Member Avatar for Shanti C
0
38
Member Avatar for satyam024
Member Avatar for Abhishekdas

Decide how many levels of categories and sub categories you need for your products. Search(Advanced search) a product is very important , end user to see the product easily. Need payment gateway to purchase online. Showing your products images , information user friendly . Reduce number of navigation pages while …

Member Avatar for Shanti C
0
55
Member Avatar for bjeffries

try this: [code] RewriteRule ^album/(.*)(/?)$ /viewAlbum.php?aid=$1 [/code]

Member Avatar for bjeffries
0
176
Member Avatar for danny5514

yes, check your inserted id once.. [code] // Make sure query inserted user successfully echo mysql_insert_id(); if ( mysql_insert_id()!=0) { die("Error: User not added to database."); } else { // Redirect to thank you page. Header("Location: register.php?op=thanks"); [/code]

Member Avatar for danny5514
0
156
Member Avatar for mokztan

check this [URL="http://www.daniweb.com/forums/thread141776.html"]tutorial[/URL].. and also [URL="http://www.roseindia.net/jdbc/display-data-database.shtml"]this[/URL].

Member Avatar for peter_budo
0
241
Member Avatar for astala27

put this in process.php [code] <?php if($_SERVER['REQUEST_METHOD']== "POST") { $a = $_POST['a']; // Get the value submitted for "a" $b = $_POST['b']; // Get the value submitted for "b" if ($a > $b) { echo "a is greater than b"; } else { echo "a is greater than b"; } …

Member Avatar for Shanti C
0
130
Member Avatar for Shanti C

Hello all, I am working on a project where i save client machine path into my database. And if end user clicks download files button, then the files from ftp server have to be download in client machine directly. My application resides in web server. Please give me some suggestions …

Member Avatar for Shanti C
0
281
Member Avatar for sjgoodjob

[QUOTE]i does't work with return it still print Y_constructor_finished [/QUOTE] if you want to stop the execution at return statement, place break statement there.. [code] <?php class X { function X(){ if($_POST['break']=='yes') { //return; break; } } } class Y extends X{ function Y(){ parent::__construct(); print("Y_constructor_finished"); } } $_POST['break']=='yes'; $new_Y=new …

Member Avatar for mschroeder
0
120
Member Avatar for fredrickme

check this [URL="http://www.theserverside.com/discussions/thread.tss?thread_id=5444"]link[/URL].

Member Avatar for Shanti C
0
6K
Member Avatar for ivanwafoo

[QUOTE]<frameset rows="50%,50%"> <frame noresize="noresize" src="limits.php" /> <frame noresize="noresize" src="limits.php" /> </frameset>[/QUOTE] this code is perfectly fine... check your limits.php whether there is any error... execute this page individually in your browser. thanks

Member Avatar for Shanti C
0
90
Member Avatar for kkjay

you can get array of form field like this: [code] $uimages = $_POST['establishment_image']; foreach( $uimages as $v ) { // single image print $v; } [/code]

Member Avatar for kkjay
0
1K
Member Avatar for morteza_ipo

pass table name, fields as parameters to function declaration, and write db query in your function definition which is in class. try coding ...

Member Avatar for morteza_ipo
0
121
Member Avatar for narendrakiit

use [URL="http://php.net/manual/en/function.mkdir.php"]mkdir[/URL] to make a directory. Give user login name for this directory. and you can store all uploaded images by this user in this directory by giving this directory path like: assume login name is stored in session $dirname=$_SESSION['login_name']; after creating directory.. save the uploaded images in this folder.. …

Member Avatar for Shanti C
0
159
Member Avatar for ivanwafoo
Member Avatar for siva ganesh
Re: JSP

check this [URL="http://www.roseindia.net/answers/viewqa/Java-Beginners/9058-file-upload-in-jsp.html"]link[/URL] .

Member Avatar for Shanti C
0
80
Member Avatar for public-image

What data type you have specified for your points field in your database.. post your table structure and your query...

Member Avatar for Shanti C
0
101
Member Avatar for SarasotaTim

check this [URL="http://www.daniweb.com/forums/thread51208.html"]thread[/URL]

Member Avatar for Shanti C
0
73
Member Avatar for Shanti C

Hello All, I am new to JSP. Currently i am working on jsp project with mysql. I got stucked with jsp date and time which supports mysql datetime format. [I need to do more time calculations in my project.] Please come up with your suggestions. Thanks in Advance. SHANTI.

Member Avatar for Shanti C
0
188
Member Avatar for alanlai

$data is multi-dimensional array.. try to print like this: [code] print_r($data[0]); print_r($data[7]); [/code]

Member Avatar for diafol
0
81
Member Avatar for bjeffries

use update query to replace that string. Assume photos is your table and imageurl is your field.. Take backup of your table before update all these.. try this: [code] update photos set imageurl = replace(imageurl,'http://domain.com/','') [/code] If you dont' want to update in your database.. then try some php string …

Member Avatar for bjeffries
0
127
Member Avatar for odysea

use explode function.. Assume $_POST['textareaname'] is your form textarea name. see this: [code] $names = explode(",", $_POST['textareaname']); print_r($names ); foreach($names as $key=>$value) { echo $value; } [/code]

Member Avatar for Shanti C
0
4K
Member Avatar for Sorcher

Try this: [code] RewriteEngine On RewriteRule ^(.*)$ /index.php?page=$1 [L] [/code] The link in the url will not be changed its self, you should have to give [url]http://example.com/images[/url] instead of [url]http://example.com/index.php?page=images[/url] all in your application pages... So that end user can access with your desired link.

Member Avatar for pritaeas
0
120
Member Avatar for streekdime

[QUOTE]For some reason, it acts like the session variable was not created. My current output: (domain/index.php?page=portfolio&view=#) Quote ... ERROR: NULL VARIABLE My expected output: (domain/index.php?page=portfolio&view=#) Quote ... TEST [/QUOTE] First test your session is created or not.. like this: [code] session_start(); if($_GET['view'] == 0){ // URL would be domain/index.php?page=portfolio&view=0 $_SESSION['catImages'] …

Member Avatar for Shanti C
0
118
Member Avatar for pakunoda

First , this thread is not at all related to PHP, and many codes available in google for this.. Just try with some code and come here for suggestions.. the below is the code for disabling a button: [code] document.myform.mybutton.disabled = true; [/code] Write onclick function for your form checkbox …

Member Avatar for Shanti C
0
95
Member Avatar for Feabionsu

remove slash after file name which comes from $post–>post_name;

Member Avatar for Feabionsu
0
168
Member Avatar for bbinais

[QUOTE]if($count==1) { session_register("txtusername"); session_register("txtpassword"); header("location:Main_Dashboard.php"); }[/QUOTE] You have written session_register("txtusername"); But no where assigning value in it like $_SESSION['txtusername']="name"; in logout page: [QUOTE]unset($_SESSION['username']);[/QUOTE] where do you defined $_SESSION['username'] in your code.. If you got any errors, plz post here...

Member Avatar for Ezzaral
0
246

The End.