39,320 Topics
| |
<?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 … | |
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. | |
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 … | |
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 … | |
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 … | |
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 < and > so trying to wrap copy within <![CDATA[]]> is proving problematic. Example of my code below: // Initiate the … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
# 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 … | |
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 … | |
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, … | |
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 … | |
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] … | |
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) { … | |
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"> </td> <?php endif; ?> <?php if ($this->countModules('user7')) : … | |
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 … | |
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 … | |
#Code for INSERT INTO into database and if fields are null, it will prompt for null fields.# | |
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 … | |
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? | |
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 … | |
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 | |
| 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 … |
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 … | |
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 … | |
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 … | |
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' => … |
The End.