39,388 Topics
![]() | |
How to get records from databse in ascending order new record on page refresh each time When records ended start from first record | |
hello , can u plaese help me guys I have tried several ways to UPDATE data to a mysql database from radio buttons that have 1,2,3,4 options.. for submitting i have used if (isset($_POST['submit'])) { $v1 = intval($_POST['v1']); $v2 = intval($_POST['v2']); $v3 = intval($_POST['v3']); $v4 = intval($_POST['v4']); $v5 = intval($_POST['v5']); … | |
is it possible to load the data contained in an Excel file into a MySQL table using PHP? ![]() | |
![]() | Hi, I've been playing about with native classes and looking to extend them - well just the DateTime class actually. I was hpong that there would be a way to avoid using a constructor, but I can't seem to figure out how to store a 'startup' timestamp, `u` without it. … ![]() |
Is there a good portable environment I can use to put on a USB so I can learn wherever I go. So that I have a basic editor and environment to view results. I do plan to use it at work so as self contained as possible. | |
| |
first i'm not much professional in JAVA programming but if you mentioned a code how hard is it I'll understand it ... I want to create a desktop application that is connected with an online database to insert/retrieve data from it ... I've searched a lot on google but no … | |
Hello, I need to convert string format "18 novembre 2012" (month is wrtite in italian) to php date. Can you help me? | |
am creating a simple blog application and i have a model in ci called entries model and one particular function that gets a blog entry by id from an entries table table in a database this here is the code <?php class Entries_model extends CI_Model{ function __construct(){ parent::__Construct(); } function … | |
I have a drop downmenu on a page, after users add a content to the db, i do not want the specific value that was added from the dorpdown menu to show in the list again. I do not want to delete that specific value from the dropdown table. Your … | |
i want to save the value of there username and password in field. so that next time they only have to hit login. so i only have one file for login page. login.php //html code <form id='login' action='login.php' method='POST'> <input type="text" name="username" id="login_username" class="login_field" value="" /> <input type="password" name="password" id="login_password" … ![]() | |
Hi i have this script to upload and replace the exciting image which is good. The one thing i can not figure out is i would like to resize any images that are uploaded, to like 60x60. any ideas ? <?php if (isset($_POST['submit'])) { $newext = '.png'; $filename = $_FILES["file"]["name"]; … | |
I have searched and read all sorts of options on the web in answer to this question but it seem that everyone makes it much harder than I imagined it to be... Could someone tell me if this will work or if I just have a real misconception of the … | |
Hi, I am trying to create a 3 column table, where each row will contain 3 'cells' which each contain the following info for a product - Product Name, Description, Product Link, Image and Price - so, in a 3x3 table I would have 9 products. Any help much appreciated, … ![]() | |
cant seem to log in. when ever i hit login button in login.php. than it goes to index.php but user is not loged in. i think its bc session_start problem. any idea why?? header.php <?php session_start(); include("connect.php"); //check, if user is loged in or not if(isset($_SESSION['username'])) /*** user is loged … ![]() | |
# What I am trying to do is as follow: # I have a html form with dropdownlists that populated by php and mysql, on the same page I have a table that displays the data that was enter in the form (obvious when submitted) my table structure: CustomerlocationId ProducttypeId … | |
Hi, I have a error message when I try and execute the following code $ccid = cleanQuery($_SESSION['cid']); $ip = $_SERVER['REMOTE_ADDR']; $today = date('Y-m-d'); // check to see how many entries in the tbllog have already been entered $qry5 = mysql_query("SELECT count(id) AS total FROM tbllog WHERE cid=$ccid AND action='EMAIL_REFER' AND … ![]() | |
Hi! I have a table and it is populated by the entries that are submitted from the web forms. What i want to do is display specific amounts of data per page such as 50 per page, 1 per page, 100 per page, display all... Can someone show/teach me how … | |
Hi again! I have a table and I want to figure out a way to sort inputs based on clicking the headers... for example, you click on the name column and it will sort the table based on their names such as alphabetically... The data is pulled from a csv … | |
I created an application locally on my pc using xampp and phpmyadmin, now i want to put the application on my website, but i dont know how to move it from my pc to the web, especially the database and the tables...help urgently needed. ![]() | |
I'm currently building a website for my friends and me, and I've decided to have the homepage use a news system. I have the page working with PHP to load articles from my MySQL Database, and that's working fine. My real issue is with the page that adds items to … | |
l keep getting this error: Parse error: syntax error, unexpected $end How do l get rid of it.l am preety knew to php so l am still learning, ![]() | |
Hi! Can somwhone make, or copy here php image upload code, I was searching on internet but found nothing... What I need is that, to upload picture to database, but not blob, and show it in actual link like www.website.com/pictures.php?id= <--and there a number, that shows a picture. And switching … ![]() | |
Dear Sirs! I would like to echo out the last iteration of a while loop differently as the first ones. This is my code wich echos out the first and the last iteration, but I need the middle iterations as wel.. <?php // Print if ($row = mysql_fetch_array($result)) { echo … ![]() | |
hi every one. i have two tables table_1 ( std_id primary key, std_name, tchr_id foreign key ); table_2 ( tchr_id primary key, tchr_name ); as from the above tables i have the foreign key constraint. it mean if i want to delte teacher id it must be firstly deleted from … | |
Hi, I am completing a edit page in php however, it keep stating that "Parse error: syntax error, unexpected $end in home/..........................................". Can anyone help me to check my code if there are any mistakes. Since the code is extremely long therefore I have linked it to my business page … ![]() | |
hi all i want to store the error of `mysql_error()` in a variable. i was trying the following: $alert_error = "<script type=\"text/javascript\"> alert('".mysql_error()."') </script>"; $id =5; $query = mysql_query("DELETE FROM abc WHERE id ='$id'") or die ($alert_error); actually my there is a foreign key constraint so when i click to … | |
Hello, Am a PHP developer , am working a hotel application but the issus am having here maynot be so heard to achive but am stock here and i need your help here. I have two table which are "blockedrooms" and "bookingstest" blockedrooms has `blockedrooms` (`id`, `id_item`, `the_date`, `id_state`, `id_booking`, … | |
Hi all friends, I am trying to insert XML data using DOM, i completed mostly but little bit left, issue in the <field></field> the data between that not inserted in db, please consider the below mentioned XML file... <?xml version="1.0" encoding="UTF-8"?> <form name="mc1.dpp" application-name="mc1.dpp" application-id="34" document-id="1342" producer="Penvision Formidable Application Server" … | |
Dear Sirs! I would like to pass the $row[2] from my PHP code below <?php // MySQL mysql_connect("localhost", "", "") or die(mysql_error()); mysql_select_db("") or die(mysql_error()); // Table $result = mysql_query("SELECT * FROM `fillingstations` LIMIT 0 , 30") or die(mysql_error()); // Print while($row = mysql_fetch_array($result)){ echo 'Station name: '. $row[1]; echo … ![]() |
The End.