39,323 Topics

Member Avatar for
Member Avatar for meganmink

Hello guys, i'm having an issue with updating the record in my database. everything seems to work well except that whenever i try updating the record via the mysql update procedure, it just returns with no errors and the record is not update. i tried echo'ing the $result to see …

Member Avatar for LethargicCoder
0
140
Member Avatar for kingben

Hi. Please refer the code. I am having trouble in the 3 times nested loop (at the end) [code="php"] <?php error_reporting(E_ALL); ini_set('display_errors', true); ini_set('html_errors', true); function remove_blank_spaces($strWhite) { trim($strWhite); $string = ""; for($i=0; $i<strlen($strWhite); $i++) { if($strWhite[$i]!=" ") { $string .= $strWhite[$i]; } } return $string; } function get_all_substrings($input, $delim='') …

Member Avatar for kingben
0
238
Member Avatar for Forged

Hey Guys, I configured PHP myself, included all of the libraries I needed... but then realized I forgot the freetype library. So I went back to my php-5.3.2 directory and ran[CODE] ./configure '--with-free-type=/usr/local/lib'[/CODE] PHP did the configure fine, no errors. But when I run make: [CODE]collect2: ld returned 1 exit …

0
60
Member Avatar for seularts

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 …

Member Avatar for seularts
0
289
Member Avatar for nonshatter

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 …

Member Avatar for BeachyUK
0
234
Member Avatar for sas4u
Member Avatar for rafik.mulla

how to send session variable from one domain to another domain plz help

Member Avatar for BeachyUK
-4
71
Member Avatar for moobaa

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 …

Member Avatar for moobaa
0
94
Member Avatar for j_p36

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 …

Member Avatar for j_p36
0
151
Member Avatar for j_p36

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 …

Member Avatar for j_p36
0
99
Member Avatar for KBL

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 …

Member Avatar for colweb
0
109
Member Avatar for elamigosam

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

Member Avatar for leela83
1
246
Member Avatar for A_Dubbs

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 …

Member Avatar for LethargicCoder
0
66
Member Avatar for danielagaba

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

Member Avatar for colweb
0
74
Member Avatar for prem2

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

Member Avatar for limodetroit
0
99
Member Avatar for chris evans

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 …

0
50
Member Avatar for egoche

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 …

Member Avatar for egoche
0
2K
Member Avatar for xirian

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 …

Member Avatar for xirian
0
104
Member Avatar for niths

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 …

Member Avatar for pclfw
0
63
Member Avatar for venet

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 …

Member Avatar for venet
0
110
Member Avatar for prem2

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 …

Member Avatar for rajarajan2017
0
63
Member Avatar for muralibobby2015

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

Member Avatar for urtrivedi
0
98
Member Avatar for whiteyoh

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 …

Member Avatar for whiteyoh
0
81
Member Avatar for niths

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 …

Member Avatar for rajarajan2017
0
64
Member Avatar for niths

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

Member Avatar for niths
0
97
Member Avatar for QWaz

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 …

Member Avatar for rajarajan2017
0
79
Member Avatar for alexgv14

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.

0
93
Member Avatar for tustind

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\-]+)$ …

Member Avatar for tustind
0
138
Member Avatar for azegurb

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

Member Avatar for diafol
0
128
Member Avatar for ravi0703

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

Member Avatar for almostbob
0
162

The End.