39,323 Topics

Member Avatar for
Member Avatar for drewpark88

I have a quick question. How do I get only the last 4 digits of the cc_number? Will the following work? Or should I try something different.. Oh and I am emailing to myself that's why it has $message. Here's the code I think will work: [CODE] $message .= "<td>{$_GET['cc_number'] …

Member Avatar for drewpark88
0
146
Member Avatar for aditi_19

Hi, My php code runs fine when i try to insert a description with plain text. But it does not insert if i type some special characters like testing's or "testing". How can i remove this problem? Thanks

Member Avatar for pritaeas
0
69
Member Avatar for whiteyoh

Hi All, The form below is set to pass data to paypal, however I cant seem to get it to work when using variables recieved from a $_POST. I get an error from paypal stating........ "The link you have used to enter the PayPal system contains an incorrectly formatted item …

Member Avatar for whiteyoh
0
95
Member Avatar for r0gp

Hi, I have the following: [CODE] $_host = $DHOY_CONFIG['db'][$connection_name]['host']; $_name = $DHOY_CONFIG['db'][$connection_name]['name']; $_port = $DHOY_CONFIG['db'][$connection_name]['port']; $_user = $DHOY_CONFIG['db'][$connection_name]['user']; $_pass = $DHOY_CONFIG['db'][$connection_name]['pass']; $dsn = "mysql://$_user:$_pass@$_host:$_port/$_name?new_link=true"; print "dsn is $dsn"; if ($dsn != 'mysql://:@:/?new_link=true') { $db_connection[$connection_name] = DB::connect($dsn); if (!DB::isError($db_connection[$connection_name])) { return $db_connection[$connection_name]; } else { trigger_error("General system error ID: 00002 - …

Member Avatar for r0gp
0
138
Member Avatar for drewpark88

Ok so here's what I'm trying to do: 1. You press submit on my php donation form page, and when you press submit it goes to a process.php but within the IF statement I have it to where it sends my client an HTML email. 2. What I want my …

Member Avatar for saiprem
0
161
Member Avatar for cane23

i m having some trouble trying to find the sum of an queried variable however this variable is inside a loop and it is not summing it is just returning the value at that instant in time this is the code below [CODE]@$code= $_POST['coursecode_1']; if( is_array($code)) { //$sum= array(); while …

Member Avatar for cane23
0
91
Member Avatar for xuexue

hi guys, just wanna ask, is it possible to have a function using tables in html wherein if a user selects a row, the program will get the value of the entire selected row? and this value will be passed to php without reloading the page itself..thanks thanks in advance,^_^

Member Avatar for saiprem
0
97
Member Avatar for mohane

Hi, i have query, i want to replace a string in text file. it should write correctly in specified line in the text file . whether it is possible. my doubt is if i delete the line in the text file. it remains blank. it should not occupy the other …

Member Avatar for mohane
0
2K
Member Avatar for ursrathika

Hai Experts i am working in php platform.i have a problem in paging in image catalog..my process is insert three or more images in image folder..and i have retrieved images in same folder to display table or Div in php.images are successfully displayed but i have a problem in paging....what …

Member Avatar for realnsleo
0
104
Member Avatar for preetg

hi............. m inserted records in database successfully but now i want that whenever record added in database a dialog box will be shown on the screen.............. " RECORD ADDED" m using javascript code for this but it is not working............ plz help me to do this ............. <HTML> <HEAD> <TITLE>Apprentice …

Member Avatar for phpbeginners
0
217
Member Avatar for joloms38

hi guys! can anyone help me about this problem. i want to select the desire data from a row but only the last row the will be posted not the data that i want to get. plz help me. its inside i a while loop. [CODE]else if (($from=='Cagayan De Oro' …

Member Avatar for rajabhaskar525
0
97
Member Avatar for phpDave

Hi, I'm trying to display certain links if user is logged in, else display other links. Everything works great except for log out link. I have a php script inside a php script and its not working. I was wondering if anyone has a solution. Here is the else part …

Member Avatar for phpbeginners
0
119
Member Avatar for tryphy

Hi friends, I have a form to create a company details.. which will insert the details into a table. For this table, I need to have a auto increment field as character.. when we have autoincreament as Integer... whenever the new company is created..the number will increase from 0, 1, …

Member Avatar for phpbeginners
0
114
Member Avatar for cane23

i want to store the result of an mysql_fetch_array function in an array for future use. here is my code [LIST=1] [*]$sql= "SELECT parameters FROM rules WHERE type='prerequisite' "; [*] //$result=mysql_query($sql); [*] if ($result=mysql_query($sql)) [*] echo '<p>nice</p>'; [*] else [*] echo 'good shit'; [*] [*]//$row = mysql_fetch_row($result) [*]// [*]while ( …

Member Avatar for cane23
0
8K
Member Avatar for ReDuX

If you have done a PHP based website, chances are you have dynamic content called by variables and so on. As many people use a main page (index.php) and use code within that page to dictate what content is displayed, either with if or switches or whatever. Thing is, Google …

Member Avatar for wiltekg
0
116
Member Avatar for zodiacfive

How can i pass POST [] array to jquery. Am using the code. var test = $("#content").val(); var dataString = 'content='+ test; if(test=='') { alert("Please Enter Some Text"); } else { $("#flash").show(); $("#flash").fadeIn(400).html('<img src="ajax-loader.gif" align="absmiddle"> <span class="loading">Loading Comment...</span>'); $.ajax({ type: "POST", url: "demo_insert.php", data: dataString, cache: false, Here only one …

Member Avatar for FlashCreations
0
58
Member Avatar for schaine

Hello all, here is the code im using: [CODE] <?php /** * phpTreeGraph * Linux filesystem hierarchy demo * @author Mathias Herrmann **/ //include GD rendering class require_once('./classes/GDRenderer.php'); //create new GD renderer, optinal parameters: LevelSeparation, SiblingSeparation, SubtreeSeparation, defaultNodeWidth, defaultNodeHeight $objTree = new GDRenderer(30, 10, 30, 50, 20); //add nodes to …

Member Avatar for schaine
0
95
Member Avatar for Rumblefish1976

I've been tinkereing around with PHP and I've come unstuck. I started out with an index page used to login, this linked to a login page for validation against allowed users, which in turn brought up a Voting Form and finally a page to display the results. In all 5 …

Member Avatar for Rumblefish1976
0
138
Member Avatar for zodiacfive

How can we redirect a page using AJAX on submitting a form with values and inserting them to the DB. I am using Jquery. Please help. :(

Member Avatar for zodiacfive
0
100
Member Avatar for ElegantElephant

I have the following file called config.php. These are configuration options for a client management system. I need these settings to be editable via the system admin panel. How would I go about storing these values in a database? Would it make sense to have a table called "config" with …

Member Avatar for ElegantElephant
0
102
Member Avatar for poorann

How to create a community portal using php frontend and java in the backend

Member Avatar for poorann
0
70
Member Avatar for ezeuba

Hello all, I am not new to php but what I want to try is new to me. i am designing a website (elbonfx.com)that I want to include a kind of newsletter system into. Now I have a form where visitors can insert their details and it gets sent to …

Member Avatar for saiprem
0
439
Member Avatar for peck3277

Hey guys I hope someone can help here, I imagine this is something small and simple but I can't figure it out I have the following code: [CODE] if (isset($_POST['Flavours']) && isset($_POST['Sizes']) && isset($_POST['Product_Name'])){ $flav = explode('-',$_POST['Flavours']); $flavours = $flav[0]; $sizes = $_POST['Sizes']; $product_name = $_POST['Product_Name']; $result = mysql_query('SELECT Products_ID …

Member Avatar for harshbavaliya
0
99
Member Avatar for tulipputih

Hi, I have to do this query: select all from a table, say lesson where 'the variable inserted' is equal to any column in table students and students. verified= yes. Can anyone help me on this. I have programmed as the following, however it just displays all column without doing …

Member Avatar for tulipputih
0
79
Member Avatar for phpuser

Hi,I want to upload image file using Ajax.means i want after browse file it will be put in my folder and i can see path just below browse button.and i want only ajax code for this no php or any other code which refresh file for image upload. anyone can …

Member Avatar for phpuser
0
97
Member Avatar for mikeSQL

[B]Intro[/B] This tutorial shows how to greet your visitors depending on what time of day it is. If it's morning, it greets your visitor with "Good Morning!" If it's afternoon, it greets them with "Good Afternoon!" Magic? Noooo! Just PHP! [B]Getting started[/B] We will start by looking at the entire …

Member Avatar for theplayground
1
2K
Member Avatar for JuliaNell

Hi guys, can any one correct my coding please, I want to create a form which ask for a month(dropdown) and year on input and onsubmit it checks if fields are valued and if so submit a page with teh calender of that month. Saterdays and sundays should have different …

0
76
Member Avatar for sunaruna84

hi friends I have using four the checkboxes in check.htm form . The selected checkbox values will be posted in the enquiry text box field of the enquiry.php file. but i didnt post the selected checkbox values in that field. please can u give suggestion. how to solve this, check.htm …

0
88
Member Avatar for muneerbasha

Hi I have a hyip software in that some payments are there like liberty reserve,e-gold...,After enabling curl paypal is also working but BANK WIRE not working what i had to do solve my problem .please send me as soon as possible .Advance Thanks to people to Daniweb community

Member Avatar for cwarn23
0
87
Member Avatar for servis

i want to insert non empt values (as $im1, $im2.....) in mysql database, code is as follow, im_id is auto_increment key [CODE] $im1 =image1['image']; $im2 =image2['image']; $im3 =image3['image']; $im4 =image4['image']; $sql = "INSERT INTO `class-ads`.`images` (im_id, image) VALUES (NULL, '$im1'), (NULL, '$im2'), (NULL, '$im3'), (NULL, '$im4') mysql_query($sql) or die('Error, Posting …

Member Avatar for phpbeginners
0
132

The End.