39,395 Topics

Member Avatar for
Member Avatar for shilu2

I have a html code as below through which I give image file as input <input name="photo_file" type="file" /> then anather php file to insert record into database code is as below <?php define('GW_UPLOADPATH', 'images/'); $picture=$_FILES['photo_file']; $target= GW_UPLOADPATH . $picture ; $con = mysql_connect("localhost","root",""); if (!$con) { die('Could not connect: …

Member Avatar for jacob.lemelincarrier
0
204
Member Avatar for vijayram

Hi how to make it user post photos and videos on my website ,same link as facebook link. any body plz give me idea.and link

Member Avatar for diafol
0
118
Member Avatar for Stardemos

i'm using php 5.4.3, I'm wondering if it's possible to use function session_start(). my idea is to have a login page, then use the username in all pages of the site, the problem is that the $username is not visible in the second page... index.php <html xmlns="http://www.w3.org/1999/xhtml" lang="en"> <head> <meta …

Member Avatar for Stardemos
0
468
Member Avatar for toleen

hi all i have a drop down list to lets user to select one option then, i want to post this option to another page and display information from my database based on this option how can i do this? hint: the values of the list is stored in my …

Member Avatar for jetkingvinay
0
508
Member Avatar for yahya.erturan

My previous folder tree was (with portable xampp): (for example working on D: drive root) /xampp/htdocs/application /xampp/htdocs/system /xampp/htdocs/themes /xampp/htdocs/index.php etc.. Now I am trying to shift into a structure which I can work with multiple projects so new tree: /xampp/htdocs /web_projects/project-name/codeigniter/application /web_projects/project-name/codeigniter/system /web_projects/project-name/htdocs/themes /web_projects/project-name/htdocs/index.php My htaccess file in htdocs: RewriteCond …

Member Avatar for cereal
0
2K
Member Avatar for hajjo

Hello, I am setting up a website which downloads and stores music. I want on download link to check if user downloaded that music , that is I want to check if file downloading exists on his computer. how can it be done?

Member Avatar for hajjo
0
96
Member Avatar for xNZxAssAssiNx

In my code I have a mysql query: "SELECT `username`,`password` FROM `users` WHERE `username` = 'Tyler'" This query doesn't return anything in codeigniter but it does return username and password if I query in phpmyadmin. Does anyone have any idea what is wrong? I'm guessing it has something to do …

Member Avatar for pritaeas
0
212
Member Avatar for souravbansal89
Member Avatar for souravbansal89
-1
109
Member Avatar for websponge

I have this in my index.php include ('php/config.php'); $connection = new db(); $connection->connect(); the class (in a file called config.php) looks like this: <?php //CONECTION CLASS class db { var $host="localhost"; var $username="root"; Var $password=""; var $database="training"; public function connect() { mysql_connect($this->host,$this->username,$this->password); mysql_select_db($this->database)or die(mysql_error()); $sql = "SHOW TABLES"; $result = …

Member Avatar for broj1
0
162
Member Avatar for ZER09

I created a class that will handle the session_set_save_handler but after executing session_start i will get server error this is my code, <?php defined('protect')||(header("HTTP/1.0 404 Not Found")); require_once INCLUDES . '/query.php'; class MySQL_Session{ private $dbConnect = null; protected $savePath; protected $sessionName; private $sessionTable; private $sessionColumn; public function __construct() { $c …

Member Avatar for ZER09
0
202
Member Avatar for TheHealer

I need to write code that looks for files ending in .jpg in an uploads directory, and adds them as images to the page. I'm not too sure how to go about doing this. I've done the form that allows someone to choose a file to upload: <form method="post" action="image.php" …

Member Avatar for TheHealer
0
133
Member Avatar for narekm

I am experiencing this problem for wordpress multi sites . I have enabled network of blogs . So now I create many blogs in my wp and visit subblog via myblog.com/sublog . But the problem is that resources in the subblog starting with myblog.com/sublog .. dont load like css images …

Member Avatar for LastMitch
0
138
Member Avatar for Ahmed Goran

Hi all i have a form as follows: ** file1.php** <form action="<?php echo $editFormAction; ?>" method="POST" enctype="multipart/form-data" name="tblMovment" id="tblMovment"> <input name="MovDate" type="text" /> <input name="MovAmount" type="text" /> <input type="submit" name="submit" id="submit" value="add invoice" /> </form> 1. **I want to pass the Auto increment ID of the table above to another …

Member Avatar for Ahmed Goran
0
286
Member Avatar for kx220

Hi Developers, I'm a beginner on php/mysql and I would like some help on my LOGIN FORM. I created a database called user, table called users, and I inserted two users with two passwords. The passwords have not been encrypted yet. hen I run my login form, If I enter …

Member Avatar for jkon
0
234
Member Avatar for dyingatmidnight

Hi there, I'm dynamically pulling my sidebar image from a database, the image is resized to fit based on which dimension is smaller. Then I'm using a jquery script to reposition the image so that any overflow on the width overflows both sides rather than just on the right using …

Member Avatar for LastMitch
0
171
Member Avatar for LastMitch

Hi I recently created a `JQuery Gallery Script` in the `Javascript` section with some help from **pritaeas** & **JJenZz**: Here is the link to the script: http://www.daniweb.com/web-development/javascript-dhtml-ajax/threads/434987/havent-issue-with-seeing-alt-with-image-in-jquery The `JQuery` code works you can check the link and test it out. Since the script is in `JQuery`. I want to add …

Member Avatar for LastMitch
0
644
Member Avatar for genegavino

Can anyone please help me with this one? i have successfully save data in my form but i can only do it in a single row.. please help me how to add rows automatically, how to auto number the Item No., how to auto-total the Quantity column and the Unit …

Member Avatar for diafol
0
2K
Member Avatar for yumyam09

iam thinking if theres a possibilities that i can put a time in time out on my PHP if you log in thats the time you time in and if you log out thats the time out is that possible?? if yes how?? anyone can help me?? THANKS IN ADVANCE

Member Avatar for jkon
0
80
Member Avatar for diafol

Hi All. Have been messing around with PDO for a while, but have come across a bit of a quandry. I like the prepare - execute method for fetching data, but I needed to check if an update query actually did update or not. Now not having mysql_affected_rows() to hand, …

Member Avatar for diafol
0
1K
Member Avatar for jacob21

Hi, I want to check query execution time. I used microtime(),time() but not getting accurate result. I also read about mysql slow_query_log but not able to find how to change settings in PHPmyadmin. Need suggestions

Member Avatar for pritaeas
1
167
Member Avatar for momonq1990

how can i send mail with working .gif, .png and background color using mail()function. what i need to set? i have $headers = 'MIME-Version: 1.0' . "\r\n"; $headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n"; pls help what i need to do :(

Member Avatar for momonq1990
0
187
Member Avatar for rpv_sen

Hi i want to know, how to display the datas simultaniously in twitter and in my webpage. Example: If i am posting one article in my cms, it will also post in my twitter account. Please can any one help me to solve this issue.

Member Avatar for pritaeas
0
293
Member Avatar for geneh23

Hey everyone, So I have another admin redirect problem. I have a file for user functions and login check/if exists..ect so the other redirect set of PHP paramaters won't work and all I want to do is redirect a user to access a page based on user_level. Whether the user_level …

Member Avatar for geneh23
0
613
Member Avatar for akashbarot51

My requirement is, when i press on button 1)it should check whether the textbox is blank it should show alertbox to enter value and stay on that page. 2)if value is correct than check value and display message on next page. i have developed two files they are as following. …

Member Avatar for ome2012
0
202
Member Avatar for gamebits

Well I know how to upload image (.gif, .jpg, etc) resized, resample, add link to database fetch link and display images on webpage. But now I need to be able to upload documents on server, add link in the database and be able to display those documents on the web, …

Member Avatar for yats123
0
482
Member Avatar for vishalonne

Hello When I click on Register button I get this error - Message: Object expected Line: 20 Char: 1 Code: 0 URI: http://localhost/goodlogin/registerform.php This is my registerform.php code - <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <title>register</title> <script type="forms.js" type="text/javascript"></script> <script type="sha512.js" type="text/javascript"></script> </head> <body bgcolor="black" style="color:white;"> <FORM ACTION="register.php" METHOD="POST"> <h1>welcome …

Member Avatar for LastMitch
0
169
Member Avatar for mmcdonald

Hey all, I have a folder called 'templates' in my root dir (../templates/). When a PHP form is submitted I want to copy a folder out of 'templates' called 'template1' (../templates/template1) and paste it into the root directory but with the new name of 'username123'. How can I copy, rename …

Member Avatar for mmcdonald
0
416
Member Avatar for Buppy

Hello, I have a lot of files uploaded with wp-admin in uploads folder. I don't have access to FTP, however, I need to download those files stored in uploads directory. Is there a way of doing it? Like - a wp plugin or something. Thanks

Member Avatar for ckchaudhary
0
126
Member Avatar for godzab

I am just trying to submit two input fields, username and password. I am not able to do that because my code won't submit my data to the PHP database. The code is below, also please note I am trying to use ajax: getData.php <?php $db = mysql_connect('localhost', 'wont tell', …

Member Avatar for Clanstrom
0
228
Member Avatar for andyy121

hi everybody i just need to know what is the function of preg_split and that which is inside of brackets: $keywords = preg_split ('/[\s]+/',$keywords);

Member Avatar for andyy121
0
158
Member Avatar for LastMitch

Hi I want to know the if `GD2` run the same as `JQuery`? For example for `JQuery` you need this: `<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>` for the code to run. But for `GD2` you need a package but I haven't download it yet. I just want to know the **Pro** and **Cons** between …

Member Avatar for LastMitch
0
119
Member Avatar for mmcdonald

I'm hoping not to post much code (to do this myself) but I'm having issues in figuring out why a mysql_query isn't be executed. This is the mysql_query: mysql_query("UPDATE `servers` SET `status` = 'online.png', `cur_players` = '".$online_count."', `max_players` = '".$max_slots."', `software` = '".$software."', `plugins` = '".$plugins2."', `players` = '".$players2."', `version` …

Member Avatar for mmcdonald
0
276
Member Avatar for cssweb

when i submitted the form i get this error on my site but i am sure of the config 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 '' at line 1 <?php mysql_connect('localhost','ali_root','kingstone2012')or …

Member Avatar for cssweb
1
239
Member Avatar for mktrx

Hi all, hope you are having a better day than I am... I am trying to write the results of a search of text using preg_match_all to a database... First thing I need to do is write the results of the search to an array (which preg_match_all does)... It writes …

Member Avatar for mktrx
0
108
Member Avatar for kitschkath

Hi, After two weeks of not touching my web codings. PHP just gave me tons of surprises. I'm confused. I don't know what happened but I have this page entering a new category: <form name="new_category" action="savenewcategory.php" method="post"> <input type="text" name="category" size="30"><input type="submit" value="Add"> </form> savenewcategory.php <?php $con=mysql_connect("localhost","root"); mysql_select_db("cart0902",$con); $category=$_POST['category']; $sql="insert …

Member Avatar for kitschkath
0
253
Member Avatar for plmexico79

im trying to understand to create a form that process in php but shows the erros in ajax. heres a sample of something i want [Click Here](http://php4every1.com/demos/ajaxSubmit/), i already understand some jquery but not everything , like when i create a form in html do i had to create a …

Member Avatar for pritaeas
0
346
Member Avatar for anevins

Hello, I can't use CURL, $ch = curl_init(); I get the error > Fatal error: Call to undefined function curl_init() I've used `phpinfo()` and found the php.ini directory, > Loaded Configuration File D:\wamp\bin\apache\apache2.2.22\bin\php.ini I've then edited the php.ini file from that directory and removed the semi-colon in-front of extension=php_curl.dll Restarted …

Member Avatar for anevins
0
9K
Member Avatar for dancks

I'm a noob, I know very little about php. Anyway, my page won't load at all, browser says its redirecting in a way that is not loading. As the title suggests I think the issue is with one of the php files I include with require_once(). Let me just show …

Member Avatar for dancks
0
299
Member Avatar for raj-uk

Hi Friends <script type="text/javascript"> $(window).ready(function(){ $("#calendar").smoothPhpCalendar({minimumDate : new Date('01-12-2016')}); }); </script> can can i set min and max on this calander. please advise

Member Avatar for diafol
0
174
Member Avatar for sanjeewa.abeywardana

What is the best and fun way to learn Web Service that can apply to real production environment? Any web site or sample projects are always welcome. I would always like to learn quick too so any videos are also welcome

Member Avatar for pritaeas
0
218
Member Avatar for cokerz_written

I have 3 file : 1. index.php 2. form.php 3. validasi form i have a problem if I include file form.php into index.php, why if I included form.php into index.php all field that I fill is inserted to database, but why only field picture is not inserted to database. but …

Member Avatar for cokerz_written
0
134
Member Avatar for momonq1990

Hello to all! please help me to my project. how to make a auto reply using php code and what exactly i need to do? i have simple php code and i think the code is working but theres no receive mail.. auto reply is not working. pls help :(

Member Avatar for momonq1990
0
618
Member Avatar for mart4494

Hi everyone. I've been using dbmasters formm@iler.php for the past couple of years without any problems. No great credit on my part as I'm a complete dummo when it comes to PHP. In this case the script just worked out of the box so to speak. Recently a number of …

Member Avatar for Bachu
0
141
Member Avatar for Riu 2009

Hi everyone iam doing my final year project and i want to allow my instructor module to upload video lectures, audio lectures and presentation slides as well as images and text file in the courses and for lowering the load i want to upload these via youtube, flickr, vimeo, slideshre …

Member Avatar for pritaeas
0
105
Member Avatar for waseem.usman.92

i want a design and develop a web page which will show the current time on the basis of the request. eg if the request of the page is come from dubai then the server automaticaly finds the current time of dubai and writes that time on the page. similarly …

Member Avatar for diafol
0
248
Member Avatar for mart4494

Hi All - am using dbmasters formm@ailer for some time - no problems until recently. We require the engine size to be completed in cc. This has not been a problem until recently when we are often receiving a 'X' in the field. I'm stuck with Javascript. PHP extract as …

Member Avatar for pritaeas
0
134
Member Avatar for HelloJarvis

Hi guys, I'm working on a little script that generates all combinations of a given input string. My problem is, it's generating the combinations perfectly fine (I checked with an echo), but not inserting them in to an array. Here is my code: function check($width, $position, $base_string, $charSet) { $combinations …

Member Avatar for Bachu
0
166
Member Avatar for jeconje

Can anyone help me on how to store checkbox values in my database? I have a site which is a student registration form and I need to store his/her interest/s in my database. Interest/s are my checkboxes which contains sports, music, entertainment and adventure. Please help me! Thanks!

Member Avatar for jeconje
0
254
Member Avatar for johndohmen1963

How can i str_replace / with _ the folowing is not working $gemeente = str_replace ("/", "_", $gemeent); Thanks in advice John

Member Avatar for johndohmen1963
0
103
Member Avatar for kings

[CODE]<html> <head> <SCRIPT LANGUAGE="JAVASCRIPT" TYPE="TEXT/JAVASCRIPT"> <!-- function login(t) { var t = '<?php echo $id; ?>'; alert(t); } --> </SCRIPT> </head> <body> <?php $id=$_GET['id']; print "<input type='button' name='button' value='button' onClick='login('$id')'>"; ?> </body> </html> [/CODE] i want to alert the variable using onclick function.

Member Avatar for vkey
0
1K

The End.