39,326 Topics

Member Avatar for
Member Avatar for Vmailservice

<script type="text/javascript"> var arr = [{ val: 1, text: 'Option 1' }, { val: 2, text: 'Option 2' }]; $(function () { $('a').click(function () { var sel = $('<select>').appendTo('body'); $(arr).each(function () { sel.append($("<option>").val(this.val).text(this.text)); }); $('<br>').insertBefore(sel); $('<input/>').insertAfter(sel); return false; }); }); </script> </head> <body> <a href="">Add Select Box</a> </body> with is …

Member Avatar for diafol
0
151
Member Avatar for davy_yg

Hello, I wonder how to create facebook & twitter share button which share articles title (twitter) & article title/content (facebook)? So far I only find the following codes: https://about.twitter.com/resources/buttons#tweet https://developers.facebook.com/docs/plugins/share-button/ It doesn't share the article title/content though. I have to type the title to share (not automatic).

Member Avatar for davy_yg
0
496
Member Avatar for fheppell

I have this code that loads a file called mailchimp-api and signs a user up to a newsletter: <?php if(isset($_POST['email'])){ $email = $_POST['email']; include("mailchimp-api.php"); $chimp = new MailChimp('XXXXXXXXXX-us7'); echo "API registered"; $chimp = $MailChimp->call('lists/subscribe', array( 'id' => 'XXXXXXXXX', 'email' => $email, 'double_optin' => false, 'update_existing' => true, 'send_welcome' => true, …

Member Avatar for cereal
0
243
Member Avatar for branding4you

I have a new website that i want the exchange rates to show up using the ECB (European Central Bank) Now for some reason on their website they put this code but i copy paste it into file save as php upload to server and nothing ... what could be …

Member Avatar for branding4you
0
334
Member Avatar for gsynr

I am not able to use Facebook Like and Share Butoon on my website Anyone can help mee <html> <head> </head> <body> <div id="fb-root"></div> <script> window.fbAsyncInit = function() { FB.init({ appId : 'app id', status : true, xfbml : true }); }; (function(d, s, id){ var js, fjs = d.getElementsByTagName(s)[0]; …

Member Avatar for gsynr
0
261
Member Avatar for borovez

Alright so this has been bugging me for a long time now... I have tried everything but I cant get it to work! So what I want to have is a link that acts as a button, and once you click it, it POSTs an ID number of the button …

Member Avatar for pritaeas
0
6K
Member Avatar for blueguy777

Update form is working perfectly, but the value of $magentname variable changing to blank without selecting drop down box value. code: <?php require 'include/database.php'; require 'include/settings.php'; $id = null; if ( !empty($_GET['id'])) { $id = $_REQUEST['id']; } if ( null==$id ) { header("Location: sub-agents-list.php"); } $mainagentid = $_POST["mainagentid"]; $pdo = …

0
174
Member Avatar for everton.retweets

Hi Everyone, I am struggling to fix this stupid problem I have with pdo php insert. I have this working on a different insert, but for some reason, this is just not working. I keep getting the error "You have an error in your SQL syntax; check the manual that …

Member Avatar for pritaeas
0
426
Member Avatar for cpchc

Hi there - I had written some php for users to login to a password protected part of our site. Today an SSL certificate was installed. Previous to the SSL being installed the pages would timeout and kick the user out to the login screen after a certain period of …

Member Avatar for patk570
0
283
Member Avatar for anas.man
Member Avatar for tnjiric

Hi DW community. I had an unusuall fix made the other day for one service and wanted to find out exacly what happened. The situation was the following: For this one specific ADS channel, the communication works this way: The hotel reservation is sent via $_POST['RES_DATA'] , and after the …

Member Avatar for pritaeas
0
244
Member Avatar for blueguy777

I am new to PDO, i am trying to insert values into database table. but the script is not inserting any values nor displaying error message.help me to fix this issue. <?php require 'include/database.php'; require 'include/settings.php'; if ( !empty($_POST)) { // keep track validation errors $firstnameError = null; $lastnameError = …

Member Avatar for iamthwee
0
317
Member Avatar for subrata_ushasi

Hi all , I have written code for sending mail with pdf file as attachment , but mail sending is not working. I used class.phpmailer.php. The files are attached herewith . Please kindly see if any solution is possible . Hence appreciated. //$mailpdf=$pdf->Output('exam_schedule.pdf', 'I'); require_once('class.phpmailer.php'); require_once('class.smtp.php'); $mail= new PHPMailer(); // …

Member Avatar for Jaycee_1
0
10K
Member Avatar for garwil

I have an accommodation reservation system that allows managing agents to list all the properties under their control. There are various 'locations' that have a priority such as:- 'Beach Front' has priority of 1 and 'Off beach' a priority of 2 etc. Setting these are pretty much a straight forward …

Member Avatar for garwil
0
256
Member Avatar for sanjay@srvmedia
Member Avatar for 2mhzbrain

The code below is from tutorial, my problem is my work dont work and the video tutorial is corrupted, i missed something for sure, the WHERE `articles_id`='$update_id' condition in query is not working, it wont find the corrent id to be editted. Please help. <?php require 'includes/verifycred.php'; ?> <!DOCTYPE html> …

Member Avatar for patk570
0
197
Member Avatar for RainaAnja

<?php include 'connectMySql.php'; if(! $conn ) { die('Could not connect: ' . mysql_error()); } $sql = 'SELECT * FROM users '; $result = mysql_query( $sql); if(! $result) { die('Could not get data: ' . mysql_error()); } while($row = mysql_fetch_assoc($result, MYSQL_ASSOC)) { echo "ID : {$row['id']} <br> ". "USERNAME : {$row['username']} …

Member Avatar for matrixdevuk
0
198
Member Avatar for Priti_P

Hello, I have a string $string="- [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall] - [HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall] For both cases,look for a value named “InstallLocation” containing the string “\Hewlett-Packard\\”, either delete or clear this value and"; and i wrote function fro wrapping it as: ` $test=wordwrap($string,"80","<br>"); echo $test; ` but it did not gave me output which i …

Member Avatar for Priti_P
0
141
Member Avatar for Priti_P

Hello, gmail Calender invitation sent from my application are not directly getting added to calender invitations. I have to make them add explicitly by add to calender. FYI: you can see the link which i found while seraching for this isue. http://productforums.google.com/forum/#!topic/calendar/cLEu8QVdb3E If you have any updates on this then …

Member Avatar for Priti_P
0
242
Member Avatar for nageshwar.ch

Hi, I need to get the nearest neighbor state based on the IP address of the current state. I have done some research and found Geo plugin, which gives the state information based on the IP address. So now i need the States nearer to that IP address.How can i …

Member Avatar for cereal
0
490
Member Avatar for zelanne74

Hi Goodmorning. I'm developing an online add cart. my problem is when a user confirm payment and after a second he/she pressed escape. payment is successful but my email notification did not sent. how will i detect if a user pressed escape. Thank you.

Member Avatar for JorgeM
0
219
Member Avatar for patk570

I am trying to do a count of all types in there(hardware and software) I thought i had the correct structure...but I guess i am wrong... $count = mysqli_query($mysqli, "SELECT COUNT(*) AS total_count FROM assets WHERE cust_id=$custID AND (asset_type='hardware' AND asset_type='software') "); echo mysqli_error($mysqli); $count = mysqli_fetch_object($count); $count = $count->total_count; …

Member Avatar for patk570
0
159
Member Avatar for juslai

I want to be able to insert the data from a range function into mysql table the range values comes from 2 textfields that are user inputted, for example the user inputs 1 and 50 the range function generates numbers from 1 to 50 in an array, my problem is …

Member Avatar for jstfsklh211
0
661
Member Avatar for everton.retweets

Hi Everyone, I have the following script to search for and display the CountryId (code) of a given country name. $stmt = $conn->query('SELECT CountryId FROM countries WHERE Country = ".$clcountry." '); while($row = $stmt->fetch(PDO::FETCH_ASSOC)) { echo $row['CountryId']; //etc... } I have tried the above with '.$clcountry.' and with $clcountry - …

Member Avatar for everton.retweets
0
339
Member Avatar for Iikeloa

Hi I"m sorry that there is no code, it's just a question in my mind .. How can I sort the request results as rows.In every row 4 results then the next row 4 results and so on.?

Member Avatar for Iikeloa
0
141
Member Avatar for diafol

While extending a mysqli class, I ran into an issue with binding parameters. I've read that db names and table names should not be used as parameters, but while I was pondering this statement... SELECT SCHEMA_NAME FROM INFORMATION_SCHEMA.SCHEMATA WHERE SCHEMA_NAME = '$dbname' I thought, as the db name is a …

Member Avatar for diafol
2
290
Member Avatar for filch

I have an update form where there is a student record that has a picture as well as other info. It is with the picture that I am having a problem. The form has a file field with id="picture" name="picture" and then a simple dynamic record call to display the …

Member Avatar for diafol
0
239
Member Avatar for Hayezb

Hello! I'm needing some help integrating HighCharts into my CodeIgniter application and getting data from my MySQL database! I've followed a YouTube video on actually integrating HighCharts and it was extremely straightforward. However, that method included a hardcoded array and I'm needing to generate an array from data stored in …

Member Avatar for diafol
0
2K
Member Avatar for SPRINGHEEL

Here is the code. I have trouble with the registration process here. thanks anyway. <?php session_start(); include("connect.php"); $b_name = $_POST["txtbusinessname"]; $b_add = $_POST["txtbusinessadd"]; $email = $_POST["txtemailadd"]; $contact = $_POST["txtcontact"]; $cell = $_POST['txtcontact']; $_SESSION["bname"]= $b_name; $_SESSION["badd"]= $b_add; $_SESSION["bemail"]= $email; $_SESSION["bcontact"]= $contact; $_SESSION["cell"] = $cell; $format_cell = "+639"; if($b_name=="") { echo("<script>alert('Business Name …

Member Avatar for jstfsklh211
0
301
Member Avatar for jabeen.sarwar.7

latest combination(combo) devices of computer.tell me those devices which works more than one??

Member Avatar for JorgeM
0
164

The End.