39,320 Topics

Member Avatar for
Member Avatar for prajwalk73

<?php /********************************************************************************* * Filename: index.php * * PHP 4.0 + MySQL + AJAX *********************************************************************************/ //------------------------------- // index CustomIncludes begin include ("./common.php"); include ("./Header.php"); include ("./Footer.php"); // index CustomIncludes end //------------------------------- session_start(); //=============================== // Save Page and File Name available into variables //------------------------------- $sFileName = "index.php"; //=============================== //=============================== // index PageSecurity …

Member Avatar for prajwalk73
0
225
Member Avatar for daniel36

Can i restrict a file to direct download.suppose in my domain i am having a upload folder in which i am having a exam.pdf file then it should not be downloaded by accessing url http://www.mydomain.com/upload/exam.pdf . If it is possible then please tell me the way.

Member Avatar for sDJh
1
105
Member Avatar for ssfox

Hello everyone, Im new in web development, Im using localhost (XAMMP),I'm trying to make my website which basically allows users to compile and run their submitted java program on my server(my web page).Essentially, I want when the users click a button(upload) they upload file from file source(e.g desktop or anywhere …

Member Avatar for ssfox
0
147
Member Avatar for eburlea

Hello, Is it possible to use a PHP code to create a drop-down list that automatically inserts a word from MySQL table after writing a character? For example when I type "a", all the entries beginning with "a" show in order, then I type "n", then all entries begins with …

Member Avatar for eburlea
0
585
Member Avatar for HasNor

Dear experties, I have a problem to insert checkbox value which is checked by user into multiple database..when I run this code, only one row inserted into database, but I had checked more than 3 checkbox.. Here is my code, please help me.. form.php <form id="form" name="form" method="post" action="dbase.php?id=<?php echo …

Member Avatar for harshita317
0
156
Member Avatar for Venom Rush

I'm trying to create an xml document without converting html entities but when I create and save the file with DOMDocument the < and > characters are converted to &lt; and &gt; so trying to wrap copy within <![CDATA[]]> is proving problematic. Example of my code below: // Initiate the …

Member Avatar for Venom Rush
0
972
Member Avatar for rotten69

Hey everyone, I was doing a search on good tutorials on how to use the mail function. I thought it would be as easy as what PHP api tells me how to use it. I stored the value of mail() in a variable if the variable is true then I …

Member Avatar for rotten69
0
241
Member Avatar for rotten69

