39,320 Topics
| |
I understand that when casting a string to a float, php will evaluate from left to right and stop at the first invalid character. So for example, the string "1-23" will cast to a 1. I need to evaluate the entire string though, so that the string "1-23" would not … | |
I have the following code for a contact us page. It isn't working. It is suppose to come up with a page after you hit send. It does not do that. It is also suppose to send, but it isn't appearing to do that either. Any thoughts? <?php /* Template … | |
hope everyone is fine there, i just wanted to ask that i want to display the image im storing in the database using php.. but i dont know how to display it, would i be able to retrieve it simply by echoing?? im not getting how would the whole process … | |
Hi! Im making a database class in PHP. And i thought i might post it here, and ask for your opinions and how i can do this better? :) <?php class Database { var $db_host = 'localhost'; // Server var $db_user = 'root'; // Username var $db_pass = ''; // … | |
So i want to show all the files from a certain folder all in one collumn(i think i am going to use table for this) and in the second collumn i want a square, and if you click on it to put the marked thing over. Or i need to … | |
I have wordpress installed. http://www.mindbunker.com I have no plug ins installed and dont know what to do. I have tried Godaddy, tried wordpress support. basically you guys are my last resort! It appears at the top of the page and I dont know how to get rid of it, its … | |
I want to add multiple record by using single php form. Same like as we insert Multiple records in phpmyadmin, when we insert click on insert tab it will show 2 or more than 2 section of entering data with single save button. How can we do this with single … | |
I'm working on a website: http://tinyurl.com/9sdq3eo (I've used tinyurl as I don't want you to think I'm promoting, the website isn't even finished yet. Free2Read.co.uk for those not wanting to view on tinyurl Anyway I'm trying to learn OOP with PHP before I delve into frameworks but I'm having excruciating … | |
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 … | |
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] => … | |
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 … | |
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 | |
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 … | |
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 | |
My file function doesnt seem to want to open my file in a folder. $lines = file('/download/test.xls'); | |
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 … | |
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 … | |
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 … | |
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']; … | |
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 … | |
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 … | |
Hello sir i want to develop a menu which is completely mysql(database) dependent, I need quick reply,,, please. | |
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 … | |
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! | |
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. | |
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 … |
The End.