39,393 Topics

Member Avatar for
Member Avatar for collizz

Hi I have a basic PHP contact form using JS validation for empty fields, format checks, etc, which all work fine. I now need to add a mail() using the user input. I've made a version work, using some basic validation in PHP and comment out the JS, but I …

Member Avatar for Monster Killer
0
658
Member Avatar for tania88

Hello all....i just wanna ask maybe a simple question.....here it is...i have develop one system..using php ,mysql...and have multiple user login to the system..and..what i want is, after the user log in, all the detail about the logged user would be retrieve in another page based on log in detail …

Member Avatar for tania88
0
97
Member Avatar for rahul8590

i have written a small code to store the checkbox values into the db. But its showing me a parse error . Unable to figure out what it could be . [CODE] <?php $dbc = mysqli_connect('localhost', 'root', '', 'test') or die('Error connecting to MySQL server.'); if(isset($_POST['language'])) { $language = $_POST['language']; …

Member Avatar for rahul8590
0
195
Member Avatar for bobgodwin

I need to get a file name from a jpg without the extension to use as id in a span tag. Here's the code I'm using: [CODE] <?php $result = mysql_query("SELECT * FROM $data_sales_earrings ORDER BY id ASC"); while($row = mysql_fetch_array($result)) echo " <span id=\"need file name from jpg front\"><img …

Member Avatar for bobgodwin
0
226
Member Avatar for tuukie

Want to make a pulldown for hours and I want it to be on the hour now (it is now 22:40 so the pulldown should be on 22). Here is the code: [CODE=php] <?php $hour_now= date(G); $minute_now=date(i); ?> <form action="index.php" method="post" id="schedule_form"> <p> <label>Hour</label> <select name="send_hour"> <?php for($i = 0; …

Member Avatar for tuukie
0
139
Member Avatar for gymangel812

I need to add a new sandwich name, description, origin, price and picture to a database. These are to be added to multiple tables. Ignore the drop down menu, it doesn't have anything to do with the query. The problem I'm having is getting the new product_id which is auto …

Member Avatar for LethargicCoder
0
233
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
146
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
242
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
61
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
314
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
237
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
72
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
95
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
155
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
101
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
111
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
250
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
67
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
76
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
100
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
51
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
105
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
64
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
112
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
66
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
100
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
83
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
66

The End.