39,402 Topics
![]() | |
Anyone please advise what is the best payment gateway for php website and how to integrate in php website. | |
hi everyone i have a search page that will search base one date... but if i search with only date (9/27/2011 ) it will only display the data from database that has the same date and time but not the whole data in that specific date: example: in my database … | |
I have a date picker that give me this result: e.g. 2011-29-08 When it is inserted in mysql, it outputs '0000-00000'. What can I do? I know "strftime("%Y-%m-%d %H:%M:%S", time());" But I have no timestamp to put as an argument. The only data I can use is the data that … | |
Im creating a time-base site wherein the timestamp should rely on the global time and not to my PC's time (because it can be out-dated somethimes). How can I do that? | |
Hey Am new to PHP need help, if I want to create a list, and only want to add an item one below the other what would be the best method in using Sessions. If there any examples that would really help. Thanks ![]() | |
I am new with session. What i am trying to do is that if someone doesn't visit my site for lets say 5 day i want the session to expire. is there a way to do this as i am not aware of it. | |
Which one should I install on my desktop? EasyPHP or AMPPS? | |
Hi I am using a php script for converting avi,mpeg files to flv with ffmpeg.my code is [CODE]$srcFile = "uploads/flame.avi"; $destFile = "uploads/flame.flv"; $ffmpegPath = "/usr/bin/ffmpeg"; $flvtool2Path = "/usr/bin/flvtool2"; $ffmpegObj = new ffmpeg_movie($srcFile); $srcWidth = 320; $srcHeight = 240; $command = $ffmpegPath . " -i " . $srcFile . " … | |
Hi frendz, Can we set a value for a session variable through javascript onclick event? (or) How can we set a global variable for the whole website using javascript? | |
HELP! I lost count of how many editors I tried! I don't understand why non of them work. I'm trying this editor [url]http://nicedit.com/index.php[/url] very simple. but when I type words in the textarea and click submit nothing is saved in the DB..empty that's what I get. all I want is … | |
Hello, I'm trying to do a very basic page that allows me to edit a single column in a MSSQL database. For whatever reason I can't figure it out and am hoping that you can help. Here is my front page (sorry about the silly names) [CODE]$ninja_conn = odbc_connect('XXXXX','XXXX','XXXX', SQL_CUR_USE_ODBC); … | |
I want to get the [B]file extension only[/B] of a file. e.g. "myfile.jpg", I want to put in a variable the string ".jpg". How? ![]() | |
I have seen on many sites using PHP some sort of id system where they can have a main page and then have different ids that will display completely different content. I am just wondering how you do this as I am in the process of making a screenshots gallery … | |
I am having a bit of trouble with general PHP video uploads and then converting them into a FLV flash file for playback. I have heard something about installing something called FFMPEG but I cannot not find any tutorials any where for doing this. So basically what I am looking … | |
Hi guys! I'm working on a script to manage newsletter and I'm actually thinking how to manage eventually freat amount of mail deliveries when they are sent. What I mean if that i'm pretty sure that send something like thousands emails at once could be seen as spam from server … | |
hello guys i am stuck in a small but horrible problem.i am redirect page to itself using [ICODE]$_server[''PHH_SELF][/ICODE] method but the problem is that i apply the insert query at the top of my html page but it shows me that you are not connect to the DB. [CODE] <?php … | |
Hi Guys, I noticed that in some apps people tend to use the following method in classes without instantiating an instance or defining objects, but this works, could someone explain whether this is a correct way of doing it. (its for a simple data management and interface app) For eg. … | |
Im trying out php to help me on the logic side with my form but the php is just not working, The folder is on the desktop, its not in the XAMPP directory, I saved it as a php file, and still nothing the only thing I could think of, … | |
hi, i have asked something similar to this before. basically i have looked around and i can see that it seems it is possible to send email from a different email account using php. but what is the best way to stop the server being blacklisted? it want be used … | |
Hi I am quite new to php programming but I have started a new personal project which I need a bit of help/advice on it please. This piece of code randomly picks a line within the file: rand.php [CODE]<?php $filename = 'file.pwf'; $how_many_to_show = 1; if ($fileContents = file($filename)) { … | |
Hi all, For some reason I can't seem to wrap my mind around JOINING tables and getting the data I need from this. I have three tables I am trying to join. I need to count the number of blogs, comments and number of views for each user. I have … | |
i am try to do check boxes....i have 300++ of name list and all of them i want to put a check box...how can i store and retrieve the data in phpmyadmin? how can i store checked name back into the table in database? help me please ![]() | |
I have multilanguage emails(Hindi,chinese,japanese etc). I can not read that multilanguage emails using [COLOR="Red"]imap_fetchbody or imap_body or imap_bodystruct[/COLOR] can anyone help me to read emails? | |
Hello, I just revamped a website and rather experimented including absolutely all <head > contents within a single .php file, including google analytics. But I am a little confused now reading the analytics for my website and I wonder if google analytics, being fed to all the pages from a … | |
Hi, I have seen a lot of people have been having a similar problem to this, but I have not found a solution and so daniweb is the best place to go! Basically, whenever I use: [CODE]<?php include_once "Filename.php"; ?>[/CODE] which I often do for the header, navigation and footer … | |
Hi All, Can anybody shed any light on how to hide the servers email address when sending an email? It currently states: From [email]myserver@emailaddress.com[/email] on behalf of [email]myemail@address.com[/email] thanks | |
Hello, I am storing my mysql connection data and other sensitive information in a config file, however I detected an issue that anyone can access that file and view the contents of that file but I don't want to let anyone do that without appropriate permission. I can encode the … | |
Hi all. I'm trying to move someone else's app onto a different server (and debug it in the process). Among the onslaught of bugs to squash, theres one I just cant get my head around... I get a parse error on try-catch, and I have no idea why. I've isolated … | |
hey can any one please help me by showing me how to buy and sell a product online using php | |
I fetched some data(eg:name ,email,phone,mobile etc) from a website using simpleDOMhtml.I want to store it into the database.Which page will write the code and how will write?Please help me.Thanks in advance. | |
Hi coders, i am from germany,i have a problem with my php pagination. my problem is when i am searching something on my website pagination working without problem but when i am searching something on my website with türkisch or german things pagination or not working special charesters are not … | |
Hi all, Please let me know the open source editor for php. Thanks | |
Hello, I found this keyword written everywhere I read about classes, which is __construct. Is it a built-in method or keyword? What does it do? There's another one, which is __clone. What is it too? If they're not built-in, then why are they always preceded by 2 underscores? Thank you. | |
hi everyone i want to create a search page in PHP... where i can search data from database by a specific date by using odbc command (since i use to connect the DB by odbc) ...can some one help me ... | |
Hi, I'm using Windows Vista, I have Apache HTTP server 2.2 running and am using PHP 5.2.17. I’m having a problem remotely running a php script on the web server. I run this script locally below… [CODE] <?php $file = fopen ("http://localhost/Epointment/testphp.php", "r"); if (!$file) { echo "<p>Unable to open … | |
can somebody send me a code that can convert the date for the current day into year-month-day only. i don't want inclusion of hours/minutes/seconds stuffs. this will make it easy to tally with MYSQL's y-m-d format. am using codeIgniter 1.7.1 --sorry for my bad english---i speak afrikaan-- | |
Hi guys, below are custom code to replacing text into link, for example [B]Google[/B] text, will be like this [URL="http://www.google.com"][B]Google[/B][/URL] [B]Yahoo[/B] text, will be like this [URL="http://www.yahoo.com"][B]Yahoo[/B][/URL] the replacement mod below are working well until now now i just need a little fix again, to make it better again i … ![]() | |
Iam Coding A Small Portal And Need Help This Is My Code [CODE]echo "<div class='posterdecoration'><img src='$row[scr1]' width='640' alt='$row[name]' /></div>"; echo "<div class='posterdecoration'><img src='$row[scr2]' width='640' alt='$row[name]' /></div>"; [/CODE] When I Put Scr1 + Scr2 From Site Panel It Show On The Site I Need To Use <If Condition> On The Scr2 … | |
[B]I get this notice when trying to get onto a blog I worked on Parse error: syntax error, unexpected T_STRING in /hermes/bosweb/web237/b2378/ipg.twopackedbagscom/wp-content/plugins/facebook-like-box-widget/facebook-like-box-widget.php on line 91 It's a wordpress site through ipage. I customized the site but do not know much about coding at all. The facebook-like-box-widget is just a plugin … | |
Hi, i am using the youtube api on my site to subscribe users to my youtube channel. currently, they would have to clink on a link to get authenticated and grant access to our application. from our youtube channel, there is a link that take them back to our page, … | |
HI I have a list of around 3000 letter combinations and I would like to turn each one into a .php file, but every file will have exactly the same content at the beginning. Does anyone know of a way to do this that doesn't involve me individually naming each … | |
Greetings I've got this code that tries to update a sortable list (not really a list since I don't use ordered lists, but divs). The thing is, I tested in another area of my site and it's working fine. When moving forward to another list, it just doesn't seem to … | |
Greetings all, I am working on a website with data I only want logged in users to see. I currently have it where once they have logged in successfully, they can browse the website, and if they are not, they are directed to the login page. Sounds great. However, if … | |
Hi, for some weeks now, i have been trying to develop an [B]attendance system with php and mysql. [/B] I HAVE LOOKED EVERYWHERE!! what i have done is this: user select date (calendar). date is processed in php page. if attendance has not been filled,then new attendance sheet is provided. … | |
Ok so problem is that I'm using an XML generated intro for my website. My intro(index.html) is in the root directory with website home(index2.html). Issue is that I want the website to be loaded directly after intro in the same browser tab/window/page instead of a new one. Intro is using … | |
I'm saving queries in my DB as strings here's my code: [CODE] $SQLcode="SELECT * FROM ... WHERE field="blah blah" HAVING field2<$x"; $query = "INSERT INTO tblQ (qId, qName, description, SQLcode) VALUES (NULL, '$qName', '$description', '$SQLcode');"; [/CODE] the problem is inserting a string into the $SQLcode, if I do it this … | |
How will create multiple https in an array using PHP? eg: $html = file_get_html('http://google.com'); I want the same contents from this http and to store in database. Please help me.Thanks in advance. | |
hi , i just want to know if there are codes that will add image into php css? | |
hi frds if anyone knows how to import and export table details from db in the form of excel sheet please guide me.note it should cum as xls sheet | |
Hi, I have used this code to make a php file with php code in it: [CODE]<?php $fn = 'connect.inc.php'; $string = "<?php $mysql_host = 'localhost'; $mysql_user = 'root'; $mysql_password = ''; $mysql_database = 'main'; @mysql_connect($mysql_host, $mysql_user, $mysql_password) or die("There was an error connecting to the server"); @mysql_select_db($mysql_database) or die("There … |
The End.