39,402 Topics

Member Avatar for
Member Avatar for sarithak

Hi frnds.... In my hosting server they didnt set the SMTP properties perfectly....So, i used the below code...but, this working from last 1 month.but,unfortunatley this code not working from last couple of days..I am getting error...plz check the below code & error message.... [CODE] $to = "TargetName <abv@xxxx.com>"; $host = …

0
61
Member Avatar for Eriku

I have never used ftp in PHP, but now I 'm there. And I cannot figure out what content I should give to the string "$ftp_server" in ftp_connect($ftp_server). I would appreciate some advice.

Member Avatar for Eriku
0
79
Member Avatar for justted

Hello, I was wondering if I could clarify some recent information I have found on the internet regarding PHP security. Im a self taught PHP/MySQL amateur and therefore have a very skethcy knowledgebase of the coding. lol Im currently developing a website and would obviously like to ensure its as …

Member Avatar for jackiboa
0
567
Member Avatar for Phil++

Hey, I'm working on a College project that means you have to re-do the database each time you work on your assignment. So, what I'm hoping to create is a file called "sql_connect.php" which will check if the table is there, if not.. It will run the function that creates …

Member Avatar for forzadraco
0
124
Member Avatar for gpss

Hi! I searched but no luck :S anyone can help me.. i want to fill a table with 3 collumns and [I]n[/I] Row's, with all my database latitude and longitude parameters and date from when it happen... i think i need to make it with a [I]for[/I] .. but i …

Member Avatar for gpss
0
113
Member Avatar for JayGeePee

I was wondering if there was a way to only allow myself to access certain pages on my website? Is there a way to do this by using my ip address? And if someone with a different ip try's to access the page they are denyed or forwarded back to …

Member Avatar for edwinhermann
0
148
Member Avatar for sibt-i-hasan

i know not a single word about how to design a website and i dont know any language may any one can help me[code][/code]

Member Avatar for web3
-1
38
Member Avatar for Phil++

Hey, what I'm trying to do is create a mysql_connection script that includes a exception handling statement that trys to connect to the database and the table, if one isn't created it goes to a file and the database information is stored there. <?php // this file contains the database …

0
60
Member Avatar for praveen_dusari

hi all, i am developing a newsletter module for my site,previously i used a specific newsletter added by admin (using wyswyg) and it is inserted in database and like that admin can send newsletter of his type to n number of users at a time. now i want to change …

Member Avatar for pritaeas
0
109
Member Avatar for Facte

Hi there, for the life of me I can't work out what is wrong with this script, but when it runs I get this message. Warning: mysql_error(): supplied argument is not a valid MySQL-Link resource in.... [CODE] <? $q6 = "select * from banners where lang = \"$_SESSION[lang]\" and section …

Member Avatar for Facte
0
145
Member Avatar for Jayakrishnan_gk

I am sending a text from a .js file to a .php file using POST. Since the text contains special characters i have to use escape() in the javascript file and convert the text. Is there I can get back the original text in the .php file ? Some php …

Member Avatar for ShawnCplus
0
76
Member Avatar for sanjaypandit

