39,402 Topics

Member Avatar for
Member Avatar for garyjohnson

This is my upload form for html to upload only one pic, <html> <body> <form action="upload_file.php" method="post" enctype="multipart/form-data"> <label for="file">Filename:</label> <input type="file" name="file" id="file"><br> <input type="submit" name="submit" value="Submit"> </form> </body> </html> I want to be able to upload multiple pictures at once. This is my php code for uploading. <?php …

Member Avatar for garyjohnson
0
783
Member Avatar for ritesh0104

I am currently working on a membership registration web form, wherein we have to take details of the member being registered online. i need to know his Country, State/Region and City. i am looking for a database/list so that we can provide the same in a combobox in the registration …

Member Avatar for Wailintun
0
274
Member Avatar for guilherme.carvalho.9250

Hello to everyone, im having some trouble in setting a position on a table in php. I learn how to display a table in php on school and with some research through the internet, but not how to customize it. Is it possible to display a mysql table from a …

Member Avatar for guilherme.carvalho.9250
0
1K
Member Avatar for hwoarang69

how to get part of col name in query. for ex: les say i have these rows in table: id name last address 1 dave da new york 2 rand ra ohio 3 random a new now i want to get rows where address has a word new in it. …

Member Avatar for tiggsy
0
121
Member Avatar for ravi372

Hey guys! I see alot of discussions going on in this community. Well, I am new here. Was just going through random discussion threads and I can see how much efforts goes into all this. Really appreciate. I have something to ask. I am working on a warehousing/inventory management application …

Member Avatar for Exheon
0
177
Member Avatar for suniverm
Member Avatar for prasadssaitwal

<?php function getlink($x) { $y=$x.'.php'; return($y); } $a=array('0','1','2','3','4'); for($i=0;$i<5;$i++) { echo '<li><a href='.getlink($a[$i]).'>'.$a[$i].'</li>'; } echo '<iframe src="">'; ?> when i click on the links instead of new tab it should be open in iframe

Member Avatar for veedeoo
0
394
Member Avatar for furlanut

I have added 3 radio buttons to a form (no errors prior to this) for option to sort fetch_array result by field. I assume this is best done from the array but am making no progress - the results of $name,print_r($array) and tables are correct but no sorting. This Notice …

Member Avatar for diafol
0
155
Member Avatar for PhilEaton

I am new to python web frameworks. I am using web.py because I like how raw it is. I am wondering though, how one can produce pages and scripts efficiently when being restricted to sending output through the return keyword? It seems like for any python module you can only …

Member Avatar for Gribouillis
0
243
Member Avatar for GraficRegret

I have adjusted a lot of the code that I posted earlier but nothing seems to work, I put in the code to show all errors and I am not getting any errors returened after I fixed the single minor misstype of adding an extra "(" into the code, i …

Member Avatar for GraficRegret
0
166
Member Avatar for bornie21

Hie guys. I want to create a LAN web based application that allows a user to login and change their current Windows Active Directory password or login name. Much like the Powershell scripts but I was looking to implement using PHP over the LAN. Any ideas?

Member Avatar for diafol
0
157
Member Avatar for firdousahmad
Member Avatar for GraficRegret

I found a tutorial on how to build a php events calendar and this tutorial uses a mixture of php, Ajax and Javascript to form the calendar, everything works properly and displays well, up to the point of actually pulling up and displaying the events details which are pulled from …

0
99
Member Avatar for Karry.Stewart

I have a datagrid which is successfully loading a database in my .PHP page that loads Title, Location, and Date. I have struck up, struggling to allow only 8 records at a time with a pagination. Also a link has to be created for 1st column where it links the …

Member Avatar for diafol
0
171
Member Avatar for mehnihma

I am new to php and mysql I want to crate a query that does the update or adds a new table if it is not in database. I get on else for echo: Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home2/public_html/shop/dokumenti/up2.php on line 53 …

Member Avatar for mehnihma
0
299
Member Avatar for OldDeveloper01

