39,388 Topics

Member Avatar for
Member Avatar for cgull

Hello, I am developing a web site with codeigniter. I have a form where I have a few group radio buttons. When validation fails, one group radio keeps its value but the other doesn't. I can't find why. My code for the radio that does not work: <label for="accommodationYes" class="accomm" …

Member Avatar for veedeoo
0
4K
Member Avatar for Vijaysurya

Hai everybody, i have problem in following query. this query working fine in seperated, i add two array value. totalcount display first value. what is the problem in my query. anybody plx help me $sql="SELECT count( DISTINCT friendoffriends_id ) AS count from mycommunity WHERE personal_id =:personal_id and blocked=0 "; $query …

Member Avatar for diafol
0
104
Member Avatar for joshl_1995

Hello Community, I was wondering if there is a way to pass a file from my computer (eg. using the <input type="file"/> script) to my api on my website?

Member Avatar for veedeoo
0
159
Member Avatar for Motifaithed

Good Day, Can anyone help me how to delete duplicate record in a dropdown list? I have a database with the column "material type" and "material model". For every material type there are a lot of model, so everytime I add record to the database, the column material type will …

Member Avatar for Motifaithed
0
1K
Member Avatar for davy_yg

<td>Jumlah :</td> <td><input type="text" size="12" maxlength="22" name="Jumlah" value="2 box 1 pack"></td><br> <tr> <?php // use date picker to automate date ?> <td>Tanggal :</td> <td><input type="date" id="datepicker" size="12" maxlength="22" name="Tanggal" value=""></td><br> </tr> <?php if (isset($_POST['submit'])){ mysql_query("INSERT INTO Stock (Produk,Jumlah,Tanggal) VALUES ('$_POST[batch]','$_POST[Jumlah]','$_POST[Tanggal]')"); echo "<script type=\"text/javascript\"> window.location = \"print.php\"; </script>"; } ?> </table> …

Member Avatar for TonyG_cyprus
0
125
Member Avatar for vishalonne

Hi Every Body How I can add leading zeros in a number for example if No. is 4 it should display 0004 if No. is 41 it should display 0041 if No. is 441 it should display 0441 Please give some hint.

Member Avatar for diafol
0
181
Member Avatar for GlenRogers

I,m going through a tutorial for pagination using php mysql and ajax. I'm getting this error Warning: mysql_num_rows() expects parameter 1 to be resource, boolean given in C:\wamp\www\phpAjaxPagination\pageData.php on line 16 This is the file. <?php include_once('inc/dbConnect.inc.php'); include_once('inc/pagination.inc.php'); if(isset($_POST['pageId']) && !empty($_POST['pageId'])){ $id=$_POST['pageId']; }else{ $id='0'; } $pageLimit=PAGE_PER_NO*$id; $query="SELECT post,link from pagination …

Member Avatar for diafol
0
161
Member Avatar for ebc3142

I'm trying to use this code to populate my drop down menu from a mysql table: <select name="fileselect"> <?php $pdo = new PDO('mysql:host=localhost;dbname=contisec_portal', 'root', ''); $stmt = $pdo->prepare("SELECT dateid FROM date_header"); $stmt = $pdo->execute(); while ($row = $stmt->fetch(PDO::FETCH_ASSOC)) { echo "<option value='" . $row['dateid'] . "'>" . $row['dateid'] . "</option>"; …

Member Avatar for diafol
0
7K
Member Avatar for bradly.spicer

Hey all, Just some questions regarding queries and the logic behind what I'm trying to achieve. So basically, I have these rows of information inside a MSQL table called Customers. The columns are as follow: id customer_name customer_name_letterhead customer_notes systype status signaltype verification address postcode telephone mobile mobiletwo email mainarea …

Member Avatar for Squidge
0
127
Member Avatar for dashawk

Hi guys, I have a php code that displays a list of dishes where a user can check on those dishes and then save the selection to the database. My code works find when selecting and saving the data. But the problem is that when I try to uncheck one …

Member Avatar for dashawk
0
273
Member Avatar for joshmac

I am using a framework, and I am having an issue with getting the results of this particular associative array. All others work except for this one and I am not sure why. This one only returns one result. Here is what I have in my model: public function listStats($id) …

Member Avatar for joshmac
0
228
Member Avatar for joshl_1995

Hello Community, I was wondering if there is a way to delete a folder and everything in the folder in ftp.

Member Avatar for cereal
0
386
Member Avatar for developer707

Hello to everyone, I want to direct foreign visitors of my site in one directory, this based on their IP. My site structure is: index.php(file) |->foreign(directory) I think that this can be done with .htaccess, but I don't know how Can someone gives me an example how to do this?

Member Avatar for cereal
0
403
Member Avatar for brenton_77

