39,320 Topics
| |
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 - … | |
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 … | |
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 … | |
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,^_^ | |
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 … | |
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 … | |
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 … | |
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' … | |
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 … | |
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, … | |
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 ( … | |
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 … | |
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 … | |
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 … | |
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 … | |
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. :( | |
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 … | |
How to create a community portal using php frontend and java in the backend | |
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 … | |
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 … | |
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 … | |
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 … | |
[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 … | |
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 … | |
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 … | |
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 | |
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 … | |
[code=javascript] function label_parameter(id,ind) { var clicked_row = id; alert(clicked_row); } [/code] is it possible to pass the value of clicked_row to an object in html?? thanks thanks..^^ | |
Hi This isn't specifically a php issue, but i would be using php for the project... i am creating a site where people can upload articles, photos, docs etc - thing is, I want to keep everything as its own entity and use tables to link articles to images etc... … | |
Hi, I have a captcha example and works fine. However, only image is dispayed on the screen. HTML form is not visible. I believe this related to the "header" bit in the class file. I added the code. Please help me solving this problem. Thanks [B]index.php[/B] [CODE]<?php require_once "CaptchaSecurityImages.php"; $width … |
The End.