39,320 Topics

Member Avatar for
Member Avatar for solidrichard

Hi i have problem in my login code. Firts someone fill in login informations this is checking code [CODE] // mysql connection $username=$_POST['username']; $password=md5($_POST['password']); $username = stripslashes($username); $password = stripslashes($password); $username = mysql_real_escape_string($username); $password = mysql_real_escape_string($password); $sql="SELECT * FROM users WHERE username = '$username' and password = '$password'"; $result=mysql_query($sql); $count=mysql_num_rows($result); …

Member Avatar for solidrichard
0
184
Member Avatar for adamworld

I have this page that you can do a search on the site. However, if I do a search that contains an apostrophe ('), it breaks and doesn't display anything although I have entries that have them. Does an easy fix exist for this problem? This is an example of …

Member Avatar for diafol
0
131
Member Avatar for maxlipman

I need a lost password script for my existing login script. I need one that sends an email to the person once they enter their username. It is in a database with other things but the tables name is "profiles". The rows in that table are "id" "email" "username" "password". …

Member Avatar for Ezzaral
0
332
Member Avatar for raghujosh

I need a string appended to a variable. [CODE]$name = "app200.php"; $string = <form name = "$name" method = "post"> echo "$string";[/CODE] The result I need is [CODE]<form name = [B]"app200.php"[/B] method = "post">[/CODE] But I am not able to echo the string this way. Any help. Thanks

Member Avatar for raghujosh
0
150
Member Avatar for whiteyoh

Hi All, I hope somebody can help. I would like to make 1 large query from a mysql database. Once called I want to get whatever i want from that stored array, which is where im having trouble. What i have so far is the following code, but each time …

Member Avatar for twiss
0
105
Member Avatar for whiteyoh

Hi All, I have a multidimentional array. What I want to do is increment $a each time i find an array element with a certain value. my array comes from a mysql query. So lets say sex can be male or female, how can i get it to only increment …

Member Avatar for twiss
0
122
Member Avatar for kadriirdak

Hi There, I have a usage problem with CURL output. I have a web services and I use CURL to get the data, However this web services set up as XML output and I want to convert it to array to use the result in the web form. My CURL …

Member Avatar for kadriirdak
0
6K
Member Avatar for chifliiiii

Today 05/18/2011 If i do [CODE]echo date("H:i m/d/Y", strtotime("tomorrow"));[/CODE] i get 00:00 05/19/2011 as it should be but if i use the same function in setcookie like: [CODE]setcookie("wls_yesterday_review", 'completed', strtotime('tomorrow'),'/','myhost.com');[/CODE] My cookie will expire on 05/18/2011 at 09:00PM Im not sure what im doing wrong but i tested different ways …

Member Avatar for chifliiiii
0
286
Member Avatar for PHPExperts

hello, [B]Please help me to create and using mysql procedures using php scripts.[/B] I searched in web for the solution but i didn't get a perfect support from anywhere . Thanks Anoop Ravi

Member Avatar for twiss
0
77
Member Avatar for Joshua Kidd

I am creating an application with JQuery as the UI. The current, what I have now is using simple xml as the Select Menu options. [url]http://www.globalvirtualairlines.com/MyPages/jquerytestingapp.php[/url] What I am wanting to do is, when the user selects the Hub they want, use simple xml to get the data for that …

Member Avatar for twiss
0
230
Member Avatar for Majestics

I AM WORKING OVER NEWS SECTION OF MY WEBSITE... I WANT TO RETRIEVE THE NEWS PRESENT IN THE DATABASE AND SHOW THEM AND ALLOW CHECK BOX TO SELECT THE NEWS TO DELETE THEM... I am able to create the news section that retrieve the data from mysql database and also …

Member Avatar for masterjiraya
0
102
Member Avatar for ryan102

Alright, so basic story, is a website, with an application form, and what im trying to do, is when the user presses the "submit" button, i get an email with all of the information they entered into the field, i *almost* had it working, almost being, when pressing the "submit" …

Member Avatar for vibhaJ
0
233
Member Avatar for DavidB

I have almost no experience with PHP so I need some help with a small code block. My website used to be hosted by a company within my own time zone, so I used the following code to output the date and time on my web page: [CODE] <?php print …

Member Avatar for DavidB
0
102
Member Avatar for Steven_B

Hi everyone! I'm working on a page that adds a new client. One of the form's values is a telephone number. The user enters a 10 digit number with no symbols (ex: 2288675309). Before it goes into the DB(MySQL), I want to format it so that it has hyphens (ex: …

Member Avatar for Steven_B
0
188
Member Avatar for ujjval dave

hey guys, i need your help to develop thumshot of page of website's internal pages. pls if you know how to develop this code or if u have any suggestions for it then pls tell me. Thanks

Member Avatar for ujjval dave
0
133
Member Avatar for Troy

Does your organization use Microsoft Exchange? Do you have a need to incorporate your Exchange data with your PHP web applications? You can use the WebDAV methods to query your Microsoft Exchange Server using the PHP scripting language. Once you wrap your brain around these techniques, the sky is the …

Member Avatar for dskanth
0
2K
Member Avatar for Joshua Kidd

Are there any easier ways to use simple XML as I need to create a flash application with simple xml. What I am using now is [CODE]<td><center><?php if($xml === false) { echo "There was an error opening the xml file."; exit; } else { foreach($xml as $pilot_first_name) { echo $pilot_first_name->fn …

Member Avatar for twiss
0
69
Member Avatar for manu555

hi, I have problem while developing web application in php. I have one text box in which enter total nos.and in one div there are other text box and dropdownlist. i want to show div repeatately until match the value of first text box to text box in that div …

Member Avatar for manu555
0
91
Member Avatar for mithesh

Hi All, I have a query now i need to integrate my outlook calendar with external web portal to add events so that the outlook calendar can remind me , Could anyone suggest open source libraries to do this . Thnx in advance Thnx & Regards, mithesh.

Member Avatar for dskanth
0
165
Member Avatar for OldDeveloper01

Hello. I have been following a tutorial, but want to adapt it. Currently the code below echoes out all of the any occasion cards into a list. I would like them to be echoed into a 2 by 3 formation. 2 down, 3 along. Struggling to get it to do …

Member Avatar for OldDeveloper01
0
166
Member Avatar for rabeeshm

Hi All, I am trying to add special characters into database using javascript encodeURIComponent.Its working at localhost But in server when adding ' an extra / coming in front of ' how can i remove this problem ,some one help me please Thanks in advance.

Member Avatar for vibhaJ
0
101
Member Avatar for Nybuler

Hi all, is there any prblem with my array? why i can get the first element of the array [CODE] function GetNameByEmail($get_staffemail) { print_r($get_staffemail); for($i=0;$i<count($get_staffemail);$i++){ echo "<br />"; echo $qryGetName = "SELECT username FROM user_info WHERE email ='".$get_staffemail[$i]."'"; $rsGetName = mysql_query($qryGetName); $arrGetName[$i] = mysql_fetch_array($rsGetName, MYSQL_ASSOC); } echo "<br />"; print_r($arrGetName); …

Member Avatar for vibhaJ
0
114
Member Avatar for maxelcat

Hi I have a joomla site with one flash based video in it. Of course people are now saying "It doesn't work in iPads". I was thinking about using the <video> tag in html to get round this - can I just simply put a <video>... </video> tag in the …

Member Avatar for pcmaster
0
122
Member Avatar for jacksantho

Hi, I don't have any idea on this error: [B][CODE] Object of class variant could not be converted to string.[/CODE][/B] I am facing the error in this block.Please have a look on this: [B][CODE]IF($g!="P") { mssql_close($dbhandle); //*** Close & Quit ***// $excel_app->Application->Quit(); $excel_app = null; $Workbook = null; $Worksheet = …

Member Avatar for twiss
0
355
Member Avatar for kiran.madke

hello friend i am developing a web site in which online payment is there so it is school website so online fee payment is there so i dont undestand from where i start so pls give me source code and the process also pls help me out.

Member Avatar for vibhaJ
0
73
Member Avatar for jacksantho

Hi, [CODE][B]while($row = mysql_fetch_array($result)) $rows[] = $row['crseid']; print "<td>"; print "<select name='ccrseid'>"; foreach($rows as $row) { echo "<option value='$row' selected>$row</option>"; } print "</select>"; print "</td>"; [/B][/CODE] Always, i am getting the last values. I can't retrieve the remaining values. Without $_POST[] ARRAY,how i can print the select option values without …

Member Avatar for vibhaJ
0
939
Member Avatar for Tehim

I find for just numbers type_digit() works great combined with addslashes() but what about for a mixture, to prevent SQL injection?

Member Avatar for digital-ether
0
783
Member Avatar for bangla

Hi, I have the below code which counts the number of visitors for my webpage. it works fine. <a href="http://csshtmltutorial.com"> <img src="http://csshtmltutorial.com/counter.php?display=uniques&style=12100" alt="total visitors in Job Page" border="0" /> but i want to set a different counter for a particular page. that means when visitor comes to my webpage i …

Member Avatar for almostbob
0
204
Member Avatar for pnKK

[B]I had this error:[/B] [ICODE]Parse error: syntax error, unexpected T_STRING in C:\Program Files\WampServer\www\atestat\admin_add.php on line 14[/ICODE] I can't figure out what's the mistake, so I posted here. I use PHP version 5.3.5. [B]Here is admin_add.php file:[/B] [CODE]<?php include('config.php'); $categorie = $_REQUEST['categorie']; $titlu = $_REQUEST['titlu']; $autor = $_REQUEST['autor']; $descriere = $_REQUEST['descriere']; …

Member Avatar for diafol
0
174
Member Avatar for joejoejoejoe

Hi there, I am after some help... I am new-ish to PHP. I am currently after a script that will enable the following... I have user images in a MYSQL database, all linked to external sites so only have the image URL's. I would like to create a grid of …

Member Avatar for diafol
0
26

The End.