39,326 Topics

Member Avatar for
Member Avatar for GraficRegret

I need to build a filtering function for the website I am working on, however I am not certain where to even start, should I be working in PHP, Javascript, Jquery or what? The way this is set up, there is a column of buttons set up on the side …

Member Avatar for GraficRegret
0
174
Member Avatar for Vijaysurya

HAi everybody, I need help in flowing code i want to people not equal to friend means show addas friend buuton otherwise not show button this code show button more times what is the problem in my logic anybody plz help me. This is my friends get query. $query=$db->prepare("SELECT p.friend_id …

Member Avatar for LastMitch
0
307
Member Avatar for sabar

Hi friends, I tried to implement this features in my system http://www.agner.org/software/phpmenu/?e=0,36ood I understand that I need to change the basedir $_SERVER['DOCUMENT_ROOT'] . '/phpmenu/menu/tail.php' but when I upload to the server (some more files as in readme.txt) It was successful in the previous server. the url : (just example) mysistemname.uat.ac.de …

Member Avatar for LastMitch
0
138
Member Avatar for SphirosOkelli

I am learning php, and am developing an address book on my website that will put info into a data base I am storing on my vps. However, I am struggling to understand the use of magic quotes as a security measure and wondered if anyone had a good suggestion …

Member Avatar for Zagga
0
210
Member Avatar for garyjohnson

I have tried every solution I have come across and am still not getting any results. I have a comment box and I am trying to remove all repetative new lines or `/r/n` from the input. if (isset($_POST['comment'])) { $comment = mysql_real_escape_string($_POST['comment']); $comment = filter_var($comment, FILTER_SANITIZE_STRING); $comment = nl2br($comment); //this …

Member Avatar for garyjohnson
0
2K
Member Avatar for lexaeterna

im having a hard time coding my php script. it always says "no database selected" but i dont think there is something wrong with my code. here it is: <?php $con = mysql_connect("localhost","",""); if (!$con) { die('Could not connect: ' . mysql_error()); } mysql_select_db('try',$con); $result = mysql_query("SELECT * FROM emptbl") …

Member Avatar for LastMitch
0
156
Member Avatar for Samyx

Hello Everyone, I am trying to learn php along with Dojo. So I am testing how to create a bar graph from data in my mysql database. However, I am having a problem. I can't seem to be able to read the data. I am posting the code below so …

Member Avatar for broj1
0
255
Member Avatar for magicmarkuk

Hi I have the following piece of code: $multiLinks = array(); foreach ( $matches[0] as $k => $match ) { if ( $post->multiurl_token ) { if ( strpos($matches[2][$k], 'http://mysite.com') === false ) { $multiLinks[$matches[2][$k]] = $match.coes[3][$k]; } } else { $multiLinks[$matches[2][$k]] = $matches[3][$k]; } } I want to add an …

Member Avatar for magicmarkuk
0
128
Member Avatar for Fiorentino01^

Hi, I am doing Home & Learn PHP Tutorial.I got to the lesson about forms. I keep getting this error: PHP Notice: Undefined index: username in C:\inetpub\wwwroot\basicForm.php on line 7. This is the code: <!DOCTYPE HTML PUBLIC -//W3C/DTD HTML 4.01 Transitional//EN"> <html> <head> <title>A Basic Html Form</title> <?PHP $username = …

Member Avatar for Fiorentino01^
0
255
Member Avatar for Tinnin

Hi all, I'm using PHP with PHPExcel to create an excel sheet that I can then send as an email using mail(). Everything is working but the conditional formatting. My code is as follows for the conditional formatting part: // Conditions for data $objConditional1 = new PHPExcel_Style_Conditional(); $objConditional1->setConditionType(PHPExcel_Style_Conditional::CONDITION_CELLIS) ->setOperatorType(PHPExcel_Style_Conditional::OPERATOR_GREATERTHAN) ->addCondition('15'); …

Member Avatar for Tinnin
0
2K
Member Avatar for davy_yg

I was just wondering what is the function of php framework, such as codeigniter. Does it really makes the process of programming faster?

Member Avatar for mrleewood
0
242
Member Avatar for delta_frost

<?php $filename = $_FILES['file']['name']; $tempname = $_FILES['file']['tmp_name']; if(isset($filename)){ //echo $filename; $directory = 'E:/php_uploads/'; move_uploaded_file($tempname,$directory.$filename); echo 'Done'; } else{ echo 'No file selected'; } ?> <form method="POST" action= "fileupload.php" enctype = "multipart/form-data"> <input type="file" name="file"><br/><br/> <input type="submit" value="Submit"> </form> The enctype is correct.The element names correspond to those in the php …

Member Avatar for delta_frost
0
203
Member Avatar for violetlyn.sumayo

<form method='POST' enctype='multipart/form-data' name='frmmain' action='uploadfile.php'> <br> <label for='title'><center>Event Title:</center> </label> <center><input type="text" name="title" size="40"></center> <br> <input type="file" name="image_file" size="40"> <br> <input type="submit" value=" Upload File " name="action" font="Papyrus"> </form> <br> </center>

Member Avatar for Bachu
0
570
Member Avatar for ckjaseem

Hi , Can anyone tell how I will send the local time zone to the server and so that I can convert the unix time(coming from the database) to the local time and display it on the clients side using php (In short I dont want to use javascript when …

Member Avatar for LastMitch
0
384
Member Avatar for joshl_1995

Hello Community, I was wondering if there is a way to backup my mysql database.

Member Avatar for diafol
0
224
Member Avatar for garyjohnson

Hi, I am using the Like %$search% clause in my query to find results in my database, and I was wondering if this is the most effective and efficent way to do this?

Member Avatar for diafol
0
158
Member Avatar for davy_yg

I wonder why it doesn't want to retrieve the P_id information when I press hapus/delete button. It suppose to bypass P_id value so that I know which to delete. The url remains empty: http://localhost/innovation/script_shop/hapus.php?P_id= <?php $result = mysql_query("SELECT * FROM stock") or die(mysql_error()); echo "<table border=1>"; echo "<tr>"; echo "<th>Produk</th><th>Jumlah</th><th>Tanggal</th>"; …

Member Avatar for simplypixie
0
104
Member Avatar for garyjohnson

I know there are other post conserning this but they dont seem to help me. When I run the varaible `$results` through the function `Mysql_num_rows()` it returns as an error saying its not a valid result. Also same for the `mysql_fetch_array()`. function results(){ if ($_POST['search'] != "") { $search = …

Member Avatar for garyjohnson
0
212
Member Avatar for richosr

Hi, I have an issue sending HTML mail with Yahoo Business Hosting. I developed a web site for a friend to raise quotes for their cleaning company. I tested everything on my two of my hosts and everything works fine, I have created similar mail scripts for other people and …

Member Avatar for LastMitch
0
393
Member Avatar for NagyAndor1995

Hi, I'm working on a simpla CMS. And I'd like to create a public function that calls up all the nessecery classes and functions for the theme to run correctly. And not sure if it is possible to create something like the following. function CMS_head() { $class1 = new class1(); …

Member Avatar for Martyn_86
0
148
Member Avatar for kingkong142

Hi, I am having error in following code, <!-- START --> <p class="date-head"> <?php $sql_online_mem = "SELECT membername FROM ` trade_messengerd` WHERE status = 'Online'"; $db_sql_mem = mysql_query($sql_online_mem); while($online_mem = mysql_fetch_array($db_sql_mem)){ $members_online[] = $online_mem['membername']; } for($o=0; $o<count($members_online); $o++){ if($members_online[$o] == $uid){ $mem_online = "Online"; } } ?> <a href="#" onClick="window.open('<?=$domain_url?>/messenger/members/_login.php','login','toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=1,width=368,height=600,left=380,top=60');return …

Member Avatar for kingkong142
0
218
Member Avatar for eiramana06

Doe anyone here know the ascii code for the enter(newline)?? im not looking for the '\n' answer.. thanks..:)

Member Avatar for diafol
0
2K
Member Avatar for anony

Hello I am trying to load a select option depending on the value selected on another select option <select id="state" onchange="SelectValue();"> <option value="State1">State1</option> <option value="State2">State2</option> <option value="State3">State3</option> </select> <select id="district"></select> <script type="text/javascript"> function SelectValue() { var e = document.getElementById("mfr"); var Val = e.options[e.selectedIndex].value; } </script> I want to call this …

Member Avatar for AARTI SHRIVAS
0
146
Member Avatar for adishardis

I'm trying to get an xml file from an ftp and then insert select data into mysql db. I'm shooting in the dark but from googling this is what i've tried so far: $curl = curl_init(); $file = fopen("import.xml", 'w'); curl_setopt($curl, CURLOPT_URL, "ftp://company@company.company.se/company/import.xml"); #input curl_setopt($curl, CURLOPT_FILE, $file); #output curl_setopt($curl, CURLOPT_USERPWD, …

Member Avatar for adishardis
0
482
Member Avatar for adishardis

Hi, I, getting a new xml file everyday to one of our external ftp servers. I want to get that file and then insert select data into my mysql. What I'm thinking is that I would use curl to get the file, then simplexml and then insert into database. But …

Member Avatar for adishardis
0
219
Member Avatar for code_rum

Hi, Below is my ajax code along with html and php code. I am getting an error "title is not defined".. Ajax ------ function callAjax() { $.ajax ({ type: "POST", url: "get.php", data: "title=" + title, success: function(msg) { alert(msg); }, error: function(msg){ alert(msg); }, }); } HTML ------ <form …

Member Avatar for radhakrishna.p
0
395
Member Avatar for Bachu

Hai; How can I rewrite user profile page url like `http://website.com/firstnamesecondname-id` in wordpress ? Please help me.

Member Avatar for Bachu
0
109
Member Avatar for pucivogel

<?php mysql_connect("localhost", "root", "") or die(mysql_error()); mysql_select_db("agenda") or die(mysql_error()); $q = mysql_query("INSERT INTO kontakte (emri, mbiemri,e-mail,nr,adresa,shenime) VALUES( '{$_POST['emri']}' '{$_POST['mbiemri']}', '{$_POST['e-mail']}', '{$_POST['nr']}', '{$_POST['adresa']}', '{$_POST['shenime']}') "); if (!$q) { $message = 'Invalid query: ' . mysql_error() . "\n"; $message .= 'Whole query: ' . $query; die($message); } ?> <html> <head></head> <body> <div …

Member Avatar for urtrivedi
0
139
Member Avatar for ckjaseem

Hi all , I have googled for an answer for this question but most of them are so complicated. Can anyone suggest a simple article on this topic or show me step by step how to solve this. I want to upload an image to a folder and show this …

Member Avatar for LastMitch
0
664
Member Avatar for showman13

Good Morning... I hope this doesn't come across as too unintelligent, but I am baffled and maybe unnecessarilly I am implementing a payment processor and merchant account services on my members site. The processor has provided me with a host of API code for various functions and activities. Problem is …

Member Avatar for showman13
0
213

The End.