39,320 Topics
| |
So lets say i have this url: $url = $_POST['site']; I would like to remove the [url]http://,[/url] the www. and the last "/". The trick is that the $url can be witten like this: $url = 'http://site.com/' like this: $url = 'www.site.com/' or even like this: $url = 'site.com/'. And … | |
Hey, I have been trying to devise a way to insert a formatted PHP date() variable ($expires) into a publicly available javascript countdown clock. Obviously, this is made difficult because PHP is server-side and Javascript is client-side. This first piece of code is me adding a number of days to … | |
How to show in user login page that user is already loged in?? | |
how to send session variable from one domain to another domain plz help | |
Hi Everyone... I am trying to do some Object calls within a PHP script which is INLINE within HTML. However the "->" PHP syntax is effectively closing the <?php start tag. How do I escape this syntax within the PHP to ensure the browser doesn't perceive it as a tag … | |
I have tried to wrap my head around regex and have failed pretty miserably. Here is my problem. how would you do the following with regular expressions in php. replace [CODE]<use xlink:href='#gpPt4' transform='translate([B][U]261.7,184.3[/U][/B]) scale([B][U]4.50[/U][/B])'/>[/CODE] with [CODE]<use xlink:href='#gpPt4' transform='translate([B][U]261.7,184.3[/U][/B]) scale([B][U]4.50[/U][/B])' onclick="alert('a variable name from php')"/>[/CODE] where the bolded/underlined sections (only used … | |
Ok the problem I am having is difficult to explain. I'm working on a project for work and I am allowing people to upload a variable number of tables (up to 5 maybe 10 later). Then I am taking the uploaded tables and normalizing them (I'm fairly sure all the … | |
Hey this is a code to print the times table of a particular number entered by a user, The thing is I want to validate the form so that it checks to see if what is entered is numeric, and ranges from 1 to 12 if not I want it … | |
hi Does anyone here know how to make a table with html and make it so that people can sort the diferent colums of info, in php and SQL | |
Hey everyone, I just started learning PHP a few weeks ago and I have a question about classes. In Python you can import classes from other documents so that you can use them in your new document without having to write the class again in the new document. How is … | |
hi i'm pulling multiple rows of data from my database to display in a csv document but every row it displays is the same as the first row. appreciate the help. [CODE] <?php session_start(); include 'include.php'; connect_db(); $filename = date("Ymd")."_summary.csv"; header("Content-type: application/csv"); header("Content-Disposition: attachment; filename=$filename"); $date = date("Y/m/d"); $sql = … | |
Hi , I have a doubt in Mysql.I want to compare two tables and bring the unmatched records from both the tables. Thank You, Prem | |
Hi, im working on a project that involves sending and receiving SMS. im using MySql for the database, Ozeki server for the phone. iv bin able to test incoming mesages n it works fine but i need a script for sending back ACK texts automatically upon receiving incoming messages. sm1 … | |
Some of the fields in a form are desired but not required. As a result of these fields being left alone, PHP will return errors similar to: "Notice: Undefined index: manager in C:\wamp\www\form.php on line 12". My current question is how do you tell PHP to disregard a field if … | |
Hello to everyone.Sorry if the question has been already made, but is like i need to waste 1 day to find what i'm lookin for so if someone could tell me please how to pass data from ajax to a php page in resonable way(meaning that i don't need to … | |
hi all, i am having a doubt. i am having a login page in which we should give username and password. so here is my question when we give wrong password a popup wil cum that 'invalid password' and that username and password fields are getting empty. i should get … | |
I have been programming in PHP with globals enabled since around 2005. I have started to develop on a more professional scale now, and with security at stake, I need to make the change. Trouble is, I haven't been able to find a tutorial that answers my questions regarding globals … | |
Hi Daniweb Team, I am MCA graduate 2010 passed out and i have done my final year project in PHP platform.I had a confusion in starting a carrier in Php or Java.I have known both the languages .My country is India. I do no what much of scope is available … | |
hello, i am doing email concept. in this user can set the automatic email option i mean when user registered there account then he was set receive emails at this time on this day... how to set this...any suggestions plz... | |
Hi All, On a registration form im pulling a list of countries from mysql. When i select, say england, i want to populate the provinces of england select option. Im using a standard loop to do this. What i dont want to do is force the user to click a … | |
hi, I had a project page where we can see projectname and allocate memory text boxes. so my query is that wen we enter a project name and if already a project exists with the same name then i should get a popup. i mean it should not allow duplicate … | |
hi all, i am having a projects page, in which we can create a project by giving projectname and allocate some memory(we had restriction on memory i;e 60MB). so i had created a project and allocated some memory of 65MB. so now i wil get a popup as "insufficient memory" … | |
Hi, I am developing a website for a club and I am trying to get the next games to show up. I am trying to get some info out of one database and then use that info as a key for the next query, then display all the results that … | |
Does anybody know how to upload pictures to a flickr group from their site. I am trying to use phpFlickr to do this. But just was wondering if anyone had any alternatives or has done this before. | |
Ok, I am totally stuck. I've spent hours on this today, and I can't figure out what is going on. This is my .htaccess file: [CODE] RewriteEngine On RewriteRule ^articles/([0-9]+)/([a-zA-Z0-9\-]+)$ /article.php?id=$1 [L] RewriteRule ^articles/([0-9]+)/([0-9]+)/([a-zA-Z0-9\-]+)$ /article.php?id=$1&page=$2 [L] RewriteRule ^topics/([0-9]+)/([a-zA-Z0-9\-]+)$ /topic.php?id=$1 [L] RewriteRule ^topics/(.+)$ /sub-topic.php?topic=$1 [L] RewriteRule ^authors/([0-9]+)/([a-zA-Z0-9\-]+)$ /author.php?id=$1 [L] RewriteRule ^preview/([0-9]+)/([a-zA-Z0-9\-]+)$ … | |
hi all, I have installed wordpress in English language. But in my language there not any available languages in wordpress official site My language is [B]Azeri[/B] [COLOR="Red"]Azerbaijan[/COLOR] country which wordpress files must i make changes thanks beforehands | |
Hi Everybody, I want to add Google Language Tool in my PHP Script. Is anyone having any idea on this. Please can anybody give me some solution on this... Regards, Ravi | |
ok i am currently having a problem with my shopping basket. it works fine when you go to a product and select to add it to the basket, it shows on there and you can go back to shop by clicking on the products link and add as many items … | |
Hello friends, Am having a membership website and i need some help. How do i code any login required (member's) page to automatically (log out) request relogin after 5 minutes of idleness of the page? and how do i redirect the member back to page where he was loged out … | |
im trying to set up a calendar using the code from the following site, however i have only got up to the code displayed below, which the site says it should show a calendar however im getting this error. I do however want to set up the whole calendar to … |
The End.