Hi everybody, I'm wondering where I went wrong. The idea is I'm trying to get data from the database and display in this format Question 1: Answer: Answer: Answer: Answer: Question 2: Answer: Question 3: No answers etc.. foreach($posts as $post){ $id = (int)$post['id']; $comments = get_comments($id); //getting the answers …

Member Avatar for rotten69
0
349
Member Avatar for gilgil2

Hi I want users to be able to upload new images that overwrite old images but I am struggling. The original upload and naming works fine but I want any new images to have the same name, so I unlink the original before uploading the new image, is this the …

Member Avatar for gilgil2
0
178
Member Avatar for pattmorter

What's up everyone. A few months ago I followed a website tutorial on how to make a custom CMS and it worked for me on my web server. Well I just recently installed MySQL + phpMyAdmin on my laptop under the localhost of my machine (i have a mac if …

Member Avatar for jkon
0
205
Member Avatar for rajilakshmi

Hi, I am creating an application using php. I want to send a mail from my application with attachments. I get the from-address and to-address from the user at run time. Then, how i set the SMPT, port number and other details of the from-address in phpmailer class or smtp …

Member Avatar for pritaeas
0
150
Member Avatar for kny_jay88

# Hello,# ##I'm new at this forum.The problem is that my footer is gone when i click the submit botton because of the die function in my php script. I want it to prompt for empty fields and if not empty, it will insert values into my database. I found …

Member Avatar for kny_jay88
0
353
Member Avatar for dre31ex

hey guys i am trying to send email using php mailer but the problem i think i have is the smtp whenever i changed in php.ini is not updated in the phpinfo (it still shows localhost) so i assume that i would have a problem connecting to a host and …

Member Avatar for dre31ex
0
110
Member Avatar for vijayram

Hi everybody, I have a container (DIV) which would be resized using the correct aspect ratio. favorite Now I would like to dynamically resize all the elements inside that container using jQuery, anybody plz help me. $('.movable') .draggable() .resizable(); $('.moveable') .resizable({ start: function(e, ui) { alert('resizing start') }, resize: function(e, …

Member Avatar for LastMitch
0
514
Member Avatar for .kaine

I'm Running xampp on windows 7 64 bit Proffessionial, I've searched google and everywhere, I just keep finding wanna be form builders that are super lame... I'm trying to host this form for our intranet, ( internal network ). My question is what do I need to replace in here …

Member Avatar for jacob.lemelincarrier
0
217
Member Avatar for erikadiaz000

I am using this code and when i try to insert the a value in the 4th field after tdno, it doesn't insert all the values in the database. please help! <?php error_reporting (E_ALL ^ E_NOTICE); //connect to the database $connect = mysql_connect("localhost","root","root"); mysql_select_db("rizal",$connect); //select the table // if ($_FILES[csv][size] …

Member Avatar for LastMitch
0
159
Member Avatar for tapuwa2002

Am trying to get my script to read in a directory and search for a a file, if the file doesnt exist it should print"that it doesn't exist" then add Notinfolder in an array. Please assist <?php $connection = ftp_connect($server); $login = ftp_login($connection, $ftp_user_name, $ftp_user_pass); if (!$connection || !$login) { …

Member Avatar for tapuwa2002
0
1K
Member Avatar for scales

i added this code to my index.php (joomla ja-purity file 1.5) <?php if($this->countModules('user6')) : ?> <table class="nopad user6user7"> <tr valign="top"> <?php if($this->countModules('user6')) : ?> <td> <jdoc:include type="modules" name="user6" style="xhtml" /> </td> <?php endif; ?> <?php if ($this->countModules('user6') and $this->countModules('user7')) : ?> <td class="greyline">&#160;</td> <?php endif; ?> <?php if ($this->countModules('user7')) : …

Member Avatar for scales
0
464
Member Avatar for bettybarnes

I'm brand new to php with ldap. I have this problem weeks ago. The company I'm working in assigned me to test their resource management system, they want me to use the dummy users on the database, but whenever I try to use them, I can't access the system, but …

Member Avatar for jstfsklh211
0
116
Member Avatar for gilgil2

Hi, I am uploading images to a server to be used as profile pics similar size to those on facebook, however I don't know much about images etc. so could someone suggest the maximum size I allow people to upload? I want the pictures to be high quality but not …

Member Avatar for cereal
0
98
Member Avatar for kny_jay88
Member Avatar for kny_jay88
0
225
Member Avatar for kishoresai438

Hi Team, This is my first thread from Daniweb.. I observed Daniweb is great support for PHP Developers... I am planning to integrate this Tiny Editor in my website for mathematical calculations. As per my observation Our math expression images saved in Codecogs server. In future is there any trail …

Member Avatar for pritaeas
0
162
Member Avatar for oded.taizi

hello, i have this code $divToSubjectShow = "<div id='subjC".$subId."'><div class='boxC'>".$subName."<span onclick='delTempSubject(subjC".$subId.")'>X</span></div></div>"; to store in div innerHTML with js and i get this error > missing ) after argument list any idea?

Member Avatar for pritaeas
0
29
Member Avatar for mmcdonald

Sorry people but I'm really struggling with this and I don't know why... but still. I have a stored unix timestamp. [a] I have the current timestamp not in unix format (YYYY-MM-DD HH:MM:SS) [b] I need to: 1) convert the current timestamp [b] into a unix timestamp 2) I need …

Member Avatar for leviathan185
0
271
Member Avatar for raj-uk

Hi All, we need PHP season date calender, which mean if we enter like 25-DEC-12-25-APR-13 the calender only alow user to pick date from the season date only. please give example link, or full code, thanks

Member Avatar for diafol
-2
352
Member Avatar for LastMitch

Hi I'm trying to learn how to create a random page using `rand() function` but also using the `$num` to `switch` each page. Is there a way to click a button? I only used the `Refresh Button` on Firefox. Plus it's not really display the data but only page name …

Member Avatar for LastMitch
3
113
Member Avatar for mmcdonald

Hi all, I have two dates: 1 = $last_check = YYYY-MM-DD HH:MM:SS (A SQL value) 2 = $datetime = YYYY-MM-DD HH:MM:SS (Called using PHP) How can I take away 1 from 2 and convert the minutes and seconds left over into seconds? Basically I'm running an uptime counter script that …

Member Avatar for diafol
0
267
Member Avatar for johnef_sh

Hey, I'm running a mysqli query, and would like to run a script if the query returns no results. this is my code <?php $SM_pro_info="SELECT * FROM special_marketing_ads ORDER BY id desc LIMIT 4"; $QSM_pro_info = $db->query($SM_pro_info)or die($db->error); $SM_pro=mysqli_fetch_array($QSM_pro_info); if($SM_pro){ while($SM_pro=$QSM_pro_info->fetch_object()){ ?> <table width="208" border="0"> <tr> <td width="129" height="35" align="right"><span …

Member Avatar for phorce
0
574
Member Avatar for Synestic

Hi What would be the best practice to format my text in MySQL without messing around in php? For example, I have a description: TECHNICAL FEATURES: Anti static, dust repellent,... COLOURS AVAILABLE: - WHITE - BLACK I'm copying everything from my old website (html-only) into my database, and this is …

Member Avatar for blocblue
0
94
Member Avatar for JayJ

Hi, I'm using InvisionPB to construct a query and basically generate a custom table. The following is what I have. I can get the query to echo prior to the switch/case but can't get it to display within the case itself. Any ideas? $this->DB->build( array( 'select' => "m.name", 'from' => …

Member Avatar for JayJ
0
151

The End.