Hey if anyone could help me out, that would be superb. It is probably something simple but i am always getting undefined index messages. This is the latest example. [B]Notice: Undefined index: savebtn in C:\xampp\htdocs\practice\editprofile.php on line 20[/B] And this is the php. [CODE] if ($username){ require ("scripts/connect.php"); if ($_POST['savebtn']){ …

Member Avatar for pzuurveen
0
1K
Member Avatar for daniel36

I need to send email from my local server.I lisent that it is possible through gmail server.can anybody tell me how can i send email from my local server throurgh gmail.I have searched on google and did not get appropriate answer.Thank you in advance.

Member Avatar for daniel36
0
111
Member Avatar for lttleastig

I used this script to load the page but instead of loading the page it saved it as an .xls file header("Content-type: application/vnd.ms-excel"); header("Content-Disposition: attachment; filename=Sched.xls"); // Fix for crappy IE bug in download. header("Pragma: "); header("Cache-Control: "); Works no problem on my pc server running xampp>apache but when i …

Member Avatar for lttleastig
0
189
Member Avatar for Fiorentino01^

Hi, I have a site under construction.It is not on line yet and I don't have a domain name yet. I test it with IIS 7 and works fine.Now I need a form to collect inmformation from visitors.The information should be sent to me by email. I looked at various …

Member Avatar for moneeshot
0
234
Member Avatar for alex.p.kcx

Hi, With resources on the internet I have created two versions of a login page :- one with mysql_fetch_object and the other without it. I would like to understand which approach is a better and why. Following is the code with mysql_fetch_object :- <?php session_start(); include "dbconnect.php"; if(isset($_GET["op"]) == "login") …

Member Avatar for broj1
0
385
Member Avatar for onofej

hello everyone, i have read through other post but could not resolve my issues. i need someone to see to my code. i am trying mysql_real_escape_string for my datas. but the one without it can insert properly while the one with the mysql_escape does not. from my code, i am …

Member Avatar for onofej
0
111
Member Avatar for GraficRegret

well here I go again it is probobly a minor mistake that I am missing, however I am having issues getting the 'description' that I have entered into my database to show up inside the div when the 'details' button is clicked, to follow are each page of code allong …

Member Avatar for GraficRegret
0
146
Member Avatar for jayreis

I am trying to send an email via php with an attchment. Before anyone suggests using pear or swiftmailer I am aware of all of them but have a host who refuses to install any of them on my clients hosting account. So I am stuck with writing this function …

Member Avatar for jayreis
0
267
Member Avatar for GraficRegret

ok I have a login form that works and checks but I can just pout in the url to go to a specific page inside of the website I am designing and get into it without logging in, how can I remedy this? I have gone through many tutorials and …

Member Avatar for GraficRegret
0
274
Member Avatar for itsmeurdude

help please!!! i have installed xampp v3.1.0.3.1.0 it seems that my apache is not really working everytime i click once apache it turns yellow then says 9:39:44 PM [Apache] Status change detected: stopped 9:39:44 PM [Apache] Error: Apache shutdown unexpectedly. 9:39:44 PM [Apache] This may be due to a blocked …

Member Avatar for veedeoo
0
389
Member Avatar for sarithak

Hi friends, I am struggle from last coup[le of days with this error. Error: `Forbidden You don't have permission to access /reports.php on this server. Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.` I tried to solve this by searching …

Member Avatar for veedeoo
0
145
Member Avatar for jacob.tonna.58

script in file 1 <?php // Check if he wants to register // - Make sure that param exists // - Check length if (isset($_POST['username']) && strlen($_POST['username']) > 0) { // Check if passwords match. // - Make sure that params exist // - Check length // - Check matching …

Member Avatar for simplypixie
0
393
Member Avatar for RaeesIqbal

I am a traniee yet, and I've been working out on this code to let a member change his password using $_POST method, but i am missing something and i cant find out what it is, any quick help will be very appriciated. This is the page for form using …

Member Avatar for simplypixie
0
254
Member Avatar for showman13

Good Morning... I am running into an issue trying to run a table rebuilding script that I wrote, and I'm wondering if it is due to including a script that also includes itself multiple times, depending upon the results generated by the script itself... That may sound a bit confusing, …

Member Avatar for showman13
0
375
Member Avatar for Martin C++

Hello, I would like to know how to output potentally thousands of posts with pages. So that i can choose how many posts to display on a page and the ones that wont fit will note be generated there. instead on the bottom of the page there will appear links …

Member Avatar for rfrapp
0
89
Member Avatar for ushajase

Hi, i want to create recent blog view, so i need to set Link dispaly into my recent blog view.

Member Avatar for ushajase
0
140
Member Avatar for Navlag

Hello everyone, I have a PHP form that connects to an oracle DB and should send data to the database when the form is submitted, but I can't figure out why it's not loading any of the data into the database, everything seems to be correct (though this is my …

Member Avatar for LastMitch
0
2K
Member Avatar for cssweb

hello guys how are you, i have an inquire about how can i put the adress if my adress contains php it is the link which i want to put <link>shownews.php?full=news&id_topic=$row->id_topic</link> here is my code <?php header('Content-Type: application/xml'); mysql_connect('localhost','root','root'); mysql_select_db('ahmad'); echo '<?xml version="1.0" encoding="utf-8"?>'?> <rss version="2.0"> <channel> <title>my articles</title> <description>News,social,media</description> …

Member Avatar for Atli
0
235
Member Avatar for pjh1985

Hi, I have been trying to create a login facility using PHP/mySQL and so far I have managed to get everything working apart from changing/updating the stored user password. The code I have used is basically just the registration script with a few changes so that it will update a …

Member Avatar for aareyes00
0
5K
Member Avatar for thebloodycoon

I read several topics similar to what I'm asking, but none of them seemed to be very helpful to me. I have a form where users can generate codes that are stored in a column with a Unique constraint. The codes are strings with length of 7 characters. The users …

Member Avatar for ddymacek
0
150
Member Avatar for kishoresai438

Hi friends, i want to redirection script for `www.xxxx.com/abc/` to `www.xxxx.com/` my website saved in **abc** folder. first i set the permenent redirection in Cpanel from `xxx.com` to `xxx.com/abc`. but i want to display onley website name..dont want to display folder. Now, i am using this code.. but not working... …

Member Avatar for Dani
0
110
Member Avatar for tinabina22

I have attached a require PHP to my html pages for my vertical navigation bar but now my problem is how do I do this and have the navigation menu side be side with my text? Here is one of the pages on my site, the home page works great …

Member Avatar for tinabina22
0
184
Member Avatar for globetrotter_me

1. <?php 2. $_page = null; 3. include(MODS_DIRECTORY."/client.php"); 4. $auth_url = "http://localhost/server.php"; 5. $data = file_get_contents(); 6. $result = json_decode($result); 7. if($result['valid'] != true){ 8. die("Invalid Key. Script Stopped!") 9. } 10. ?> I'm bit new to PHP. Could anyone please tell me what's wrong in the above code snippet? …

Member Avatar for diafol
0
126
Member Avatar for PsychicTide

Hey guys, have a quick multiple database connection question I hope will be simple to answer. I've worked with this type of situation several times, but I must be missing something. I have a newspaper website that has 8 databases (news, obituaries, opinion, etc..) which can hold about 7 counties …

Member Avatar for diafol
0
327
Member Avatar for navneet patel

i have a excel file of hindi data. i want to convert in sql database what i do? please help me

Member Avatar for jkon
0
292
Member Avatar for cristian.stilpeanu.3

Hello, I noticed some time ago a website that allows you to find ip of a site you want,, I searched a lot but I can'' not found code that allows you finding a ip just by typing the URL in the box. I really appreciate who can help's me. …

Member Avatar for tamilabisarva
0
164
Member Avatar for hwoarang69

this works fine $view_query = mysql_query("SELECT ip_address FROM view"); but this query below give me a error $view_query = mysql_query("SELECT ip_address FROM view WHERE ip_address = $user_ip") or die(mysql_error()); error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the …

Member Avatar for james.anthoney.716
0
191
Member Avatar for doha786

I have three arrays & i like to convert it in one multidimensional array. $array1=array('Kathy', 'Adam', 'Jenny'); $array2=array('student','teacher','driver'); $array3=array(2, 5, 8); $mix=array(); $mix['name']=array_values( $array1); $mix['profession']=array_values( $array2); $mix['SL']=array_values( $array3); OUTPUT: Array ( [name] => Array ( [0] => Kathy [1] => Adam [2] => Jenny ) [profession] => Array ( [0] …

Member Avatar for sanket044
0
180
Member Avatar for kishoresai438

Hi friends, I am having small doubt regarding redirection of my webpages. folder structure : **project/admin/** i want to redirect this to **project/admin/adminlogin.php** Please check the below .htaccess code and corect me plz. Below .htaccess file saved in **project/admin/** this path. Options +FollowSymLinks RewriteEngine On DirectoryIndex adminlogin.php

Member Avatar for sanket044
0
95
Member Avatar for SunnySideUp

Hi, I have this website which I am developing, but it is having display problems. I have a directory called 'includes' which contains 'header.php', 'login.inc.php' and 'login_form.inc.php' 'header.php' - displays the normal doctype, meta tags, styles, etc. 'login.inc.php' - is the actual process of the login form once the form …

Member Avatar for SunnySideUp
0
433
Member Avatar for viveksraman

<?php $con = mysql_connect('localhost','root',''); <?php $con = mysql_connect('localhost','root',''); $db = mysql_select_db('myuploads',$con);$un = $_GET['usname']; $ps = $_GET['passwd']; $retr = mysql_query("SELECT uname,password FROM user WHERE uname = '$un' "); while($row = mysql_fetch_assoc($retr)) { if($row['uname'] == $un) { if($row['uname']== $un && $row['password'] == $ps) { echo "Welcome ".strtolower($un); } else echo "Password doesnt …

Member Avatar for cmps
0
201
Member Avatar for OsaMasw

Hello buddies and merry christmas I have a string which is a file name with multi parts (my file.part001) I need to remove the (.part001) form the string so only the (my file) still. I've tried function removeFromEnd($string, $Remove) { $RemoveLen = strlen($Remove); $stringLen = strlen($string); $pos = $stringLen - …

Member Avatar for OsaMasw
0
134
Member Avatar for vizz

I have links like, #**#/Home**, **#/About** how to remove **#/** using .htaccess I have other RewriteRules and they all work fine URL's are displayed like **localhost/site/#/Home**

Member Avatar for vizz
0
181
Member Avatar for GraficRegret

so the page protection code I finally got to work is working properly in all the browsers however with safari after I log out i can click the back button and get into the protected pages and change things, however once the submit button is hit or the page is …

Member Avatar for GraficRegret
0
127
Member Avatar for paine_today

Hello Daniweb Univere, I am looking for a good program to use to store several dozen text documents, make them searchable, and ideally, allow me to link to specific lines of the document. I imagine there are programs like this, I have just been unable to find them. Any suggestions …

Member Avatar for diafol
0
239

The End.