Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
75% Quality Score
Upvotes Received
3
Posts with Upvotes
3
Upvoting Members
3
Downvotes Received
1
Posts with Downvotes
1
Downvoting Members
1
~32.5K People Reached
Interests
I love to do programming.
Favorite Tags

46 Posted Topics

Member Avatar for Var_1

Agree with Max_power_up... Just do one addition in case of dummy data , in $msg array along with message also put status and its value as fail or any other related word different from "Complete"

Member Avatar for arunmagar
0
2K
Member Avatar for arunmagar

Hi, I am working on project Signature Based IDS. For that reason I need to install libpcap on my machine. I have problem in installing.I have libpcap source directory. as I give command # ./configure I found following error configure: error: Your operating system's lex is insufficient to compile libpcap. …

Member Avatar for Web Spider
0
1K
Member Avatar for fheppell

In php we can use explode function, in that use "\n" as delimeter. It will give you array of lines, traverse through each element and append the character you want to append except the last element of the array. Now impload array using implode function.

Member Avatar for arunmagar
0
172
Member Avatar for mexabet

You can check this line, here is syntax error render("modifypass-form.php", ["title" => "Reset Password"]); 1)Square bracket ( [ ,]) 2)=> Please check your render function second argument.

Member Avatar for cereal
0
344
Member Avatar for ashalatha

