373 Posted Topics

Member Avatar for Xentiago

For this thing, chekbox is what people use generally. But u asked for radio button - [CODE] if(!isset[$_PST['radio'])) foreach ($_PST as $key =$val) echo "$key = $val\n"; [/CODE]

Member Avatar for Xentiago
0
116
Member Avatar for veledrom

[CODE] if(isset($_POST["submit"] ) && $_POST["submit"] == "Exit") { //your code here } [/CODE]

Member Avatar for ShawnCplus
0
120
Member Avatar for j_limboo

In the table you saving username and password, have one more field named 'Status' or whatever. Each time user logs in get the status updated like 'online' and when you checking the username+ password combination for the login page just check this field also, if the user is already "Online" …

Member Avatar for diafol
0
2K
Member Avatar for mcx76

Are you sure, there is no update button on the browser? Check in case if its somewhere else, like too down the browser to take a note of it, maybe due to some design issue. Can you attache the snapshot of what you can see.

Member Avatar for network18
-1
110
Member Avatar for dokinah1

Right.[I]Instead[/I] you could just say, you got this parse error at the [B][U]last line[/U][/B] of your script.It will be almost enough for any developer to sort out the issue. check your php tags are completed everywhere and for any synt6ax error, or there might be any string unclosed.

Member Avatar for network18
-1
199
Member Avatar for alexjbriggs

You were wrong at mysql_numrows. It should be mysql_num_rows() everywhere.Your code modified below - [CODE] <?php //Connect To Database include("admin/config.php"); mysql_connect($dbhost,$dbuser,$dbpass) OR DIE ('Unable to connect to database! Please try again later.'); mysql_select_db($dbname) or die( "Unable to select database"); $query="SELECT * FROM events WHERE (year >= $current_year AND month > …

Member Avatar for network18
0
96
Member Avatar for muralibobby2015

you can add the bcc field in the headers part of the mail function. $headers .= "Bcc:emailIDs@test.com,emailIDs@test.com"; etc

Member Avatar for network18
0
73
Member Avatar for jimSp

try this - [CODE]<? include "../includes/db.php"; include "../includes/function.php"; checkAdminLogin(); include "header.php"; include "../fckeditor/fckeditor.php"; $db = new Database(); $db->connect(); $error = ""; $emails = ""; $arr = array(); if( count($_POST) ) { if( !empty($_POST['txtSUB']) && !empty($_POST['msgDESC']) && !empty($_POST['cmbEmail'])) { $emails = "1"; if( $emails == "1" ) { $to = "test@test.com"; …

Member Avatar for jimSp
0
170
Member Avatar for Sagitarian

Yes definetaly will need to clarify it further because - [QUOTE=Sagitarian;1006446] Here is my challenge, the HTML file that is called up from the menu link includes links also, if a user clicked on one of those links, it will replace the whole page. [/QUOTE] It seems that, by this …

Member Avatar for diafol
0
124
Member Avatar for ilokana

you can simply backup the database as a query forms or in data form using the CMS's export feature or backup database feature :)

Member Avatar for SoN9ne
0
72
Member Avatar for nokomoli
Member Avatar for ko ko

check whether if you have the mysql server seperately installed on your mahine.

Member Avatar for ko ko
0
210
Member Avatar for j_limboo

Sessions data is stored on the server, it got nothing to do in case some client logs in and then some other and then again some other. be clear exactly what you want to achieve, i think just the user loging verify, if thats it only checking the if(isset($_session['varName'] ) …

Member Avatar for j_limboo
0
72
Member Avatar for gpss

if its a school work, think about some google search first.Trust me it will be in your favour in the long run.Start coding on your, if you get stucked up somewhere post your code here.Me and my friends here will try to help you. I will post the algorithm here …

Member Avatar for gpss
0
141
Member Avatar for bufospro

change the upload.php as - [CODE]<?php // filename: upload.processor.php // first let's set some variables // make a note of the current working directory, relative to root. $directory_self = str_replace(basename($_SERVER['PHP_SELF']), '', $_SERVER['PHP_SELF']); // make a note of the directory that will recieve the uploaded files $uploadsDirectory = $_SERVER['DOCUMENT_ROOT'] . $directory_self …

Member Avatar for bufospro
1
79
Member Avatar for moon_isha1

mailing in php is very simple, php provide the mail() function that does everything for us - [CODE] to = 'to@test.com'; $subject = 'subject'; $message = 'hello, how are you'; $headers = 'From: test@test.com' . "\r\n" . 'Reply-To: test@test.com' . "\r\n" . 'X-Mailer: PHP/' . phpversion(); mail($to, $subject, $message, $headers); …

Member Avatar for network18
0
357
Member Avatar for punithapary

Check the rights on those files/folder and post your part of error log here.

Member Avatar for network18
0
63
Member Avatar for nishanthaMe

what was the need for this, if the problem is solved please mark the thread as solved

Member Avatar for network18
0
152
Member Avatar for exactprecisions

what you are trying to achieve while doing this? I think you just trying to complicate the (might be) easy thing.. post here what you want to do. If you want to construct the url like "http://www.website.com/index.php?p=varname This var values are available in the $_get variable. The way to get …

Member Avatar for exactprecisions
0
146
Member Avatar for abrocketman
Member Avatar for zohdi_rizvi

You very well know what you want to have in your website and you have done everything perfectly too. So what exactly expect from us. If you expect the suggestions to improve the exsting script , think about putting some select element for the user to select the email ids …

Member Avatar for diafol
1
105
Member Avatar for aditi_19

the code provide by her has to work, if not just check if you get the values of the variables inside he function. alert(userid+">>"+weeknum); and also post what error you face check the error console.

Member Avatar for aditi_19
0
148
Member Avatar for gamshid

hey guys have seen this about the image the images on couple of the websites which on right click on the image alerts "Copyright violated, copying restricted" etc. and does not allow the user to copy it. But I am still not sure how to do this.

Member Avatar for almostbob
0
1K
Member Avatar for jrosh

Isn't this the complication of the simple thing and a duplicate thread. somebody just wrote solution in php for this.

Member Avatar for pritaeas
0
120
Member Avatar for jhanjon

hey what is the need for doing the below thing twice - [CODE]$image = mysql_query("SELECT * FROM artworks WHERE userid='$id' AND galleryid='$galleryid'"); $folder = mysql_query("SELECT * FROM artworks WHERE userid='$id' AND galleryid='$galleryid'"); [/CODE]

Member Avatar for network18
0
149
Member Avatar for nadnakinam

why to complicate the simple query, he just have two simple reuirements on the same table as - 1)age BETWEEN something AND something and 2)sex as all on same table [CODE]SELECT * FROM $tbl1_name WHERE sex='$show_all and age BETWEEN '$from' AND '$to'[/CODE] It aslo depends upon what you pass as …

Member Avatar for nadnakinam
0
118
Member Avatar for masocha

Search the 'Enterprise Architect software " with the google, it gives some good results for it.

Member Avatar for Ramesh S
0
83
Member Avatar for gaz
Member Avatar for Rakesh Nagekar
Member Avatar for coboldeveloper

mark the thread as solved ,if you are satisfied with the solutions provided

Member Avatar for network18
0
94
Member Avatar for vidhyaponnusamy
Member Avatar for Sheridan

Look if it helps you - [url]http://www.htmlgoodies.com/tutorials/buttons/article.php/3478911[/url]

Member Avatar for network18
0
68
Member Avatar for mindfrost82

please mark the thread as solved, if done with this , or else post your queries here, we will look into that.

Member Avatar for network18
-1
131
Member Avatar for sanjaypandit
Member Avatar for michael123

See all your variable in get request like- [CODE] echo '<pre>'; print_r($_get); echo '</pre>'; [/CODE] This will print the $_get variable. You can access each var by its name like index of the array for ex. $p1 = $_get['p1']; $p2 = $_get['p2'];

Member Avatar for network18
0
120
Member Avatar for itsrahulk

I guess you will have some bunch of html select elements for the user to select the checkin and the checkout dates. After the form submit just check all the validation is done properly by the javascript or else some bugs like checkout date>checkin date, after that select query to …

Member Avatar for network18
0
68
Member Avatar for Markstein

The file download form the server to the client machine will be done by the php, but before that restricting the user in some way or the client side validation will help to achieve what you want exactly with the javascript.

Member Avatar for network18
-1
1K
Member Avatar for smvec

[QUOTE=smvec;1007830]hi.. im dynamicelly creating text box in a html file using javascript.. [CODE]<script> function create_input_boxes() { if(document.getElementById("name0")) { return true; } var boxes=""; var num_boxes=document.getElementById("num_boxes").value; if(num_boxes) { for(var i=0;i<num_boxes;i++) { boxes+="<input id='name"+i+"' name='name"+i+"' value=''><br />"; } document.getElementById("textbox_container").innerHTML=boxes; } return false; } </script> </head> <body> <form id="theForm" action="dynamic.php" method="post" onsubmit="return create_input_boxes();"> …

Member Avatar for smvec
0
89
Member Avatar for jay_412

Hey consider the below code - [CODE] $fromDB; //This is datetime object from the database $date = new DateTime($fromDB); //$date->modify(''); echo $date->format("h:i A"); [/CODE] Hope this works for you, if still not post the problem again.

Member Avatar for network18
0
124
Member Avatar for lim dara

Can you be more descriptive about what you expect from php, like what do you mean by 'uild-in function of authentication' ?

Member Avatar for network18
-3
74
Member Avatar for ayesha789

why you want to search for the pdf file through php, if you know the path and the file name both? If you have both, you can simply get it as like other files using fopen etc

Member Avatar for kvprajapati
0
868
Member Avatar for bombixallan

This is a php section, please carry it to proper section to get the immediate help on that.

Member Avatar for network18
-2
60
Member Avatar for bombixallan

This is a php section, please carry it to proper section to get the immediate help on that.

Member Avatar for network18
-1
50
Member Avatar for ttchiwandire

why do you want to store the each qualification checked by the single user in multiple rows.you can have a row par user having different columns to store that user details, like you can have a enum fields like qualification1, qualification2 etc. Hope you got what i want to explain …

Member Avatar for network18
0
78
Member Avatar for deepika1

please follow the practice to mark the threads as solved, it helps others too :)

Member Avatar for leviathan185
0
62
Member Avatar for baltazar
Member Avatar for baltazar
0
1K
Member Avatar for marjan_m

please follow the practice to mark the threads as solved, it helps others too :)

Member Avatar for network18
0
274
Member Avatar for haggis-man

If I got you right, this can be implemented using jQuery and maybe this is not the right section to post this question.

Member Avatar for network18
0
82
Member Avatar for smvec
Member Avatar for asim ahmad
Member Avatar for network18
0
71

The End.