39,402 Topics

Member Avatar for
Member Avatar for chandru7
Member Avatar for tiggsy
0
108
Member Avatar for uselessninja

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 …

Member Avatar for calebcook
0
342
Member Avatar for rakwel10

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 …

Member Avatar for rakwel10
0
142
Member Avatar for rakwel10

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?

Member Avatar for cereal
0
302
Member Avatar for tapuwa2002

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

Member Avatar for diafol
0
132
Member Avatar for ashneet

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.

Member Avatar for Balajipala
0
410
Member Avatar for EW12
Member Avatar for EW12
0
248
Member Avatar for alimziyan

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 . " …

Member Avatar for alimziyan
0
170
Member Avatar for karthik_ppts

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?

Member Avatar for karthik_ppts
0
7K
Member Avatar for 54uydf

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 …

Member Avatar for 54uydf
0
965
Member Avatar for agr8lemon

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); …

Member Avatar for agr8lemon
0
154
Member Avatar for rakwel10

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?

Member Avatar for diafol
0
126
Member Avatar for Chub97

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 …

Member Avatar for sv3tli0
0
372
Member Avatar for Chub97

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 …

Member Avatar for Chub97
0
179
Member Avatar for shella

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 …

Member Avatar for eXpertPHP
0
134
Member Avatar for extemer

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 …

Member Avatar for sv3tli0
0
152
Member Avatar for stevenbaron1

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. …

Member Avatar for stevenbaron1
0
168
Member Avatar for rayden150

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, …

Member Avatar for sv3tli0
0
116
Member Avatar for mrhankey

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 …

Member Avatar for mrhankey
0
117
Member Avatar for ashking

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)) { …

Member Avatar for pritaeas
0
132
Member Avatar for phaedrusGhost

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 …

Member Avatar for phaedrusGhost
0
127
Member Avatar for pat123

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

Member Avatar for diafol
0
90
Member Avatar for vizz

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?

Member Avatar for vizz
0
597
Member Avatar for manchurianCEO

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 …

Member Avatar for manchurianCEO
0
153
Member Avatar for ptemedia

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 …

Member Avatar for ptemedia
0
277
Member Avatar for whiteyoh

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

Member Avatar for eXpertPHP
0
71
Member Avatar for Nahiyan

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 …

Member Avatar for eXpertPHP
0
130
Member Avatar for rom.

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 …

Member Avatar for rom.
0
340
Member Avatar for supersuru

hey can any one please help me by showing me how to buy and sell a product online using php

Member Avatar for supersuru
0
61
Member Avatar for binu_ds

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.

Member Avatar for binu_ds
0
166
Member Avatar for mert2015

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 …

0
63
Member Avatar for nikita.chandra
Member Avatar for KSS
0
106
Member Avatar for Hani1991

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.

Member Avatar for Hani1991
0
100
Member Avatar for uselessninja

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 ...

Member Avatar for cereal
0
110
Member Avatar for matleeds

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 …

Member Avatar for matleeds
0
248
Member Avatar for mwenyenia07

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--

Member Avatar for Wraithmanilian
0
89
Member Avatar for basketmen

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 …

Member Avatar for diafol
0
93
Member Avatar for -==Zero==-

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 …

Member Avatar for -==Zero==-
0
113
Member Avatar for gatomsgirl

[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 …

Member Avatar for almostbob
-1
297
Member Avatar for cali_dotcom

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, …

Member Avatar for cali_dotcom
0
121
Member Avatar for gilgil2

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 …

Member Avatar for HITMANOF44th
0
114
Member Avatar for fantasma

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 …

Member Avatar for fantasma
0
259
Member Avatar for Sparhauoc

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 …

Member Avatar for broj1
0
122
Member Avatar for dahi_man

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. …

Member Avatar for dahi_man
0
785
Member Avatar for eusaf

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 …

0
115
Member Avatar for 54uydf

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 …

Member Avatar for cereal
0
80
Member Avatar for binu_ds

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.

Member Avatar for cereal
0
50
Member Avatar for jorjah

hi , i just want to know if there are codes that will add image into php css?

Member Avatar for cereal
0
48
Member Avatar for n.e.priya

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

Member Avatar for 54uydf
0
110
Member Avatar for Nahiyan

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 …

Member Avatar for cereal
0
145

The End.