39,402 Topics

Member Avatar for
Member Avatar for QWaz

Hi, I'm pretty new to php and MySQL. I am trying to use a form to update a the database. However it just doesn't seem to actually work. I also am getting this error from printing out errors: You have an error in your SQL syntax; check the manual that …

Member Avatar for QWaz
0
149
Member Avatar for warzol

Hi all! I am still new at PHP and mysql and am having a little difficult time figuring out how to get my "Trainee Name" link to switch my info list from ascending to descending order and vice versa. Right now, you will see it defaults to ASC. Any help …

Member Avatar for diafol
0
77
Member Avatar for FreshGe

1)".$locale["serv018"]." :<div> <a rel="" href="/players.php?ip=".$serv["server_ip"]."" class="lightwindow" title="players list ".$serv["server_ip"]."" params="lightwindow_width=550,lightwindow_height=500">see</a><br><br></div> 2) ".$locale["serv019"]." :<div> <a rel="" href="/settings.php?ip=".$serv["server_ip"]."" class="lightwindow" title="Configs ".$serv["server_ip"]."" params="lightwindow_width=550,lightwindow_height=500">see</a><br><br></div> please help to fix those 2 code ...

Member Avatar for diafol
0
106
Member Avatar for sushil231088

How to know the session time out is finished and the session is no more? I actually want to make the user logout automatically after one minute.

Member Avatar for diafol
0
43
Member Avatar for dan1992

i have 3 diferent data base in 3 diferent languages, i need a script or a php cod theat take's the information form them exempl : menu romanian "Pagiana principala | Informatie" rusian "Главная | Информация " Englesh "Home | Information " img exeple [url]http://img88.imageshack.us/img88/3954/lang.png[/url] please help im new in …

Member Avatar for dan1992
0
78
Member Avatar for thebluestar

I want to send an email from localhost but I don't know how to install mail server, so I do this way: [CODE=php] <?php ob_start(); ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Gui mail su dung PHPmailer and gmail</title> </head> …

Member Avatar for rajarajan2017
0
170
Member Avatar for niths

hi all, i had created a page in which users can be seen. and a edit button to edit. wen i click on the edit button a popup window will open and after edit is done and press submit button i wil get a msg that data editted. But the …

Member Avatar for rajarajan2017
-1
2K
Member Avatar for Silvershaft

Hey guys! I want to make a simple login system with PHP, I am pretty noob with php, but have done C++ for like year so understanding the code shouldn't be a problem. Things are done a bit different in the web than in simple program so.. I found this …

Member Avatar for Silvershaft
0
178
Member Avatar for thosecars82

