39,316 Topics

Member Avatar for
Member Avatar for niths

Hi all, i had a page with a dropdown option.so wen i select an item from dropdown my page is getting refresh and in the dropdown it is cuming to default value.I need that selected value in dropdown even after the page refreshed.so can any one please... [CODE]<?php include 'connection.php'; …

Member Avatar for niths
0
558
Member Avatar for oluscoa

pls i need the different betwwen Vb.net and PHP looking in the are i listed Area Visual Basic .Net PHP (1)Variable definitions (2)Loops (3)Conditions (4)File handling

Member Avatar for oluscoa
-2
175
Member Avatar for ipradip

i want to generate A0001 as user id in php. i tried a lot for this but i can't did that so anybody here to help me.........

Member Avatar for ipradip
0
1K
Member Avatar for mbkr.msk

hiiii friends, i have a table messages whose columns are id(primary key,auto increment) from to sub body now when i am trying to insert in the table with the following syntax insert into messages values(2,'$from','$to','$sub','$body') it is working fine. but since the id is in auto increment mode i am …

Member Avatar for ThinkFree
0
96
Member Avatar for niths

hi all, i had a page with a dropdown of projects and a table of users with check boxes each. so wen i select a project from dropdown the users who are assigned to that project will be checked and the rest as unchecked. so here is my problem wen …

Member Avatar for pritaeas
0
94
Member Avatar for muralibobby2015