you can handle this kind of scinario using flag variable. I have written logic from what I understood from your question. flag =false while(read row one by one) { if (flag ==false) { read row first way flag =true; } else { flag =false; read row second way concat start …

Member Avatar for ashalatha
0
411
Member Avatar for centenond
Re: help

You can try this after connection made to mysql server mysql_query("set names 'utf8'",$connection); I hope this should work.

Member Avatar for centenond
0
120
Member Avatar for kingwash

Yes you can do it. Just you need to decide where to place seprator(here COMMA in your case) and New Line character "\n". or ofcourse as AndrisP suggested above you can do it using JOIN in a single query.

Member Avatar for chaitu11
0
3K
Member Avatar for jj.dcruz

I think you might have resolved this, but if not then problem is that you iterating one array into another and hence it gives multiple time result. Actully both array contains same number of values. I mean logically first record dependents[0]="1st dependant Name" age[0]="1st dependant age" similarly second dependents[1]="2nd dependant …

Member Avatar for arunmagar
0
465
Member Avatar for Raadha

Above solution is correct, I would like add more to it we can add "order by tablename.col1"

Member Avatar for Raadha
0
143
Member Avatar for LeonardK

If you are going to use value from column 'QUERY', then there will not be any problem. Just make sure that column name and table name are proper. In php write a code to select which query you want to execute and pass it to the mysql_query function.

Member Avatar for pritaeas
0
230
Member Avatar for ahudson

Yes as @imthwee said there are many ways to do it. One way is to keep Submit button disable unless Print button is clicked. Or Another way is to disable print button after click Print button, and check on click of Submit button wether Print is disabled (i.e. Print is …

Member Avatar for arunmagar
0
3K
Member Avatar for Rahul47

"interpolation to build the array index" By this sentense I think author may be trying to say that he is forming a index value using variable $number. $age["Clone$number"] He is joing string "Clone" and value from variable $number to form new more index value like $age[Clone1] $age[Clone2] $age[Clone3] That is …

Member Avatar for arunmagar
0
172
Member Avatar for Rahul47

Indexed arrays have the numeric value in the index $array[0]="XYZ"; $array[1]="25"; $array[2]="United States"; $array[3]="Football"; where as Associative arrays have the text value (key) in the index $array['Name']="XYZ"; $array['Age']="25"; $array['Country']="United States"; $array['Game']="Football"; It depends on person and the logic he want to build where he want to use the array. Suppoese …

Member Avatar for Rahul47
0
99
Member Avatar for gilgil2

Yes @pritaeas is right. It may be failing because one of the value contains a single quote or special character. Did you use mysqli_real_escape_string on the values you are passing to the query before paasing it to the query?

Member Avatar for arunmagar
0
155
Member Avatar for ferdinandmucos

I assume that the number of question equal to number of answesr You can do this way save your question and answer in txt or csv file and keep it tab seprated. Like FTP*<tab>*File Transfer Protocol*<tab>*Force Through Privately*<tab>*File Through Protocol*<tab>*File Test Protocol You can use any seprator like " | …

Member Avatar for arunmagar
0
268
Member Avatar for Dannis86

I am agree with @diafol. You should use full tags like <?php .... ?> or you can check this in configuration <? ?> // short tags, need short_open_tag enabled in php.ini

Member Avatar for arunmagar
0
2K
Member Avatar for NitsPatel

I am not used to with Opencart. But when I google it I found that automatic url rewriting can be done using "RewriteRule" in .htaccess file.

Member Avatar for arunmagar
0
171
Member Avatar for weeraa

@paulkd is right. It may be the problem of history/cacheing of browser. You can try by removing history from browser.

Member Avatar for arunmagar
0
279
Member Avatar for tahakirmani88

I am totally aggree with function made by @cereal. You can use that. In addiotion to that function you can check $key. If key equal to "Vegetables" you can display value of "Vegetables"

Member Avatar for diafol
0
6K
Member Avatar for davidjennings

if ($active == '1') { ?> <input type="checkbox" class="active" name = "active" id="active" value="1" checked = "checked"> <?php } else { ?> <input type="checkbox" class="active" name = "active" id="active" value="1"> <?php } ?> Please Use above snippet. Also in your code snippet I found <input type="checkedbox"... For check box it …

Member Avatar for davidjennings
0
188
Member Avatar for Albert Pinto

You can use limit in a query. And pass accordingly for each page. I am not sure but for pagination pupose limit will help you.

Member Avatar for diafol
0
1K
Member Avatar for mallows.yum

If $session->username contains text and may contain special character also Please try with mysql_real_escape_string before passing $session->username to a query.

Member Avatar for arunmagar
0
367
Member Avatar for jacob21

I tried your both query. It works fine. [QUOTE=jacob21;1533968]SELECT * FROM admin where company='test & test' I am running this query but getting error due to [B]&[/B].while printing Its showing SELECT * FROM admin where company='test ',not accepting & in sql query Can we run using & in query need …

Member Avatar for jacob21
0
251
Member Avatar for karthik_ppts

Hi, In what format your data is stored? is is databse? is it file?........ Please provide more information 1)if it is database use this [url]http://www.w3schools.com/PHP/php_mysql_select.asp[/url] or 2) if it is file [CODE]$url="http://www.example.com/filename"; $xmlData=file_get_contents($url);[/CODE] You will get file contents into this $xmlData variable. [QUOTE=Karthik_pranas;1491089]Hi All, How to read data from server …

Member Avatar for karthik_ppts
0
131
Member Avatar for Macko888

Hi , As you provide your problem on that basis I have created code snippet, Please change wherever necessary. This wil hep you and hope this is you want..... [CODE] <?php $con = mysql_connect("localhost","username","pwd"); if (!$con) { die('Could not connect: ' . mysql_error()); } mysql_select_db("databaseName", $con); $sql = "SELECT CandidateID, …

Member Avatar for diafol
0
311
Member Avatar for phaedrusGhost

hi phaedrusGhost, You may use javascript.I am giving logic. 1)create one function in javascript it will have one argument function takeAction(int action) { if (action==0) { //Add button event or action } else if (action==1) { //delete button event or action } } 2)If I am not wrong You have …

Member Avatar for sandeepji1
0
209
Member Avatar for Awah Mohamed
Re: code

Hi First you will have to create gui(text fields and buttons) to get that details Like- Person Name- Email ID-: Comment-: On this form you will have buttons Save and Cancel. On click of Save button your form(form where that save button is) should be redirected to a little php …

Member Avatar for sandeepji1
0
88
Member Avatar for Web_Sailor

Hi, I did not get your question. but when we click any button we check its ActionEvent.getActionCommand().This function returns string on which button we have clicked.And based on that we make action i.e. write a code. For ex. I have button with text "Add" on it ,then in my function …

Member Avatar for Web_Sailor
0
3K
Member Avatar for har58

Hi , I looked in your code. y did you wrote class CustomPanel inside admins? Please make sure where CustomPanel should be. I think it should be outside of admins class. One more question y did you keep your package name and class name same i.e. admins If you have …

Member Avatar for stephen84s
0
1K
Member Avatar for Wouldbecomp

Hi, Are you storing data in array after retrieving from mysql. y? Please try this way ans see your output-- store it as string variable. If you have any doubt please let me know.

Member Avatar for Wouldbecomp
0
83
Member Avatar for alex4700

Hi, I agree with " pritaeas " your code is write. I think only thing you will have to return query result to a function. I tried it. Your exec_query( $query ) should look like this. [QUOTE]public function exec_query( $query ) { return mysql_query($query, $this->connection ); }[/QUOTE] If you any …

Member Avatar for cwarn23
0
127
Member Avatar for waren

hi, you can use session to get your solution. Please refer this link [url]http://www.w3schools.com/php/php_sessions.asp[/url] I think this help you out. At very first you have to check is there any session exist or not.if there is any session exist with the name you given then do not show table else …

Member Avatar for arunmagar
0
305
Member Avatar for Aysa

[QUOTE=Aysa;1279999]hi guys i have to Write Square(n) function that prints a square of different sizes. The size of the square is given as input to the user. Please enter an integer value n: 10 *********************** * * * * * * * * * * * * * * * …

Member Avatar for arunmagar
0
95
Member Avatar for braveheart_sb

[CODE=php]<?php include("connection.php"); //second query $resultnumber=mysql_query("SELECT *FROM curso where curso_name='informatica'"); $num_second=mysql_numrows($resultnumber); $x=0; while ($row=mysql_fetch_array($resultnumber2)) { $curso_name=mysql_result($resultnumber2,$x,"curso_name"); $curso_periodo=mysql_result($resultnumber2,$x,"curso_periodo"); $curso_disciplina1=mysql_result($resultnumber2,$x,"curso_disciplina1"); $curso_disciplina2=mysql_result($resultnumber2,$x,"curso_disciplina2"); $curso_disciplina3=mysql_result($resultnumber2,$x,"curso_disciplina3"); $curso_preco=mysql_result($resultnumber2,$x,"curso_preco"); } echo $curso_name; echo $curso_disciplina1; ?>[/CODE] First query found fine.in second query from where $resultnumber2 is coming If I am not wrong I think it should be $resultnumber. Please check …

Member Avatar for braveheart_sb
0
145
Member Avatar for joomphp

Hi You can write your code or foreach loop as follows.It works.If you have still query let me know [CODE] <?php error_reporting(E_ALL); ini_set('display_errors', true); $xml=@simplexml_load_file("http://www.ecb.int/stats/eurofxref/eurofxref-daily.xml"); if($xml) echo "Files Successfuly loaded <br />"; else echo "Error <br />"; foreach($xml->Cube->Cube->Cube as $cube) { foreach($cube->attributes() as $a => $b) { echo $a,'="',$b,"</br>"; } …

Member Avatar for arunmagar
0
158
Member Avatar for arunmagar

Hi All, I am exploring on file properties.Specifically I want to know about file icon and other. How does the process of file save is done when we create it first time? And where all properties get save. I want to change that icon file through code for any file. …

Member Avatar for arunmagar
0
186
Member Avatar for poojashah

Hi, I am not giving you in details.But I am giving you sudocode to do your code. 1)PLLWINDOW.PHP <?php /* Connect to databse*/ /* Retrive your information from databse.If empty i.e. first time dont show anything.If found any record show in whatever format you have close database connection. */ /*Write …

Member Avatar for diafol
0
232
Member Avatar for dinoservers.com

Hi, There is problem with php syntax.You were using double quotes without worry of concatenation.Whenever you uses double quotes it should be properly ended and text should be enclosed properly. Also if you are using any column's datatype as varchar in a database please use single quotes to enclose values …

Member Avatar for vaultdweller123
0
112
Member Avatar for qhuemone

> start quote: <?php $link = @mssql_connect("-", "-", "-") or die ("Server is down!"); $db = @mssql_select_db('-') or die ("Accout table is missing!"); function doesUsernameExist($name){ $exit = FALSE; $result = @mssql_query("SELECT * FROM Accounttable.. WHERE account='$name'"); if(mssql_num_rows($result) != 0){ $exit = TRUE; } else{ $exit = FALSE; } return $exit; …

Member Avatar for vaultdweller123
0
126
Member Avatar for muralibobby2015

Hi Have you checked IE settings?Please check weather Javascript option is enabled or not?

Member Avatar for BzzBee
-1
111
Member Avatar for shahidkohat

[QUOTE=shahidkohat;1090518]How to insert record in php using Ajax?[/QUOTE] I didnt get you.Can you explore in brief ? So I will try to help you.

Member Avatar for arunmagar
0
36
Member Avatar for arunmagar

Hi All, I am a student learning Advance networking. I am doing project on [B][COLOR="Green"]signature based intrusion detection system[/COLOR][/B]. For that I am searching for signatures.But I didnt get signatures. I want sample signatures.Please help me. Thanks in advance

Member Avatar for arunmagar
0
125
Member Avatar for arunmagar

Hello I am new user of coldfusion.I just started to learn coldfusion. I made one file with the name "1_2.cfm" Code : [code=coldfusion] <!--- Processing ---> <cfset myQuestion = "What is a variable?"> <cfset myAnswer = "Variables are named storage containers inside programming languages. Just think of variables as any …

Member Avatar for terrymodular
0
117
Member Avatar for srijapnair

Hi, I m nt getting Ur problem. But U can retrieve a data from database. just write your database coonectivity code in <% connection code make a query get a result set %> Now your resultset have a data in jsp write textbox <input type="text" value='<%resultset.getString("columnname") %>' name="txt1" >

Member Avatar for peter_budo
0
99
Member Avatar for itzzmeyoyo

instead of this <% String up = (String)session.getAttribute("myText"); %> try this <% String up = session.getAttribute("myText").toString(); %> The session attribute is of object datatype.so we have to convert it to string .

Member Avatar for ~s.o.s~
0
3K
Member Avatar for arunmagar

I have developed web application I m using java beans file to set the values when user login to the system. It set the values of the user. I uses that value in application Whenever the login code calls the beans values are set with new user. The existing login …

Member Avatar for peter_budo
0
65

The End.