39,402 Topics

Member Avatar for
Member Avatar for Tenaciousmug

Ok, I have all my functions working along with the real_escape_string(). Now I just need to find out WHY the password check isn't working properly. Whenever I try to login with the username: Dyl and the password it was signed up with, it says "Dyl is an existing username, but …

Member Avatar for ppetree
0
138
Member Avatar for baudday

Attached is a picture of the database layout I'm talking about. I would like to list out all the shirts in the database along with which categories they are in, and which textures and colors they come in. These are all many to many relationships, and hence the linking tables. …

Member Avatar for ppetree
0
128
Member Avatar for ppetree

I want to do an old C/C++ trick where I can conditionally define a function. for instance I want to conditionally output a string (debugging) so I can have some outputstring() interspersed in my code. Instead of adding/removing these during development, I want to turn them on/off. Is there a …

Member Avatar for ppetree
0
136
Member Avatar for mobo57

Brain going mushy, please help! My code: [CODE]$reguser = $_COOKIE['ID_my_site']; function curPageName() { return substr($_SERVER["SCRIPT_NAME"],strrpos($_SERVER["SCRIPT_NAME"],"/")+1); } $currentpage = curPageName(); echo "$currentpage";[/CODE] Connect to the db then: [CODE]$query = ("SELECT rstextresume FROM scuserspro WHERE profilemng = '$currentpage'")or die(mysql_error()); $result = mysql_query($query); if($result == false) { user_error("Query failed: " . mysql_error() . …

Member Avatar for mobo57
0
73
Member Avatar for nonshatter

hey guys, I'm trying to simply use the mail function. I'm using ubuntu 8.10 and have installed sendmail. My php.ini config is: [CODE]; For Unix only. You may supply arguments as well (default: "sendmail -t -i"). sendmail_path = /usr/sbin/sendmail -t -i[/CODE] and for testing purposes my php is: [CODE]$to = …

Member Avatar for nileshgr
0
74
Member Avatar for Erco21

Hi! I have txt file containing something like: User1 123434 User2 435345 User3 234234 User3 234924 Now, i need to delete one user from that txt file, along with number that is after the user so lets say that i entered in delete form: User1 , then i would like …

Member Avatar for chrishea
0
108
Member Avatar for anuraggautam77
Member Avatar for chrishea
0
43
Member Avatar for Trekker182

Hello everyone, I'm in the process of learning php in a class and had a quick question for one of my assignments. I am uploading a file to a server which the user can name the directory. However, after they upload the file, I have to give them the option …

Member Avatar for chrishea
0
92
Member Avatar for BTW8892

Hello, I am trying to link up a certain row i am outputting on a site. How would i go about putting multiple lines inside of one echo statement. [code=php]echo "<a href='profile.php?player_id=>'".$row['gamertag']."</a>";[/code] That is the current code i am using, but it is now, working, any idea on how to …

Member Avatar for Will Gresham
0
66
Member Avatar for gazzy1

How can i create a php file that export my selected mysql database to a execel or csv form i have my own database named as "users" that have 10 tables i want to php file that export my "users" databse to ms excel and which when run on the …

Member Avatar for diafol
0
66
Member Avatar for wesleysoccer

Warning: Cannot modify header information - headers already sent by (output started at /home/wesleysoccer/webapps/wp/wp-content/themes/infocus/functions.php:1) in /home/wesleysoccer/webapps/wp/wp-login.php on line 302 Warning: Cannot modify header information - headers already sent by (output started at /home/wesleysoccer/webapps/wp/wp-content/themes/infocus/functions.php:1) in /home/wesleysoccer/webapps/wp/wp-login.php on line 314 This is what I'm getting in my wordpress login screen...can't login to …

Member Avatar for Manuz
0
208
Member Avatar for shanthi.juturu

hi, I have used Ajax validation for my form, in my form there are two radio buttons both has separate fields and my requirement is to validate only the selected radio button fields but its validating for both radio buttons, can u please suggest what to do?

Member Avatar for Manuz
0
46
Member Avatar for therest

Hi! I try to write my thumbnail creator script, no trouble with image load, resize cut, watermark, etc, but memory handling! File is submitted by simple file form. [CODE]function makeLog($logthis) // this is only for tracking mem usage { $handler=fopen("log.txt","a"); fwrite($handler,$logthis . " \r\n"); fclose($handler); } function handleImgUpload() { $fTName=$_FILES["Filedata"]["tmp_name"]; …

Member Avatar for therest
0
229
Member Avatar for ayesha789

Hi this is my Form , when User fill form and by mistake he click on back button. I want when he open it next time all values be there, so he cant type again [CODE]<form name="form1" method="post" action="checklogin.php"> <input name="myusername" type="text" value="Enter Your Username"onfocus="this.value=''" /> <input name="mypassword" type="password" id="mypassword" …

Member Avatar for F-3000
0
150
Member Avatar for flynismo

Hi everyone, I am having a lot of trouble with this... I am using PHP/MySQL. What I have is a dating website. One of the tables in the database is called "users" which has many fields in it, storing the usual info (id, name, email, etc). What I want to …

Member Avatar for flynismo
0
118
Member Avatar for Darkwolf33984

I am working on a Joomla Website and Have Installed Jomsocial however I keep getting some syntax errors. The files and folders are exactly where they are supposed to be I believe its just the code and I cant see it. below is where my errors are said to be... …

Member Avatar for EvolutionFallen
0
82
Member Avatar for chr.s

Hi First of all, I apologise if I'm not posting in the correct place - I'll gladly ask elsewhere if deemed necessary. I've got a reasonable amount of experience with HTML and CSS and so far have only ever built websites that I know I'll be maintaining. So although updates …

Member Avatar for F-3000
0
145
Member Avatar for zia zia

Hi Guys... I'm making a form with the ability to delete users. But don't know how to do it... My form structure.. users.php ---- Lists a user with options like edit user / delete user. (His details are displayed from database on my html page in a table.) For delete …

Member Avatar for therest
0
1K
Member Avatar for mmsiva
Member Avatar for chrishea
0
27
Member Avatar for muralibobby2015

hello.... i am fully confussing with this problem. i have to display sorting order from my table. i have table like this. [CODE]auto_id,firstname,passportno(int).[/CODE] now i am displaying [CODE]order by passportno[/CODE] but here i saw very funny issue. i have passport nos like this.....[CODE]077,100,099,088,101,1000.[/CODE] now after executing the query [CODE]"SELECT * …

Member Avatar for EvolutionFallen
0
95
Member Avatar for reviloera
Member Avatar for chrishea
0
71
Member Avatar for zia zia

I just want to know if this is the correct syntax for updating data in the database. [CODE]<?php $user_id = $_GET['user_Id']; $qry = mysql_query("SELECT win_id,win_net_drives,win_asset_no,win_new_pc,win_requirements,win_uid FROM windows_application WHERE win_uid = '".$user_id."'"); $db = mysql_fetch_array($qry); if($_GET['process'] == 1){ $drives = $_POST['network_drive']; $asset = $_POST['win_asset_no']; $newpc = $_POST['new_pc']; $winreq = $_POST['win_requirements']; $qry …

Member Avatar for rajarajan2017
0
157
Member Avatar for ayesha789

Hi, this is my option value. June is my Default selected Value, but there is a small issue. When Users select any month like January-2010, when he/she click on submit button. Page will show again June in Option. But I want which the user selects. [CODE=php]<td> <label>Billing Month <span class="small">Like …

Member Avatar for rajarajan2017
0
135
Member Avatar for tulipputih

Hi everybody, I would like to have functionalities & interface like this [url]http://www.bluenile.co.uk/diamond-search?filter_id=0&track=head[/url]. Currently, the search result and checkbox are presented as in the above example. However, I am not sure of where should we keep the checked value to have something like in the bottom. ( all selected record …

Member Avatar for tulipputih
0
271
Member Avatar for healthbasics

Can anyone tell me what the best option for getting the dynamic title AND dynamic meta description on my particular site setup would be? I have an index.php but all of the individual page content is stored in a subdirectory called \html\ it's stored as .html files and is called …

Member Avatar for vibhaJ
0
78
Member Avatar for ayesha789

This code is about months and year options. When you change the months or Year and press Submit button it will show selected month and year which you sleclet. This will be helpful for you all.

0
133
Member Avatar for dan1992

i have done a login form but its giving error :9 can somwan help me[B] index.php[/B] [CODE]<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=windows-1250"> <title>Login Panel</title> </head> <body> <form action="login.php" method="POST"> Username : <input type="text" name="username" > Password : <input type="text" name="password" > <input …

Member Avatar for dan1992
0
170
Member Avatar for teddy99

Hi all, Here's my first post. I have a problem which I've worked on for a while now. I'm new to php, html, scripts, but I'm a very quick learner and have worked in IT for years, so hopefully someone can point me towards what I need to do/learn to …

Member Avatar for pzuurveen
0
106
Member Avatar for xofth

unable to put new line in this code i try "\n" , <br/> but not working i want that when this docoment write in the file data.txt there should be new line between First name, last name and email [CODE]<?php $file = fopen("data.txt", "a+"); fwrite($file,"First name:$_POST[fname] Last name:$_POST[lname] Email:$_POST[email] Comment:$_POST[comment]"); …

Member Avatar for xofth
0
97
Member Avatar for meo_spt

I want to code a page index.html, when loading this page, we will show a child form, its name is child.html, and disable body of index.html, when i closed child form, the index.html must be enable. This resembles Daniweb page, when i click member login.... Everybody can tell me a …

Member Avatar for EvolutionFallen
0
83
Member Avatar for zia zia

Hi Guys! I want to know how to limit the no of records to be shown in dropdown list from mysql.Below is my code. I just want to list 4 records from colum name 'department_name'. The colum has 11 records in total. [CODE]<select class="ac" name="area" > <?php $qry = mysql_query("SELECT …

Member Avatar for zia zia
0
109
Member Avatar for sbabanli

Hi, My question may be very simple [B]How to know that subscriber has received my letter (i need get message or mail from my script)?[/B] I need just to know statistics of my subscribers receiving (even not opening it) my newsletter.I need just code in PHP. best regards

Member Avatar for sbabanli
0
82
Member Avatar for iqra123

helloo i have to communicate between two users and i want to do it through e mails. how can we send messages on email address in php??? do we have to use any e mail server?? plz help !! Regards!

Member Avatar for iqra123
0
136
Member Avatar for alfredtiu

Hi everyone, can you check for me if my codes below are correct? i am having problem to retrieve my image file from mysql database. The errors start at "header" parts. I have no problem to store image file (mediumblob) in mysql database. The file shown are in HEX forms. …

Member Avatar for kalpanasarvan
0
350
Member Avatar for andydeans

Hi, New to PHP, wondered if anyone could point me to a script that would do the following: get email address from a website. Basically there is a site that is open for public viewing with addresses and phone numbers and email addresses that my client would like to target. …

Member Avatar for chrishea
0
104
Member Avatar for eantz

Hi there, Someone using symfony? help me, please.. I have form class that I embed to another one.. In the embedded form, I have multiple checkboxes. But when I try to save it and I check some value of checkboxes, the error said "SQLSTATE[HY093]: Invalid parameter number: number of bound …

Member Avatar for eantz
0
277
Member Avatar for SerjSagan

I am getting a weird error in Google Webmaster Tools when my site is accessed as [url]http://www.myurl.com/[/url] it shows duplicate meta tags for a [url]http://www.myurl.com/?ref=wierdurl.com[/url] I have no relation to this weird url, but obviously it is linked to my site this way and Google sees it as a separate …

Member Avatar for jay 11
0
165
Member Avatar for andydeans

Hi , i have used some gui tools to generate my php code from database and i need some help with the search form. basically the tools only created the search of dates in US format so someone had to write a cusotm function for it to display as UK …

Member Avatar for sergb
0
101
Member Avatar for kanjigirl

Is it possible to control which files get included by looking at the browser type? For example if I'm using: [CODE]<?php include("includes/nav.php"); ?>[/CODE] but for all IE browser versions I'd like to call a different file, nav_ie.php, can that be done, and if so, how would I go about it?

Member Avatar for FlashCreations
-1
113
Member Avatar for Silvershaft

I followed a tutorial on [url]http://www.phpeasystep.com/workshopview.php?id=6[/url] and I think it's not working properly for me. When I try to start the session in my sidebar thing it won't actually start somehow :S [code]<div id="sidebar"> <h2>[<a href="?page=home">Samppa's page</a>]</h2> <h3>&nbsp;Main menu</h3> <ul class="menu"> <li><a href="?page=about"> >> About</a></li> <li><a href="?page=projects"> >> Projects</a></li> <li><a …

Member Avatar for mrcniceguy
0
322
Member Avatar for druveen

Hi everyone [CODE] $i=0; echo '<script language="javascript"> var dA = new Array(); var x = 0; for(i=0;i<2;i++) { dA[x++]="'.$date[$i]." ".$message[$i].'"; '.$i++.'; } </script>'; [/CODE] here i want to increment $i above code is not working, Please help...Thanks in Advance...

Member Avatar for scrappedcola
0
219
Member Avatar for D4n1sD

Hello to everybody. Lately I have been working into a forum and I have been offering free e-mail accounts with my domain to all the people that register to my forum. However few of them will bother to use outlook for that, so I thought to make a login/registration page …

Member Avatar for Rhyan
0
93
Member Avatar for herberwz

Pls help: [B]Warning:[/B] require(connect_to_mysql.php) [function.require]: failed to open stream: No such file or directory in C:\wamp\www\chibenda\root_directory\index.php on line 3 [CODE]<?php $db_host = "localhost"; // Place the username for the MySQL database here $db_username = "root"; // Place the password for the MySQL database here $db_pass = ""; // Place the …

Member Avatar for drjohn
0
149
Member Avatar for Erco21

Hi! I have basic input form, which right now saves what i input into a txt file Now, i want to save/add that into a table (not mysql one, just a table on a page that anyone can see) so, i was wondering if there is any example code, or …

Member Avatar for sourcebits
0
87
Member Avatar for Deemar

Here's how I'm creating my form: [CODE] foreach ($all_rows as $column) { print ("<tr>"); print ("<td>". $column['name'] . "</td>"); print ("<td><input type='text' name='form1[".$column['id']."][materialsPrice]' id='".$column['id']."' value='".$column['materialsPrice']."'/> <input type='hidden' name='form1[".$column['id']."' value='"."' /></td>"); print ("<td><input type='text' name='form1[".$column['id']."][labourPrice]' id='".$column['id']."' value='".$column['labourPrice']."'/> <input type='hidden' name='form1[".$column['id']."' value='"."' /></td>"); print("<td><input type = 'checkbox' name = 'form1[".$column['id']."][quantityCheckbox]' id = …

Member Avatar for sourcebits
0
226
Member Avatar for jwescott

Been in computers since the Radio Smack days. Been developing in VB (DOS through 2005), Access VBA, Authorware, yada yada, so how come PHP is such a big deal? I must be getting old.

Member Avatar for maceman
0
23
Member Avatar for baudday

I have a picture of my database design attached. Basically what I'm wondering is if there is a way that I can use the foreign keys I have set up. For instance, shirtColorsLink contains two columns, shirtId, and colorId. Both are foreign keys from the shirts table and the colors …

Member Avatar for baudday
0
98
Member Avatar for gazzy1

HI I HAVE FORM IN MY PHP PAGE THAT INSERT DATA INTO MY DATA BASE: DETAILS OF MY PHP PAGE THAT HAVE DATA ENTRY FORM IS: oUTLET Id: oUTLETnAME: ADDRESS: CONT NO: SIMS: CARDS: LOADS: NOW THE HELP REGARDINGS IN THIS FORM IS THAT. I WANT TO OBTAIN DATA FROM …

-1
57
Member Avatar for gazzy1

HI, THNX FOR HELPING IN MY LAST POST. Now i wants the help in follwing problems. i have a table in my sql named as "retailer001". i have a php page that have the data entry form of all field that are in mysql table. my table retailer001 having 11 …

Member Avatar for KamranArshad
0
130
Member Avatar for Emeraldwebshane

Hey Guys I have just started to learn PHP and have been using a book called "PHP For Absolute Beginners" now i have found a fair few mistakes in the book which i have corrected myself but i have come across an issue which is probably a simple fix by …

Member Avatar for Emeraldwebshane
0
112

The End.