hello, i want to do small mail concept. what it zzzzz means admin sends registration form to user mails. in that mail user can register their account . my doubt is is there any chance to apply validations in mail. below is my script.[CODE]<? ob_start(); extract($_REQUEST); include("includes/class.phpmailer.php"); if($_POST) { ///////////////////////////////////////////////////////////////////////////////////////////// …

Member Avatar for pritaeas
0
216
Member Avatar for Zayan

I have an array that was an 'explode' from an sql query, and i want in another query, search for an field called "id" by each value of the exploded array(it can be 1 value or 17) and get the field "name" associated to the id, and so create another …

Member Avatar for diafol
0
65
Member Avatar for mr_furley

I have page1.php that has the a link to a popup. I need to send a variable to the popup window. I'm currently using this in the body: [code=php]<a href="#" onclick="actpopup(<?echo($act_id);?>)"><?echo($date);?></a>[/code] This is the function actpopup [code=php] url = "serv_act.php?act_id=act_id"; options = "height=175, width=300, location=no, scrollbars=no,menubars=no,toolbars=no,resizable=yes,left=50"; window.open(url,name,options); [/code] But for …

Member Avatar for michealcdz
0
115
Member Avatar for nabilamn

anyone can help me to figure out how to view your result (after searching) in the result page ? i created 2 page [COLOR="Red"]search.php viewdata.php[/COLOR] ocay, after i insert an input to the text field for search item, the result (a list) will display at the bottom of the search …

Member Avatar for nabilamn
0
80
Member Avatar for Uzumaki52

Hi, I have a Edit Button(which is a Image Button) and when I click that ImageButton a new browser window should open and it should load the values previously entered by the user. The new window should contain the old values and now should be able to edit them. For …

Member Avatar for rajarajan2017
0
160
Member Avatar for pgmarco

Hi, I am somewhat new to PHP and having a bit of trouble figuring out how to grab the value from a drop down menu from a form. Also I want to assign a number to the selected option. For Example, the person will select computer memory from the drop …

Member Avatar for pravinkumarr
0
93
Member Avatar for tejasluvs

Hi all, I am looking for an example/code to get MAC Address with JavaScript or any other technology for a php based web application. The collected MAC Address will be stored in a MySQL table, 'login' to generate reports. I have found some php scripts helping me do this but …

Member Avatar for fxm
0
186
Member Avatar for nickles

I am working on an page that will print scheduled classes and appointments after querying a databse for them. Right now I'm trying to store the names of people with appointments in an array so I can print it after adding the classes as well. I've gotten stuck on this …

Member Avatar for nickles
0
158
Member Avatar for Kalphiter

I am having trouble operating this code.[CODE]<?php ob_end_flush(); ob_implicit_flush(true); set_time_limit(0); function consoleEcho($msg, $DontShowDate = 0) { if(!$DontShowDate) $date = "[". date('m/d H:i:s'). "] "; $msg = $date . $msg; print($msg ."\n"); } class client { public $sock; public $ipaddr; public $chatServer; public $uid; function sendMessage($msg) { socket_write($client[$i]->sock, $msg . chr(0)); …

Member Avatar for Kalphiter
0
642
Member Avatar for fodor_dask

I have to make a folder listing, which I've created:[code=php]$dirPath = '.'; if ($handle = opendir($dirPath)) { while (false !== ($file = readdir($handle))) { if ($file != "." && $file != "..") { if (is_dir("$dirPath/$file")) { echo "<div style='background-color:#0ccccc;'><a href='$file'>$file(directory)</a></div>"; } else { echo "<div style='background-color:#0ccccc;'><a href='$file'>$file</a></div>" . filesize($file); echo …

Member Avatar for diafol
0
131
Member Avatar for Ole Raptor

Hello, I am having a problem getting variables in my function. Below is my code and an explanation of how it is being called. 1. I set the vars: [code=php] error_reporting(2047); require_once('XML\RPC.php'); define("SITECODE", 000000); define("REQUEST_URL", "/external/request.php"); define("REQUEST_SERVER", "domain.com"); define("REQUEST_PORT", 443); define("XML_DEBUG", 0); $software_name = "domain.com"; $messages = array(); $errors = …

Member Avatar for Ole Raptor
0
178
Member Avatar for Nahiyan

I am new to PHP and I discovered a new trick, I want to create a script and if $pagea=1 then it will display the contents of page [B]a[/B] and so on but I want to know how to make a button or anything that is kinda like link and …

Member Avatar for Ole Raptor
-1
106
Member Avatar for iqra123

hii i want to write dates in drop down menu/list and that dates i have to pick from calender. i need to have a calender in such a way that when i click drop down list calender appears and i select a date that goes in that drop down list. …

Member Avatar for iqra123
0
190
Member Avatar for FreddieBambino

Hi. For some reason the real_escape_string is not working. Here is a function that doesnt seem to work. function add_mail(){ $host = ""; $user = ""; $pass = ""; $database = ""; //this function assigns correct values to the variables to access the database. get_variables_db2($host, $user, $pass, $database); $db = …

Member Avatar for FreddieBambino
0
94
Member Avatar for MDanz

i have a php code in a div. I'd like to cancel clicking on that div, until the page loads. i'm having the problem if i click on the div too fast which calls a popup div... it doesn't get the content from the php.. so it is a blank …

Member Avatar for scrappedcola
0
78
Member Avatar for levsha

I have a form on page1.php. The form action is "page1.php". After some sanitation and validation takes place and there are no errors, when a user clicks the submit button, I need the page be redirected and a variable passed to the destination page. The redirection is done with this …

Member Avatar for levsha
0
92
Member Avatar for NewToPhp

Hi everyone, I am new to php and currently i am trying to modify a word / text in a PDF file. For example, i would like to replace a specific word / text [knowledge] in a PDF file with friends. e.g. I have a wide range of [Knowlege]. I …

Member Avatar for namiamy
0
776
Member Avatar for dalip_007

Does anyone know how to find and trace website visitor's location(Country/city) using PHP/sql? Thanks in advance.

Member Avatar for dalip_007
0
128
Member Avatar for fawad123

My problem is very easy. I have written the following PHP code to generate the arrays of textareas: for ($i=0; $i<length; $i++) { echo '<textarea type="text" name="username'. $i.'" cols="60" rows="4" onkeydown="check_username(this.form.username'. $i. '.value)">'. $sentences_data [$i]. '</textarea> <span id="username_label"></span><br/>'; } The Java function is function check_username(username) { if (ajax) { ajax.open('get','testuser.php?username=' …

Member Avatar for vsmash
0
155
Member Avatar for hassal

Hello, I'm developping a new joomla component, so i want to store pictures in database table in field type : blob. i'm wondery how to proceed to do this. I'm using this to get file from the form : $file = JRequest::getVar( 'img2', null, 'files', 'array' ); jimport('joomla.filesystem.file'); $filename = …

Member Avatar for hassal
0
195
Member Avatar for BzzBee

hi I am trying to configure PBS payment gateway with osCommerce. but its not working. :( Can any one help me?

0
94
Member Avatar for kingfheartz

<?php include 'session.inc'; check_login(); $con=mysql_connect("localhost","root",""); if(!$con) die('Could not connect:' .mysql_error()); mysql_select_db("vms", $con); if($_POST[product]!='NONE') { $product=$_POST[product]; } else { $product='NONE'; } $expire=time()+60*60; setcookie("product",$product,$expire); if(product!='NONE') { // how many rows to show per page $rowsPerPage = 20; // by default we show first page $pageNum = 1; // if $_POST['page'] defined, use …

Member Avatar for kingfheartz
0
98
Member Avatar for dan1992

Can Someone Tell Me how to make a auto posting form . I need theat form for automatic pots ip on sql db, Please Help Thx.

Member Avatar for scaiferw
0
76
Member Avatar for punithapary

Hi friends, I developed some web pages in that i am adding some data's with ur finally in the backend i am updating PR based on the url .In the localhost the code is working fine and updating PR but if i uploaded that in to the online that time …

0
55
Member Avatar for muradgm

Hi all, I AM TRYING TO CREATE A SEARCH ENGINE USING PHP AND MYSQL. I've been hitting the same problem over and over in my development. Sometimes when i do a MySQL query I keep getting the error Warning: mysql_num_rows() expects parameter 1 to be resource, boolean given in C:\xampp\htdocs\searchengine\search.php …

Member Avatar for SikoSoft
0
79

The End.