Hi All, I've hit a brick wall trying to get the jquery autocomplete to work correctly. The problem is with the .php file and the way the While loop works, as what it does is create a array for every name rather than one single array. I've tried to move …

Member Avatar for brenton_77
0
331
Member Avatar for FakeTales

basically i am using xpath for a search query, the results display like this Array ( [0] => SimpleXMLElement Object ( [TITLE] => Empire Burlesque [ARTIST] => Bob Dylan [COUNTRY] => USA [COMPANY] => Columbia [PRICE] => 10.90 [YEAR] => 1985 ) [1] => SimpleXMLElement Object ( [TITLE] => Greatest …

Member Avatar for FakeTales
0
203
Member Avatar for GraficRegret

is it posible to pass information held inside a MySQL database into a javascript array using PHP code? something like: $sql = mysql_query("SELECT * FROM uploads WHERE ref_id = '$refID'"); //javascript below var array = new Array() while(<?php echo $row = mysql_fetch_array($sql)?>) { array.push(<?php echo $row['name']; ?>) } or am …

Member Avatar for diafol
0
316
Member Avatar for GraficRegret

is there any way to pass a variable from php into a variable in javascript? or do I need to revert to AJAX to get this done?

Member Avatar for diafol
0
3K
Member Avatar for nunuaziz_

Been getting PHP Fatal error: Cannot redeclare class Facebook error since... Can anyone please enlighten what does this means?

Member Avatar for veedeoo
0
204
Member Avatar for ebanbury

Hi I have the following email script, which is working fine except none of the carriage returns work and the entire message from all the fields just goes in one line without any spaces. I've tried to look up carriage returns and didn't find anything different from \r\n Any help …

Member Avatar for ebanbury
0
96
Member Avatar for Tinnin

Hi all, I am trying to create an excel file in PHP which I then want to send as an attachment via the mail() function. I am able to create the excel file using the following code: function setHeader($excel_file_name)//this function used to set the header variable { header("Content-type: application/octet-stream");//A MIME …

Member Avatar for Tinnin
0
6K
Member Avatar for joshl_1995

Hello Community, I was wondering if there is a way to goto the direct link of a file (eg. http://example.com/files/test.txt) and for it to download insted of loading and displaying the file. I want to do this for every file in the "files" folder and only that folder.

Member Avatar for joshl_1995
0
205
Member Avatar for OsaMasw

Yesterday when I was working on php script I noticed that categories and subcategories works seperatly if I clicked on main category its show all articles under this main category and nothing imported from subcategories, now am working on somthing like this, so what should I do to avoid this …

Member Avatar for OsaMasw
0
2K
Member Avatar for davy_yg

Stock Recording System - I basically wants to see the data recorded in the table sql. yet this is not the case. mysql_query("INSERT INTO Produk FROM stock VALUES ('Produk')"); mysql_query("INSERT INTO Jumlah FROM stock VALUES ('Jumlah')"); mysql_query("INSERT INTO Tanggal_Masuk FROM stock VALUES ('Tanggal_Masuk')"); Is that instruction not enough to record …

Member Avatar for TonyG_cyprus
0
168
Member Avatar for nunuaziz_

I've been trying to send email using php. But I've been getting this error since... **PHP Warning: mail(): Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in C:\www\IT3126Prac\Reservation\insertReserve.php on line 36** I know I have to configure something …

Member Avatar for veedeoo
0
949
Member Avatar for shejus

please help me to make a form like this http://www.worldvision.in/one_child/# . need to be connect to carious payments also

Member Avatar for <M/>
-1
165
Member Avatar for vizz

I need to create chart for log Database fields are, *** host * pageurl * VisitPage * VisitorIP * VisitDate * VisitorTimeZone * VisitTime * browser * operatingsystem * referer** I need chart for **Toatl Visits, Uniquie Visits, Impressions, Online Users, Pageviews, %New Visits, % Uniquie Visits, %New Visitor, %Returning …

Member Avatar for broj1
0
168
Member Avatar for personalisedpen
Member Avatar for Draconyster
0
340
Member Avatar for aarya

$url=$_POST['url']; $ip = gethostbyname($url); $long1 = ip2long($ip) if ($long1 == -1 || $long1 == FALSE) { echo 'Invalid IP, please try again'; } else { print $url; echo $ip ?> bu this code i get ip address but i need the country name aslo with this ip address. is thers …

Member Avatar for kavinesh
0
1K
Member Avatar for satyavinayak

i am developing a online chat application, for that i have a server with static ip. i want to give only small javascript to include in client website. here my requirement is obtain ip address and the location of the user of the website. websites my in in any language …

Member Avatar for bops
0
387
Member Avatar for sainigks

hello, i want to make a script in php that identify the pc. actually i want to make a script like antivirus software which can only install at one pc. if we want to install it on other pc it cant. and also if we install it on same pc …

Member Avatar for pritaeas
0
541

The End.