39,323 Topics

Member Avatar for
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
173
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
423
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
281
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
315
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
254
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
217
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
659
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
140
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
289
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
238
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
Member Avatar for asker54

While learning php I found this common statement $add_tel_sql = "INSERT INTO telephone (master_id, date_added, date_modified, tel_number, type) VALUES ('".$master_id."', now(), now(), '".$safe_tel_number."', '".$_POST['tel_type']."')"; What I do not understand why in the '".$master_id."' we are using the " and also the dot. why we do not only use $master_id without …

Member Avatar for asker54
0
284
Member Avatar for mangel.murti

i am developing a plugin where i need that on each post title a small icon added next to post title. my code is below. it is adding icon but i need both seperately clickable.(both icon and title is pointing to same url action). add_filter( 'the_title', 'modified_post_title'); function modified_post_title ($title) …

Member Avatar for mangel.murti
0
196
Member Avatar for RikTelner

array( "bullony" => "one", "mcwhat" => "two", "daniweb" => "yay" ) How to use this data to say for example `bullony has variable one` or `mcwhat has variable two` or `daniweb has variable yay`. How do I get name of array listed? I know I could use `print_p();` but it …

Member Avatar for RikTelner
0
233
Member Avatar for Joseph_8

Hai i am connect in live some problems are detected they are webcam ip address.......... my code is.... <param name="SRC" value="rtmps://59.96.238.215"> any example plz.....

Member Avatar for diafol
0
198
Member Avatar for jazleeen

I am a beginner in php. And I want to know field level validation using php not by javascript or jquery. How to do this? My incorrect code: form method="POST" action="registrationp.php"> <input type="text" name="emailid"><?php session_start(); if(isset($_SESSION['error'])) {echo $_SESSION['error']; } ?></br> <input type="submit" name="submit_form" value="Register"></form> session_start(); if (empty($_POST['emailid'])) { $emailid ="Please …

Member Avatar for cereal
0
285

The End.