[QUOTE]hi friends i have facing a problem [CODE=php]<? define('DIR_WS_INCLUDES', 'includes/'); define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'lang/'); define('DEFAULT_LANGUAGE',''english); ?>[/CODE] these are code use in configure.php it is use in index.php with following code[CODE=php]<? include_once(DIR_WS_LANGUAGES.DEFAULT_LANGUAGE.'.php') ;?>[/CODE] now i want to use this with select language i select language [CODE=php] <? if(isset($_GET['flag'])){ if ($_GET['flag']==po){ echo …

Member Avatar for pritaeas
0
98
Member Avatar for whiteyoh

Hi all, The following code should link 2 tables, showing: student id, surname, firstname, study type, start year. However, its not :-). its just a white screen. ive got php5.ini with ERROR_REPORTING (E_ALL); in it but im still getting nothing at all. The tables definitly exist! have i missed something …

Member Avatar for whiteyoh
0
101
Member Avatar for streetrodfanati

Hello Everyone, My mailer keeps sending duplicates & I can't find the problem in my code. I would appreciate it if someone could look it over & point out the problem. [code=syntax] <? if($action == "mail") { $success=0; $failed=0; $headers .= "From: Golden Planet Clubs PTC Admin <admin@ptc.goldenplanetclub.com>\n"; $headers .= …

Member Avatar for streetrodfanati
0
97
Member Avatar for sarithak

Hi friends.... I need to learn Smarty for my next project... Plzz tell me , some good tutorials/free books... for smarty template engine, developement in coding.... If any body having softcopy ,plz send me as attachment... Thanks in advance... Saritha K

Member Avatar for pritaeas
0
181
Member Avatar for bhadong04

hello.. may i seek ur help.. i have this problem of coding a library system using php.. is there anyone here know how or already have the codes? i need two log in, one for the borrowers and one for the admin. then registration is also needed. it should also …

Member Avatar for ithelp
-1
248
Member Avatar for ebumark

Good to be here. On my computer system, i want to use apache program so that i can make my computer a server. Now after doing that and as well installing PHP, it will be reporting error. i think the problem is on configuration. Plz can any body help me …

Member Avatar for nunomartinsinet
0
160
Member Avatar for muralibobby2015

hi frnds.....when ever i select some lines that lines will automatically copy with out using 'ctrl+c'. so how to do?

Member Avatar for muralibobby2015
0
79
Member Avatar for CFROG

What could make a query run fine from the command line and return the expected results, but not return results when run through the page? I get no syntax errors, just a warning for the fetch_array. It all looks good to me, I'm stumped. I echoed all the variables immediately …

Member Avatar for CFROG
0
107
Member Avatar for MDanz

on the bottom frame is menu.html [CODE]<body><form action='link.php' method='post' name='changer'> <label>URL <input type="text" name="url" /> </label> <label> <input type="submit" name="Submit" value="Submit" /> </label> </form> </body>[/CODE] on the top frame is link.php [CODE]<?php if (isset($_POST['url'])) { header("Location: " . $_POST['url']); } ?> [/CODE] the problem is when i enter a url, …

0
48
Member Avatar for gpss

Hi! Is it possible to refresh only a <script> and not all the page?! i have a <script> that displays google maps... and i show it on my page with other material.. i just wanted to refresh that script (google maps display), and not all the page... i did it …

Member Avatar for Will Gresham
0
117
Member Avatar for realchamp

Hello! I was wondering if it were possible for me to have a PHP script which would send a line of charactors to my C++ program. The C++ program needs to run all the time to recieve the inputs from PHP. Both the C++ program and my webserver is on …

Member Avatar for realchamp
0
224
Member Avatar for leviathan185

Hi All, i am trying to write an application that will take an XML file that has been saved from an XLS spreadsheet and display the data. I will be ok with how to display the data i just dont know how to get the data from the XML. I …

Member Avatar for leviathan185
0
119
Member Avatar for streetrodfanati

Hi, My install file is not creating all the tables- it's only creating the " abuse_report" and not any of the others. Can someone give it a look see? Or can someone tell me how to put the tables int a sql file that I can just upload instead? [code=syntax] …

0
92
Member Avatar for Xentiago

Hi, was wondering if someone could point me in the right direction. I am currently making a php/html registration page for users in dreamweaver and I want them to check a radio button to confirm they have read the rules, like so. [code]<input type="radio" name="rules" value="radiobutton"> <p>I confirm I have …

Member Avatar for Xentiago
0
116
Member Avatar for artdezign

Hey there, I'm new to php, but have been using a book to guide me through the code. I have created an order form and have run into this: Parse error: parse error, unexpected T_STRING in /home/content/a/r/t/artdezign/html/new_order/pages/orderreceived.php on line 5 Here is the php code I have used in my …

Member Avatar for Will Gresham
0
81
Member Avatar for web3

How to limit access on my page to unregistered visitors? Like that they can't open forum or users profiles?

Member Avatar for Will Gresham
0
68
Member Avatar for valonesal

One of the guys here were nice enough to help us put together a javascript code that displays dynamic information. [CODE]<div id="info"></div> <script type="text/javascript"> var request if(window.XMLHttpRequest){ request=new XMLHttpRequest() }else if(window.ActiveXObject){ request=new ActiveXObject("Microsoft.XMLHTTP")} request.open('GET','http://ourwebsite.com/index.php?get=1',false) request.send(null) document.getElementById('info').innerHTML=request.responseText </script>[/CODE] The problem we are having now is that it does not show the …

Member Avatar for codejoust
0
68
Member Avatar for severman

hi all im trying to find out where the hack php5 is installed on my computer.. its not on /usr/bin/php5 im trying to run a php script with the ./ command. i searched php5 on my computer and enter this code at the begining: [code] #!/etc/php5/apache2 [/code] etc... allways get …

Member Avatar for codejoust
0
111
Member Avatar for web3

How i put to my register error if user already exists. My code: [CODE]<?php include "connect.php"; echo "<h1>Register</h1>"; $num = 0; $submit = $_POST['submit']; $username = $_POST['username']; $password = $_POST['password']; if ($submit){ if ($username){ if (strlen($username) > 20){ $num ++; echo "<tr><td>".$num.". Username is too long.(3-20)</td></tr><br />"; } } if …

Member Avatar for Will Gresham
0
184
Member Avatar for guruvarman

Hi Friend image Uploading is working well in localhost working with WAMP SERVER 2.0. Also i am able to access the stored image easily from the directory in offline BUT While working online only the path is getting updated in database but the file is not uploading to specified directory. …

Member Avatar for guruvarman
0
100
Member Avatar for veledrom

Hi, We can code this way to print something if Exit button is clicked. [code] <form action="process.php" method="POST"> <input type="hidden" name="hiddenName" value="Jolly" /> <input type="submit" name="submit" value="Exit" /> </form> if($_POST["submit"] == "Exit") { echo $_POST["hiddenName"]; } [/code] What about if we use this way. How do i check if Exit …

Member Avatar for ShawnCplus
0
120
Member Avatar for j_limboo

New to php I want to create new table and store session ID this step is to prevent multiple login Current using this code which does not check multiple logins Any advice would be appreciated [CODE] <?php //Start session session_start(); //Include database connection details require_once('config.php'); //Array to store validation errors …

Member Avatar for diafol
0
2K
Member Avatar for severman

hi im trying to build a program like windows commander on linux with php. is there any way that i can start vi with php? for example, im showing all the files of a certain folder and now i wanna edit with vi one of the files. how do i …

Member Avatar for pritaeas
0
39
Member Avatar for mcx76

I install php script.Everything is fine.But when i go to the page (Code Below ) Update button is not showing on internet.While when i open the file with Dreamweaver i can see the Update button.Please be advice. I am not php coder.Dont know that much about programming. Thank you in …

Member Avatar for network18
-1
110
Member Avatar for dokinah1

the above code is supposed to allow you to edit the property info/details of real estate in the database....problem is when the edit button is clicked , a parse error (on line 802) is displayed.[code]<?php header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); header("Last-Modified: " . gmdate("D, d M Y H:i:s") …

Member Avatar for network18
-1
199
Member Avatar for alexjbriggs

Hey Guys...i know this is a common problem and ive read other threads, but can't figure out my specific problem. Any help would be appreciated!! This script worked perfect until i moved it to a different host. Getting this error: [CODE] Warning: mysql_numrows(): supplied argument is not a valid MySQL …

Member Avatar for network18
0
96
Member Avatar for j_limboo

New to PHP Password change fails please advice [CODE] CREATE TABLE IF NOT EXISTS `ps_users` ( `id` int(255) unsigned NOT NULL AUTO_INCREMENT, `username` varchar(100) NOT NULL, `firstname` varchar(50) DEFAULT NULL, `lastname` varchar(50) DEFAULT NULL, `password` varchar(40) NOT NULL, `active` int(1) NOT NULL DEFAULT '0', `ip` text NOT NULL, `usergroup` text …

Member Avatar for j_limboo
0
200
Member Avatar for jrosh

I want to set a password to [B]phpmyadmin interface[/B] in WAMP.. How can I do that?? I jst want to make sure that no one will change my databases using Phpmyadmin GUI ..() mysql console is ok..... thankx in advance..

Member Avatar for jrosh
0
55
Member Avatar for muralibobby2015

hai frnds......how can i sent mail to multiple mailaddresses at a time? you have any script abt this.. so, plz help me.....

Member Avatar for network18
0
73
Member Avatar for valonesal

This should be pretty simple, We have written a script that calls certain information from our database then we use a simple echo to show the information on our other .php pages. What we need to do is be able to show this same information on html pages as well. …

Member Avatar for valonesal
0
171
Member Avatar for glycerine

I have the following update code but i keep getting a syntax error. You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'WHERE order_id='105'' at line 21 [CODE]mysql_query("UPDATE status SET id = '". $_POST['id'] …

Member Avatar for Will Gresham
1
180
Member Avatar for mr_scooby

Hello, I have 2 php forms, the first that takes the input and sends it to the second form which checks to see if the fields are empty. What I have to do is if both fields are not entered is return to the main page and highlight the field/s …

Member Avatar for mr_scooby
0
143
Member Avatar for web3

I have a register and login code, but i don't know when the user register to automatically make user page.Can anybody help me?

Member Avatar for Will Gresham
0
133
Member Avatar for Reliable

I've been echoing variables by simply typing "echo" then the variable. For instance: [CODE]<?php $name = "Me"; echo $name; ?>[/CODE] This has been working just fine. I was watchign a tutorial and when he echoed his variable he put his in curly brackets. This is the example: [CODE]<?php $username = …

Member Avatar for Will Gresham
0
82
Member Avatar for genieuk

Hi, I been using a function for past few months that refreshes or redirects a user after xx time, for example after logging in etc. It workes fine in FireFox but notice that in IE7/IE8 and Google Chrome it does not redirect. I checked in IE and it is enabled …

Member Avatar for genieuk
0
156
Member Avatar for roti_john

Hi all, I would like to know is it possible for php do the images matching?Example, user upload the image and search from similar/ same picture? Thanks

Member Avatar for roti_john
0
102
Member Avatar for vaultdweller123

Hi everyone....I have a problem on my php date function... and i hope someone will help.... the PHP date function outputs incorrect results... It outputted incorrect date which is 8 hours late.... and i found out that the timezone has been set to UTC. So ive search the net and …

Member Avatar for tarunkhatri
-2
136
Member Avatar for jimSp

I have a newsletter that sends out a notification to members with in 30 days of expiring. The way it works is the script populates an <option> from the members table who fall with in the thirty days. All I want to do is be able mask the $to recipients …

Member Avatar for jimSp
0
170
Member Avatar for masterjiraya

[CODE=PHP]<?php echo "<html> <head> <title>QUIZ-FINALS</title> </head> <body background=fatcat.jpg> <form method=post> <table border=0> <tr><td colspan=3><b>Enter eight Score:</b><br></td></tr> <tr><td><input type=text name=1></td><td><input type=text name=2></td><td><input type=text name=3></td><td><input type=text name=4></td></tr> <tr><td><input type=text name=5></td><td><input type=text name=6></td><td><input type=text name=7></td><td><input type=text name=8></td></tr> <tr><td colspan=4><input type=hidden name=h value=true> <center><input type=submit value=Compute></center></td></tr> </form></table> <br>"; if($_POST['h']==true) { $n[0]=$_POST['1']; $n[1]=$_POST['2']; $n[2]=$_POST['3']; $n[3]=$_POST['4']; …

Member Avatar for poojamakhija
0
137

The End.