39,388 Topics
![]() | |
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 … ![]() | |
Hi.. I want to run a php file every 5 seconds. So that i used shellscript file. But Shellscript file not accept php coding. Can i include php file into Shellsript file? or can i write the php code in Shellscript file? | |
I'm new to PHP and currently i face some problem in error as below Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING Below are my code. Appreciate if someone can help to point out the error and some suggestion Thanks a lot!! while($row = mysqli_fetch_array($result)) { … | |
i want to send sms with php , how its possiable tell me in detail | |
I want to have a list of months and years when content was posted to my website. Example: /// **Archive** *July 2012 June 2012 May 2012 April 2012* /// Then, clicking one of list items takes you to a page with every post from that month. I know I should … | |
hi all, i just want to ask if its possible to have a two or even more database connection in a php run application like db_connect---db1 fetch data db_connect--db2 fetch data db_close --db2 if its not possible. how can i get data from other database table appriciate youre answers. ![]() | |
Hi, Is there a function that will express any given number in words. For example: if number is 1432 then this function should echo "One thousand four hundred thirty two". Thanks ![]() | |
Hi Guys I am currently working on an image upload script. i want to log user upload and record their ips. I worked on a script(its works) but i am not sure if it will be 100% reliable. Here is code that i though of <?php $ip = $_SERVER['REMOTE_ADDR']; $filename … |
The End.