39,320 Topics
| |
Hi, I'm fairly new to php and am having a lot of trouble with a simple little select problem. I have tried it about 20 different ways and it just keeps spitting out errors and not working My code is: [code] <?php session_start(); // built in php function to start … | |
Hay, I had a question about a login system that i want to create. I have SQL express 2005 with value's ( business name, passwords e.d. ). This system we use to fill in what we did at the company, and how much time we spend on it. This system … | |
Having a little issue with a from and MYSQL. I created a Job Interview form that takes certain criteria from the interviewer and places that information into a database so you can extract the information later. What my problem is I'm getting no error messages or successful output. It's not … | |
I'm pretty sure this is a simple fix, but I don't see it: [CODE]foreach($rows as $row) { $result .= "<li><a href='"javascript:void(0)" onclick="javascript:chatWith('.$row->username.')">" .htmlspecialchars(getNameFormatOnline($row->name,$row->username,$ueConfig['name_format']))."</a></li>\n"; }[/CODE] This is a list of online users; putting the username inside "javascript:chatWith('USERNAME_HERE')", to initiate a chat. Thanks, James | |
I have tried using is_numeric to validate some form data to make sure it is only numbers that are entered into the form. I couldnt get it to work so I decided to try and put a-z\A-Z in preg_match. I cannot get either of them to work although there are … | |
I am working on a site that require a php script running on a server without any request, it is a bot script that keeps (not full time but at least once a day) checking client accounts and send mail to clients when something happens. | |
hi there..just wanna ask some help, regarding the creation of line graphs in php..i want to display a graph in my page..i have seen many examples but it does not fit what i wanted.. please help me.. thanks thanks ^_^ | |
Hi all I'm trying to figure out how to go about finding all <a> tags in a string and replacing the spaces within the <a> tag with underscores. Below is an example: Before [CODE=html]<a href="path/to/page" class="pageLink">Page Name</a>[/CODE] After [CODE=html]<a_href="path/to/page"_class="pageLink">Page_Name</a>[/CODE] Any help would be much appreciated. Thanks. | |
hallo there again i would like to modify some entries on my ldap server via php actually i want to move some students from one dn to another i use ldap rename but nothing happens ... [CODE] $newparent='cn='.$save[$i].',cn=****,ou=******,ou=****.,ou=******,dc=****,dc=*** $dn= $save[$i+1]; $dn2=split("[,]",$dn);//that is the name of the student(which is on the … | |
hallo there... is there a way to handle data from a POST method like [CODE]$listOfItems=$_POST['listOfItems'];[/CODE] on the variable though are inserted values of an array such as( 1234|john;3455|helen;.....e.t.c.) is there a way to "brake" the variable so as to get one by one the array values... thank you | |
Hi guys, I'm a bit of a newbie to PHP/MySQL, so please excuse me if I seem ignorant of something seemingly obvious. I'm writing a booking system for a holiday home rental company. I'm building it up slowly. What I have so far is trying to calculate the number of … | |
i have a column in mysql called origin which is type integer(not ascending or descending). All rows have an origin assigned to them can't be duplicated... e.g. two rows with the same origin(integer). when inserting a new row. Just say row 1 has origin 15 and i'm inserting a new … | |
Hello, I have been searching for a solution on how to solve this problem for almost a month now. I'm at a point where I feel like I've traveled around the world 7 times and still haven't found the answer. I hate introductions so I'm just going to go ahead … | |
Hi! I have a counter that increments by 1 for every page view. [CODE]$colname_Recordset1 = "-1"; if (isset($_GET['urlcode'])) { $colname_Recordset1 = $_GET['urlcode']; } mysql_query("UPDATE users SET counter = counter + 1 WHERE urlcode = '$colname_Recordset1'");[/CODE] It works in IE but counts twice in firefox the first time the page is … | |
Is it possible by any way to make a .php with all the data into it a .png Example: You got a php that the data displays in the order you want and u want to like screenshot it and post it into the main .php like a fucntion createphptoimg("test.php") | |
[CODE]<?php $jpg = $GLOBALS['HTTP_RAW_POST_DATA']; $img = 'MyPicture.jpg'; $to = $_GET['email']; //header("Content-type: image/jpeg"); //header("Content-Disposition: attachment; filename=".$img); //echo $jpg; $FromEmail = 'wcww@gmail.com'; $FromName = 'We Can Waste Wise'; $msg = 'We hope you will come play again!'; $subject = 'Your Recyclable Art!!'; $To = strip_tags($to); $HTMLMessage =''; $Subject =strip_tags($subject); $boundary1 =rand(0,9)."-" .rand(10000000000,9999999999)."-" … | |
Hi, I am new to encryption and have read a lot but still don't know what I'm doing. Just to clarify when using the keys is it just for a handshake between the client and server to allow access or does it affect the caesar cipher as well? because after … | |
Greetings! I have a form that's meant to be a rudimentary search engine. The forms calls the piece of code below and outputs successfully the results in a new tab. [CODE]<?php //Includes the db config file $dbconf = include '.../config/dbConfig.php'; //checks if fields are set. if(isset($_POST['submit'])) { if( !empty($_POST['search_string']) ) … | |
Hi all, I am working on a PHP project. Im having a problem giving the 'src' for a image, because the image file is placed outside of the www folder :(. Let me explain more. When I log in to my server using FTP logins, it gives the directory structure … | |
Hi, i need help please! i have a page were users can upload images, the name and path to where the image is stored is stored in the database. I want the aministartor to be able to view all of the images. when i try this it returns the path … | |
[code] <?php $conn=<?php $conn=mysql_connect("localhost","root","") or die("could not connect:" . mysql_error() ); $sql=mysql_select_db('btche_db',$conn); $studet="SELECT id,pass FROM student2 WHERE id = '".$_REQUEST['stid']."' AND pass = '".$_REQUEST['stpass']."' "; $result = mysql_query($studet); while ($row=mysql_fetch_array($result)) { session_start(); $_SESSION['id'] = $_POST['stid']; $_SESSION['userpass'] = $_POST['stpass']; $_SESSION['authuser'] = 0; if(($_SESSION['id'] == $row['id']) and ($_SESSION['pass'] == $row['pass'])) { $_SESSION['authuser'] … | |
Hi, I am a php newbie. The site is a sports site, and contains information on about 10 teams. However each team has it's own admin section. I would like to have 1 general login page that lets a user access the database that relates to their team. I don't … | |
hello everybody i have a big problem with the connection of mysql connect i want to connect to an other data base with out binding Ip adresse in the host server . i have an application and i want to manage 2 web sites with this appliction because the tow … | |
I am using Wampserver for my Windows Apache-PHP-MySQL stack. The file accessed has a header that defines it as utf-8, meta tag in HTML also defines it as utf-8. My best guess so far is that it has something to do with Apache. Searching through Google was of little help … | |
Hi. I've got 2 classes that provide services and 1 wsdl file for both of them, 1 SoapServer and 1 SoapClient. When I do $server->setClass("Class1"); $server->handle(); I can call functions from Class1 in the SoapClient. But if I do $server->setClass("Class1"); $server->setClass("Class2"); $server->handle(); then I am able only to call the … | |
Hello All, Greetings of the day! I am new to PHP & working on a project. What my senior had asked to do is to , creat a drop down menu. I did the same. And just below of drop down menu there is a Text Box, where user can … | |
hi, i need to pass the radio button value to the 3rd page. by using post method i am getting it to the 2nd page. But i need to get it to the 3rd page also. so please can any one help me.. thank u.. | |
Hi, I am a php newbie. I am doing a sports site, and trying to get the team name to display in an admin area. I have tried the code below and many variations of it, however it continues to error the message : Notice: Undefined index: team in ... … | |
Using WindowsXP Pro SP3 Problem with javascrip I have installed Javascrip Ver 6.0.190.4 When I try to email a site to submit a query I enter the question but when I click on [NEXT] I get this error:mJavascrip:Void ( ) can you help | |
Hello Friends, I want to develop a facebook like site and what are the basic requirements to develop a site like that. did we have any easy ways to develop like integrating the applications please help me and provide nay helpful links Thanks in advance |
The End.