39,320 Topics
| |
Hi, I am new in web design.So,I need your help. Because i build my carrer as a web developer. please visit this site: http://www.webdo.x10.mx/index.php please go catagory link and i want my *header section*, *Add purpose section* and *footer section* in catagory page just look like home page with *content* … | |
Here is the php code that I have. I am trying to take the average of the array and then take the avearge and the display numbers from the array that are less then the average using a foreach loop then an if statement inside the foreach loop. <?php $total … | |
Hi, I am trying to make a sound play on a keypress in php. I want it to sound when the user presses the enter button. But I have been having no luck with JavaScript, among others. I would be glad if you helped. Thanks. | |
Here are my two pages I am using to edit. One is the HTML form and the next is the code to insert the changes. I have looked overthis code for a few hours and have not seen anything wrong. I hope it is not something super simple or I … | |
hi all! lame programmer here again.Please explain this thing..seems like it has truth table and stuf.anding oring etc..plz explain how this will execute.need simple explanation so i wont forget throughout my life..:D if (!(mysql_query($sql,$con)) || !(mysql_query($sql_pin,$con))) { if(mysql_errno()==1062) { $error_flag=1; echo mysql_error(); echo "error no:".mysql_errno(); die("error:".mysql_errno()); } $error_flag=1; } else … | |
Hi all, I realise that this has been asked probably many times. I have searched but have not been able to find the relative answer - most likely not searching properly?? Anyway, what I would like to do is to display multiple images relating to one topic, ie. One member … | |
Hello everyone we search many days to create a php mail contact form in flash 8 and after all we cannot make this Acually we want to add more fields in my flash contact form please anybody help How to more fields we use this Action Scripts in Flash and … | |
Hi... I want to use the multiple interpreter (like #!/bin/bash and #!/usr/bin/php) in a single shellscript. Is it Possible? | |
Hello all, Can someone kindly help me with a code to automatically archive data by month-end and year-end. | |
Hi All, I have code that dynamically retrieves data with jquery AJAX. when i want to insert data into database via PHP **$_POST** method it cannot grab `select tag` (option) value in Mozilla and Chrome. But it works perfectly in IE. Below is my code. <?php if($_GET['func'] == "drop_1" && … | |
<html> <body> <?php $i=1; echo"$i"; if(up) ++$i; ?> </body> How can i add one to $i when a button is clicked? | |
I need to store both text and images to be stored in the same field? How can this be implemented in php using a mysql database? I have used BLOB to store images in the past . Which datatype should I use for this problem? And how will this work...? … | |
So i need to create a php table that will take the age of the user (entered via a form) it will then show double the age and half the age. The rows should display the user's age +10 +20 etc. I'm new to php so trying to get my … | |
Hello everyone! I'm have a text file's contents, its output in the browser and a php file (which I'm including below.) What I need to do is search for a specific line in the text file and delete it. The problem is that the end result will have a text … | |
I am trying to use a modulo to make all even numbers replaced with a star and all odds replaced with a percent sign... this is my code: <?php $x=0; $min=900; $max=2000; // initialize array of random values $random_array = array(); // initialize temporary array for sorting $temp_array = array(); … | |
Dear DANIWEB community members, I have a question about sorting a label, and I've tried so hard in figureing it out but I realized that I am doing something wrong but not sure what... What I am doing is sorting the numbers, which is created by the loop, that populate … | |
Hello Everyone, I am trying to pull some info from a MySQL database. The problem is that, for every four rows that are fetched, I need to add a div tage before and after, so here is an example of what I want: This is the static way I have … | |
| |
hi, i am looking at using a html5 script that helps draw on a canvas, how can i then save this to my database in a blob to then be shown again on the page at a later date? the code is: function RoSave(frm) { var strImageData = canvas.toDataURL(); $.ajax({ … | |
I AM INTERESTED TO FIND OUT IF PHP CAN BE USED TO SET UP A POS SYSTEM? IF POSSIBLE, HOW? | |
I have this rather large form that I need to grab all the user input from and email it. My problem is there are a mixture of normal feilds and then parts of the form are set up in tables. I'm not sure how to go about naming each of … | |
Hi, I'm new to php and i'm trying to build simple database and I having a problem with getting id value with $_GET here is snippet of my code: $id = (int)$_GET['id']; echo $id; if(isset($_POST['upd'])){ $sql = "UPDATE dvds SET title = ?, folder = ?, spot = ? WHERE … | |
Hi, i have a question about php functions when using arrays. I have the following task to do: 1.Create a Php array $months which contains the months of the year, “January”, “February”, “March”, … “December”. 2.Create a Php function called echoArray() which accepts an array as a parameter and uses … | |
I have searched everywhere for this, but I'm really not certain we would all describe the symptoms the same way. It is most bizarre. I set a random hash string (doesn't mater how - I don't believe - but I will post code below), store it in a hidden form … | |
echo "<td><a href='delete.php?user_id=".$row['user_id']"' onclick='return confirm("Do you want to delete?")' >DELETE</a></td>"; I am not being able to correct it... | |
<?php // Set up the database connection $dsn = 'mysql:host=localhost;dbname=lafamosa_plaincart; $username = 'lafamosa_kermis'; $password = 'lafamosa1980'; $options = array(PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION); try { $db = new PDO($dsn, $username, $password, $options); } catch (PDOException $e) { $error_message = $e->getMessage(); include('errors/db_error_connect.php'); exit(); } ?> Parse error: syntax error, unexpected T_STRING in /home/lafamosa/public_html/dene/model/database.php … | |
| Hello all, I have a drop down that is populated using php and mysql. when the user makes a selection, I run the function showUser(), however, nothing happens when i make a selection, can anyone help with what I'm doing wrong? The JS [CODE] <script type="text/javascript"> function showUser(str) { if … |
hi everyone got a problem with the pp api... basically i have a return url that gets 2 fields from the pp form.. custom and mc_gross. the problem im having is that when pp redirects to this function, it first goes to a page stating its going to redirect in … | |
Hi, I am looping the data and displaying it from the database. But only one data set is displaying in the loop. I dont now where i am doing wrong. Here is my code. Please help me $resultViewed = $this->model_report_product->getMostViewed(); $stringResult ="var data= google.visualization.arrayToDataTable([ ['Product', 'Views'],"; foreach($resultViewed as $results) { … | |
i want that after validation of form with ajax it will be redirect on another page but my coding is showing result in specfic div id=result . i am getting result on index.php which coding is following <div class="c_right"> <div> <div class="t_h_c"> Hi Guest </div> <div id="result" class="error"> </div> <div … |
The End.