52,566 Archived Topics
Remove Filter ![]() | |
Hello, I am trying CIUnit - PHP unit integration to codeigniter. But I am stuck - getting error that file is denied: E:\projektai\php projektai\htdocs\ci_unit\tests>phpunit PHPUnit 3.5.14 by Sebastian Bergmann. ....[CIUnit] PHP Error: Warning - include(E:\projektai\php projektai\htdocs\ci_u nit\application\config\testing\database.php): failed to open stream: Permission denied File Path: database/DB.php (line: 41) [CIUnit] PHP … Web Development file-stream file-system php php-codeigniter | |
n my sidebar every widget title is enclosed in <h2> tags. I use 4 widgets in my sidebar and I'd like to have the first 2 widget titles as <h2> and the other 2 as <h4>. I changed in my function.php as given below: 'before_title' => '<h4>', 'after_title' => '</h4>', … | |
Hi, I have an array like this: Array ( [23] => 0 [12] => Array ( [2] => Array ( [66] => 0 [67] => 0 [68] => Array ( [14] => 0 [15] => 0 ) ) [3] => 0 [4] => Array ( [56] => 0 [77] => … Web Development php | |
So I have a drop down list with various options, one being other. I want it so that if the user selects user the text box automatically appears. Ive placed the text box in a panel and set the visibility to false then added the following code : protected void … Web Development asp.net | |
Am running a script that checks every line in a foreach loop. I would like help in how to tackle this each execution needs to be written to a log file which will show how log it went to process the each line at a time and if there is … Web Development php | |
Hi guys, I have an ideea of doing 3 form validations from one file The content of the file is //detalii 1-categorie var categorie = new Validator("categorie"); categorie.addValidation("add_categorie","req","Va rugam sa va completati categoria"); //detalii 2-subcategorie var subcategorie = new Validator("subcategorie"); subcategorie.addValidation("add_subcategorie","req","Va rugam sa va completati subcategoria"); //detalii 3-continut var continut … Web Development javascript | |
I have String. Var Str = "INC300051546,INC300051553,INC300051561,INC300051579" I want to check there should not be seperator other than comma in the string. And Comma Seperated String should contain INC as 1st three character and after that 9 digits followed by comma. Is there any regular expression to validate the string. Web Development javascript | |
So i have to echo this onclick="dhtmlHistory.add('location1',{message: 'backbox'});countdown()" and if i echo " ...." the whole thing top it wont show because of the apostrophe Web Development php | |
Hi, I'd playing with JavaScipt nowadays. I'm trying to display the selected value in a dropdown list (those values are the array elements). Here is what I've tried so far: <html> <head> <script type="text/javascript"> window.onload = function() { var artists_arr = new Array(); artists_arr[0] = "The Beatles"; artists_arr[1] = "The … Web Development display javascript | |
well I've been searching for this from hours now, and also tried to look in this forum. or maybe I dont know what is it called. I'm searching for a script to display featured products on my website, in a sqaure box on right side. but it shouldn't be so … Web Development image javascript queue | |
Hello, I have created the login page and I have imported the excel sheet of 10000 email id’s with their password in mysql. I have created the Password by a script. So, I need to send the password to all users with welcome message and login link. So could you … Web Development php | |
hey guys.... anyone here know why my time here in localhost is different from the internet, let's say even though i already set my timezone to "America/New_York" the time is still different Web Development php | |
My file function doesnt seem to want to open my file in a folder. $lines = file('/download/test.xls'); Web Development file-system php | |
Hello Everyone..!! I am beginner at PHP. I would like to have solution for "\n" in textfile php. $file = "testFile.txt"; $fh = fopen($file, 'a+') or die("can't open file"); $firstname = $_POST["prenom"]; $lastname = $_POST["nom"]; $mood = $_POST["humeur"]; $datestring = date("d/m/y "); $timestring = date("H.i.s"); $data = "$firstname ; $lastname … Web Development php | |
hello, i am sofie. here is my code. <tr><td><label for="Cname"> No of Partipants:</label></td><td> <select style="width:160px;" id="text" name="participants" required="required" > <option id="" value="" name="">-Select participant-</option> <option id="1" value="0" name="" >1</option> <option id="" value="1" name="" >2</option> <option id="" value="2" name="">3</option> <option id="" value="3" name="">4</option> <option id="" value="4" name="">5</option> <option id="" value="6" name="">6</option> <option … Web Development javascript | |
Hi, I am trying to get a php variable into a header, I have managed it in another file but it not having it this time and I do not know why. Here is my php code [code=php] <?php header("Location: photo.php?albumid=".urlencode($albumid)); include_once 'title.php'; $result = mysql_query("SELECT id FROM user WHERE … ![]() | |
I've implemented this dialogue box that shows a preview of the site you're abuot to go to. All looks good until I add more links on the same page. I've tried to adjust my div from absolute to whatever and have also fiddled around with the top - left spacing … Web Development html-css javascript javascript-jquery | |
Hi again. This is the part of the code that doesn't work. $fileBaseName=basename($file,'.jpg'); echo("<img src='{$handle}/{$file}' alt=$fileBaseName />"); So what i want to do is at alt to show only the name without the.jpg and i dont know why if i have two or three words is stops at the first … Web Development php ![]() | |
hello how are yo guys i have this code for count visitors the question is how can i know number of visotors on the all pages on the website not on one main page or one page i have these table id ip date oops i am sorry <?php $ip_on=$_SERVER['REMOTE_ADDR']; … Web Development php | |
I was creating my admin panel (admin homepage) and then took out the following code: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>ZanimeCMS: Admin Center</title> <link rel="stylesheet" type="text/css" href="../css/home.css" /> <script type="text/javascript" src="../js/jquery-1.8.2.min.js"></script> </head> <body> <!--START Admin Wrapper--> <div id="adminwrapper"> <!--START … Web Development html-css javascript-jquery php | |
Hi peeps, quick question. I am debugging a script in IE (it's producing errors and I suspect it might be down to the selectors) and I was wondering if the below is correct. Guven the following html <div id="fruit_filter"> <h1>Compare the Toyota range</h1> <div class="filter_checkboxes"> <h2>fruit type</h2> <form id="first_filter"> <input … Web Development javascript javascript-jquery | |
hi there. I created HTML and PHP file to filter web form data based on multiple drop down filters. Here goes the form. when i run the form and PHP, i don't see any results in the browser. There is no error either. I am working on a example posted … Web Development php web-browser | |
Hello sir i want to develop a menu which is completely mysql(database) dependent, I need quick reply,,, please. Web Development php ![]() | |
I have a form, and I don't know why I can't receive a single email, I used to but now I can't... <!DOCTYPE HTML> <?php require_once('recaptchalib.php'); $privatekey = "MY-PRIVATE-KEY"; $resp = recaptcha_check_answer ($privatekey, $_SERVER["REMOTE_ADDR"], $_POST["recaptcha_challenge_field"], $_POST["recaptcha_response_field"]); ?> <?php $fn = $_POST['fn']; $name = $_POST['name']; $lastname = $_POST['lastname']; $email = $_POST['email']; … | |
Hello guys, I'm writing a code that will display another form when the submit button on the first form is clicked (isset). However on the second form, there is nothing happen after i clicked the second submit button **line 62**. The javascript alert seems to be not executed. Any idea … Web Development php | |
Hello there. I am kind of confused. In PHP I substract two unix timestamps from each other. The first: mktime(0, 0, 0, 10, 22, 2012) The second: mktime(24, 0, 0, 10, 28, 2012) For as far as I know the time difference between these two timestamps is exactly 7 days. … ![]() | |
Hallo! I would like to create a script to search a MySQL table (data). The table has two columns (ID & PRICE). Search must be done by ID and Price has to be displayed in the page, any ideas? Thanks in advance! PS: I've tried to modify [this script](http://www.phpjabbers.com/index.php?controller=FrontFrees&action=details&seo_url=mysql-table-search&page=4) but … | |
Hey all, I am currently using the following to echo the 1st Current_month: echo "1st '.date('F').'."; So that would say, for example, 1st October. What would I need to do to echo the next month? In this case 'November'? Thanks for any help! Web Development php | |
HI I have QB POS 8, which I want to connect to my PHP script running on my localhost. The PHP script generates sales receipt and that sales amount has to be updated to my QB POS to print sales report. Any help would be apreciated, thanks in advance. Web Development php | |
I have a script that uploads files to a folder and it works lovely when im testing on my XAMPP box, if someone else tries to upload it says Warning: copy(C:/xampp/htdocs/data/mottramg/AEGON.jpg): failed to open stream: No such file or directory in C:\xampp\htdocs\training\upload.php on line 27 Could not copy file. now … Web Development file-stream php | |
how to retain previous value of textbox and input new value in same textbox.please help me .i am tyring to make a calculator programm in php only withh all buttons etc . Web Development php | |
Hi, I have a stored procedure that will display an activity if the user enters the correct appref. This stored proceudre works fine on SQL management. However when i bind it to the gridview on my page it doesn't work on the internet, keep getting the error. Cannot open database … Web Development asp asp.net open-source sql | |
actually i want to compare pass1.value with pass2.value...dis is my code please check it.. <html> <head> <script type="text/javascrpit"> function myFunction() { alert " pass1.value"; var x=document.getElementById("pass1").value; var y=document.getElementById("pass2").value; if(x == y) { alert "password matches"; } else { alert "password dosn't matches"; } } </script> </head> <form name="mailform" method="POST" action="#"> … Web Development javascript | |
** Hello Guys, I want to write .htaccess file. But i have no idea how to write .htaccess. I want to make my site seo Friendly. this time my url looking like this type. Basic url : http://localhost/health when click on category link. It should looks like this format. http://localhost/health/category.php?cat_id=46 … Web Development seo | |
Hi, I want to use PHP to take one image, draw another on top of it and output it as a single image. So it might for instance be that the first image would be of a duck and the next image would be of an x, so the third … Web Development php | |
Currently I'm using netbeans 7.2 using glassfish server. I want to put two numbers using HTML+ Servelet. I'm just a beginner I have no idea. Would somebody help me? I also don't know why I got error: Incompatible types required int found string although I used parseInt to convert String … Web Development java-jsp java-netbeans | |
Please let me know the detailed procedure to install Apache, MySQL, PHP and PHPmyAdmin on my system which is windows 7. or post a link where the complete installation is given. I do not need to work on XAMPP or WAMP or such kind of other softwares. you can also … ![]() | |
i am retrieving textual data from database on my page , asp.net(c#), now i want to save in pdf format and want to store that pdf file on my server(localhost) so how ? | |
Hi, I am using below PHP script for insertion in mysql table from CSV file. Below code is working fine but i am trying to leave first row of CSV as it contains heading for data. need suggestions as it is reading from very first row. <?php //connect to the … | |
I'm getting this error message when I go to my login page: Warning: Cannot modify header information - headers already sent by (output started at /home/a4259hos/public_html/ebookadvisor/wp-config.php:40) in /home/a4259hos/public_html/ebookadvisor/wp-includes/pluggable.php on line 881 Can someone help me with this? ![]() | |
try { mysql_query("INSERT xyz"); mysql_query("INSERT xyz"); mysql_query("INSERT xyz"); commit() } catch (Exception $e) { rollback() } I would like so that if any of the queries within the try { } fails, to go to the exception and rollback the transaction, and commit otherwise. What kind of things will it … ![]() | |
Well, I have a code that just won't run. It says it has a syntax error, but I've been looking at this code for 20 minutes and haven't found any. Could you guys plese tell me if something is wrong? // $anio holds the name of my table. $query="INSERT INTO … Web Development php | |
I would like to find a method where i can find a character position in reverse.For example last "e" starting count in reverse. From example $string="Kelley"; $strposition=(strpos,'e'); it will give me position 1. Web Development php | |
I have a text file that i would like to display a part of so i use this code: <?php $page = file_get_contents('news.txt'); echo $page; ?> But in news.txt if i have this code `<?php echo"hello world!"; ?>` It will not display... when i look at the source code of … Web Development php | |
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 '' at line 1 Its valid sql I checked I just don't understand what would cause that error. I also tried different statements and … | |
Hi everyone, Here I have a php code, and i want to understand one part of it - like what is actually going on over there. (Based on Model View Controller(MVC) format) This is my 'model/category_db.php' - file It connects to the database and has some functions that have a … | |
Hi i have an htm created by ob_start--ob_clean (query from mysql) i can have more than 1 html each one for a user these htmls are converted to pdf using html2pdf and each file is called by the name of the cleint ex:if the user name is xxxx===>he will get … | |
find and delete specific line from text file ==== cart.txt (tab delimated) ---------------------- guiburi PID001 KARLSTAD Sofa 2348 2 4696 guiburi PID002 BESTA Cabinet 1656 32 52992 guiburi PID009 PAX Wordrobe 1794 2 3588 deleteitem.php ---- if(isset($_GET['pname'])) { $pname = trim($_GET['pname']); } Info -- pname is sent from a another … Web Development php | |
I have a csv file and I am not sure how to set dates on it... For example, if somebody submits a form and its information shows up in the csv but has a date that shows when it was submitted... Can someone help me with this? Web Development php ![]() | |
Who can help me with the following i have 5 or more rows in a table the last column is called rank one row is called points. I want automatic insert the rank like when a person has 123 points is rank 1 the second person with 120 point rank … Web Development php |
The End.