I have a problem with this code [code] <? Header( "HTTP/1.1 301 Moved Permanently" ); Header( "Location: http://www.example.com" ); ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>Untitled Document</title> </head> <body> <?php $language="fr_FR"; putenv("LC_ALL=$language"); setlocale(LC_ALL, $language); bindtextdomain("messages", "./locale"); textdomain("messages"); print "<p>"._("hi! …

Member Avatar for diafol
0
1K
Member Avatar for sfrider0

I have several columns in each row stored with a user's information. I have put a checkbox at the end of each row and a Delete button at the at the bottom of the table. How can I check a box and simply delete the whole row from the database? …

Member Avatar for karuppasamy
0
151
Member Avatar for niths

hi all, i am having a login page which includes username, password,submit,clear. ater cuming to this page i am geting focus on textbox but wen i press clear button it is not focusing again on the username text box. so please help me. Thank u.

Member Avatar for rajarajan2017
0
2K
Member Avatar for jpknoob

Hi, I have managed to upload images to a table in mysql, however, i am having problems with displaying the image, all i get is a box with a red cross in it and i'm not sure what i'm doing wrong. Here is the code i am using to view …

Member Avatar for pritaeas
0
91
Member Avatar for Waher

I am looking for a platform to build a manual and function reference for my open source software-in-development. Something that is easily organized. I spotted a very nice and simple solution here: [url]http://mpdf1.com/manual/index.php[/url] But contacting the author has not resulted in information what that software is and by the look …

Member Avatar for pritaeas
0
121
Member Avatar for nonshatter

Hey, I have a combo box and want to populate it with the selected value upon page reload. For a normal text field I would usually do something like this: [CODE] <input type="text" name="title" value="<?php echo $_SESSION['sellform']['title']; ?>"> [/CODE] How could I do the same for a drop-down box? E.g: …

Member Avatar for whiteyoh
0
1K
Member Avatar for niths

hi all, when i delete any item. it is just deleting. But i need to get the conformation popup that "are u sure u want to delete..?" like this . i hope u understood wat i want. so please help me. Thank u.

Member Avatar for colweb
0
89
Member Avatar for littlebear330

hi, i'm trying to have a mail function using gmail server but i keep getting the error : SMTP Error: Could not connect to SMTP host. Mailer Error: SMTP Error: Could not connect to SMTP host. this is the code i got [CODE]<?php include("class.phpmailer.php"); include("class.smtp.php"); if(isset($_POST['send'])){ $body=$_POST[email]; $mail = new …

Member Avatar for rajarajan2017
0
369
Member Avatar for LadyT

Let me be more understanding... I would like to create a community script with all the features I want and need.A community that allows members to use HTML.A community that allows members to have their own pages with tag boards,Personal information that they would like to put on.Photogallery,Blogs,ETC! I want …

Member Avatar for ankaj.eg
0
471
Member Avatar for SKANK!!!!!

sorry i figure it out again. really really easy: i really need to know. i got this one script that is alphabetally and minimal. which i luv. but i need it to be numerical because well, if ther is more than 9 images it sorts it wrong with abc order! …

0
85
Member Avatar for niths

hi all, i am am having a problem with drop down list. i am having 3 users(SuperAdmin,Admin,User) Superadmin can create Admin, and Admin can create Users. So wen i login as a superadmin i need to get only in the dropdown list admin but getting superadmin also, users and while …

Member Avatar for Graphix
-1
73
Member Avatar for star_lavender

hi...anyone got ideas in form validation...I try a lot of methods already but still can't work...do not have any pop-up message although the required fill leave blank...is it the reason that I create my form in separate file??anyone got ideas on how to solve this problem?thanks in advance... part of …

Member Avatar for star_lavender
0
77
Member Avatar for star.aiko14344

hello..i have a problem with my website..i want that a certain message will be displayed as i mouseover on the radio buttons.please help me..i am not that really knowlegeable in javascript. Here is my code.. <table> <tr> <td></td> <td><strong>Packages:(Please select one)</strong></td> </tr> <tr> <td></td> <td> <a href="?page=h"> <input type="radio" name="package" …

0
66
Member Avatar for Tekkno

I have a while loop and I am trying to associate a number with each line that increments by 1. I am sure this is probably something simple, I am not sure why I am struggling with it. Here is an example of that I have: [code=php] <?php $counter = …

Member Avatar for Tekkno
0
7K
Member Avatar for Carrots

Hi, I have in my database the location of some images I want to display, all formatted as: [quote] ../images/products/1.jpg ../images/products/1.jpg [/quote] I'm trying to diplay them in a webpage but get the following error: [QUOTE] x Warning: substr() expects parameter 1 to be string, array given in C:\xampp\htdocs\mysite\index.php x …

Member Avatar for Encrypted
0
3K
Member Avatar for nevergone

Hi, I have a website called [url]www.site.com[/url] I have a product.php file and a categories.php file that generate the URL's and content dinamically. In .htaccess I have the following rule. [CODE]RewriteRule (.*)_(.*)\.html product.php?category=$1&name=$2 RewriteRule (.*)\.html categories.php?category=$1[/CODE] Everything is ok by now. When I try to change the rewritting rule to …

Member Avatar for nevergone
0
123
Member Avatar for pauloludele
Member Avatar for toasty525

Hi, i have a php script on server1 that sends var1 in a url to server2 like [url]http://server2/script.php?var1=test[/url] server2 then posts back to server1 with the url [url]http://server1/callback.php?var1=test&var2=somedata[/url] i then want callback.php to redirect to [url]http://server3/someScript.php?var1=test&var2=somedata[/url] but callback.php dosnt seem to be redirecting to server3 ? If i type the …

Member Avatar for saiprem
0
63
Member Avatar for vikas.gupta
Member Avatar for LloydFarrell

hi all, im looking to resize an image from the following code, but i keep getting errors when trying to resize the image inline. [code] <a href="read_message.php?messageid=' . $row['message_id'] . '">' . $row['img1'] . '<br>' . $row['datetime'] . '<br>' . $row['message_title'] . '</a><font face="Verdana, Arial, Helvetica, sans-serif" size="1">&nbsp;(You have mail)</font><br><br> …

Member Avatar for colweb
0
127
Member Avatar for whiteyoh

Hi all, I understand that you cant disable a back button, but i do know I could open a new window, closing the window that instigated it. The following code does open a new window, but i want it to open a new tab. Also, its not closing the window …

Member Avatar for Airshow
0
60
Member Avatar for cwarn23

Hi, I am glad to announce the release of the PHP robot which stores information from daniweb topics to answer questions. You may view my bot at [URL="http://chat.cwarn23.info/"]http://chat.cwarn23.info/[/URL] and it can answer all sorts of questions. In addition you can chat to other people who are online at the time. …

Member Avatar for diafol
0
142
Member Avatar for dalip_007

hi can anyone plese let me know how can we accept payment through credit card online? i have seen many credit card payment method on many website and want to have on my website. please help Thanks

Member Avatar for nelixinc
0
396
Member Avatar for Ambislm

Hi all, i am developing an application that gets input from user and display the resultset inside 3 tabs(html). i am using mysql database... my problem here is when i try to paginate the result values it display 1st set of values. but when i click the 'next 10 record' …

Member Avatar for whiteyoh
0
70
Member Avatar for manolisvl46

hallo there everyone.. i got an array from my database [CODE]$save=split("[|;]",$listOfItems);[/CODE] and what i want i s after making some changes to the attributes on the array above to export them on an csv or excel format but directly as a message to the browser .. i dont want it …

Member Avatar for colweb
0
2K
Member Avatar for dan1992

can some wan say me , a script or a php code to make the website to have more language thx :D

Member Avatar for dan1992
0
87
Member Avatar for Stefano Mtangoo

Hi, I need to secure my password and here are my questions. 1. What is the best method of making a salt? I have seen enough arguments for not using user info but rather random values. 2. How do I know user salt if I used random one? Should I …

Member Avatar for Stefano Mtangoo
0
140
Member Avatar for Robert1995

Hello , I'm just amazed how strong php is , but i don't have an idea where to start , I mastered c++ at a command promp level + kinda average at visual c++ . If some1 could give me some sites or tutorials ? And is code igniter a …

Member Avatar for colweb
0
82
Member Avatar for niths

hi all, i had a login page. so whenever i come to login page i am moving to the username text box and selecting that and typing username. so how can i directly type username wat i mean is immediately after coming to login page the cursor should be in …

Member Avatar for nav33n
0
41
Member Avatar for nonshatter

Hey guys, I have reached my wits end with this..! This code works on two of the servers that I have tested, but doesn't want to work on the third server that I need it on! It displays fine, but when the form data is posted back itself to be …

Member Avatar for nonshatter
0
160
Member Avatar for SKANK!!!!!

for some reason, the exact same code without the added "$i[id]" part is working somewhere else on my site, but this is just rediculously NOT working for what i have here: [CODE]function nimg($directory='.') {return count(glob($directory."/item/".$i[id]."/*"));}; [/CODE] i tried this code when there was no item directory made yet and still …

Member Avatar for colweb
0
156
Member Avatar for gunnarflax

I recently just stumbled across a forum where they were talking about [URL="http://winbinder.org/index.php"]WinBinder[/URL] which is a library letting developers easily create windows applications with php code. I had never even thought about using php as a not strictly web programming language. So then I kept reading about this and googling …

Member Avatar for jwenting
0
147
Member Avatar for davidm23

Hello guys, can anybody advice me how to remove or limit adding links inside posts of a wordpress blog? any php plugin available for this? I have a blog where many contributors are placing too many links with their posts. How can I solve this issue? D!

Member Avatar for davidm23
0
73
Member Avatar for smush

Hi everybody, I'm having trouble with my query on line 19. I'm supposed to search for a name and return the balance and credit limit. I'm not sure why I keep getting a parse error. Thanks in advance! [CODE=php] <?php $find=$_POST['find']; $name=trim($_POST['name']); if (!$name) { echo 'You have not entered …

Member Avatar for Will Gresham
0
115
Member Avatar for hknight

Using PHP's IMAP functions, I want to move 10 messages from the folder "xyz_msg" to the folder "xyz_tmp" Below is the code I use to connect to the email server. [code] <?php $mbox = imap_open ("{imap.gmail.com:993/imap/ssl/novalidate-cert}xyz_tmp", "example@gmail.com", "password") or die("can't connect: " . imap_last_error()); $imap_obj = imap_check($mbox); echo "<pre>"; var_dump($imap_obj); …

Member Avatar for cwarn23
0
892
Member Avatar for rcurtisjr

I'm sure I'm missing something simple but I just can't seem to figure this one out. I have a dynamic XML file that is too big to display all the information on one web page. So I need a way to split the information across multiple pages. I have used …

Member Avatar for rajarajan2017
0
785
Member Avatar for MDanz
Member Avatar for deoshermes

Hey everyone, This is a thread about a rather complex SWF operation (for me at least is it complex) What is done: I have a main SWF file that loads some other SWF to be displayed in it and also loads 2 JPG's as the background of the buttons. There …

Member Avatar for rajarajan2017
0
181
Member Avatar for locking

My name is Sami and i am new in this forum but hope to stay a long time around here. I hope you will welcome me in here and share your ideas, experiences, and knowledge to everyone who has got stuck with all kind of computer issues. ps Dont make …

Member Avatar for lovevietnam99
0
116
Member Avatar for alafift

I have been trying to connect a database to generate XML File through PHP code, but I still have a problem on this code. Can somebody help me correcting this code? Thanks in advance. <?php @ $db = new mysqli('localhost','622Std1', '622StdDB1', '622stddb1'); if (mysqli_connect_errno()) { echo 'Error: Could not connect …

Member Avatar for alafift
0
419
Member Avatar for benk1

Hi Guys, I have access to mini linux PCs that can serve up webpages using the Boa webserver. They also house an sqlite db file. What I want to do is install the bare-bones of php with only sqlite and PDO functionality, so I can write to and display data …

Member Avatar for benk1
0
273
Member Avatar for azegurb

hi all, i have two form in php like this [CODE]<form name="az" method="post" action="add.php"> <select name="category" id="category">; <?PHP echo "<option value=default>birini sec</option>"; @$db=mysql_connect('localhost','uname','pass'); mysql_select_db(db); $sorgucat=mysql_query("select * from category"); while($satircat=mysql_fetch_row($sorgucat)) { echo "<option value=\"$satircat[1]\">$satircat[1]</option>"; } ?> </select> </form>[/CODE] and other is [CODE]<form name="az1" method="post" action="del.php"> <input type="submit" value="del" name="del"> </form>[/CODE] i …

Member Avatar for nonshatter
0
96

The End.