39,323 Topics
| |
Hello HOw do I format the output of my prices/numbers using number_format () In the code below I have the dynamic field from a recordset which shows the price. Currently the numbers are as such for example: 100000 and I would like them to be displayed as 100,000 or 1,000,000 … | |
Hi everyone :) Does someone have a solution to use single and double quote with php cli when passing code with the -r option? Example, this won't work:[CODE]$ php -r 'echo 'ok'; echo "ok";'[/CODE] I'm looking for a solution that allows me to use single AND double quotes in the … | |
I have searched a million pages today, without any solutions. I can add images to MySql, Pull them from the database and show them successfully. My problem is that they are all in different width and height sizes. What I then tried to do is to set the size BEFORE … | |
Hello. I am working on a permission system for a site I am creating. First I will explain what I am trying to do, then I will explain the problem I am having. I am saving the active permissions for a user at login. The permissions are saved in a … | |
How to cut and paste the folder? What is the code in php? | |
I currently have am using Google Calendar for a website but I am creating a CMS system and want to be able to edit the calendar straight from my CMS system without having to go login to Google. Is there a way to do this? If not is there an … | |
hi there, I'm having trouble with my project, I can't wrap my head around the code. Any help would be greatly appreciated! in a database you have 2 tables. they look like the following.. table: workflow columns: id, title, content_id table: content columns: id, text list (echo) all the entries … | |
When working in a C IDE I can simply click on view disassembly to view the assembly code. Does PHP have an equivalent? It looks like Opcodes are as low - level as one can get but I wanted to verify. Secondly, What is a good IDE to view the … | |
Hi, I was just browsing Paypal page. I am really confused. I want to have two options in my website. Recurring and Non-recurring payments. For recurring payment, It seems i need to create "CreateRecurringPaymentsProfile" with the following options. token, amount, currency, date, billing period, billing frequency I don't have a … | |
Hi Everyone I just wanted to know how i can display the content of one of my database field in a list format. I have field called Ingredient, the data type of that field is Text, i tried using css but it just turns the whole content as 1 list, … | |
Hi, i m the beginner for php.What happen to my coding ~ it cannot work~~ [CODE]require_once('../../../Connections/admin_db.php'); $submit = $_POST['Submit'] ; if ($submit == 'Submit') { $ag = $_POST['ag']; //Insert Data into Instructor Profile Info $q = "INSERT INTO user(`age`) VALUES ('$ag') " ; mysql_query($q) or die(mysql_error()) ; if (!mysql_error()) echo … | |
[ICODE]<html xmlns="http://www.w3.org/1999/xhtml" > <head> <title>PicNet Table Filter Demo</title> <script src="http://ajax.microsoft.com/ajax/jquery/jquery-1.3.2.min.js" type="text/javascript"></script> <script type="text/javascript" src="picnet.table.filter.min.js"></script> <script type="text/javascript"> $(document).ready(function() { // Randomly Create Data Rows for (var i = 0; i < 50; i++) { var tr = $("<tr>" + "<td>Value" + Math.floor(Math.random() * 500) + "</td>" + "<td>" + Math.floor(Math.random() * … | |
hi,i am facing problem about when i choose more than 2 selected data from the multiple drop-down list ,there onli have 1 data successfully insert into database. [CODE]if ((isset($_POST["MM_insert"])) && ($_POST["MM_insert"] == "form1")) { $insertSQL = sprintf("INSERT INTO c_register (id, c_code, c_name, p_name, inctructor_name, c_category, c_group, c_credit_h, c_total_learning_h, c_pre_requirement, c_synopsis, … | |
Hi, I am working on a search script in php mysql & jquery.Its working fine.What i want to do,when a user click search button,it opens a new page named search.php. need help | |
hi, i have 2 different user ~which are admin and instructor ,the admin successfully log in to admin.page and it will showing their name ,the instructor login in to instructor.page will showing their namr also.hope can help thx!! [CODE]<form id="form1" name="form1" method="post" action=""> <table width="280" height="66" border="2" cellpadding="2" cellspacing="2"> <tr> … | |
| [CODE]$data = "email@yahoo.com,go@gmail.com,example@example.com"; list($email1, $email2, $email3) = explode(",", $data); echo $email1; // email@yahoo.com echo $email2; // go@gmail.com [/CODE] Pretty perfect but my problem is I don't know how many email addresses will be inserted by a user. He can input just 1/2 or even 30/40. So the style of below … |
Hi!! I have a store purchase management system which manages purchase orders, goods received notes and purchase bills. problem is, if the quantity in goods received note and purchase order dont match, similarly, if quantity in goods received note and purchase bill dont match, i have to keep track of … | |
I am having records in a field (field_id) of a table (in mysql database), which is having ID stored per line, for example [B] 1 2 3 10 11 13[/B] above is one record, and I have many records similar to that. and, when I am writing the query [B]SELECT … | |
Hi all, basically, what I am having trouble with is this: I have a value stored in a table for each member, let's call it $my_value. Each member has a $my_value, which is an integer. What I want to do is as follows... Lets assume I log in as user … | |
[CODE=php]<?php if (isset($_FILES["file"]["name"])) { if ($_FILES["file"]["type"] == "application/x-download" || ($_FILES["file"]["type"] == "application/octet-stream" && strrchr($_FILES['file']['name'],'.')==".odt") || $_FILES["file"]["type"] == "text/plain") { if ($_FILES["file"]["error"] > 0) { echo "Return Code: " . $_FILES["file"]["error"] . "<br />"; } else { echo "Upload: " . $_FILES["file"]["name"] . "<br />"; echo "Type: " . $_FILES["file"]["type"] . … | |
Hi all, im trying to make a new webpage open if a persons password is equall to COOP, i have used the code [CODE]header('Location: loginfull.php')[/CODE] to do this but i need to call through the EmployeeID and Password when this link is opened, any one have any idea how ? … | |
OK I'm pretty sure this is an easy one. I've successfully made my list and checkbox fields sticky using selected=selected and checkbox=checkbox etc etc. I now have a very simple text field. What is going wrong is that the entire string within the value="" shows up as the initial value … | |
HELLO. THIS IS MY CODE.. WHY HAS THAT ERRORS..I HAS TRY MANY SOLUTIONS, BUT IT CANT WORK... PLS HELP ME IMMEDIATELY.. TQ "Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in C:\AppServ\www\integombmds\updateCurriculumCorrect.php on line 190" BELOW IS MY CODE: [code]<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> … | |
I am trying to write a script that will get TOP ten values from a Table of a certain column. Here is my code.. [CODE]<?php include("../inc/db.php") $data = mysql_query("SELECT * FROM table ORDER by rank DESC LIMIT 10"); while($row = mysql_fetch_array($data)) { echo $row['id'] ; echo "-----"; } ?>[/CODE] Here … | |
Hello! I am beating myself up here. I use [CODE]include "header";[/CODE] on all pages, at the top, the header contains everything within <header></header> on a html page. But should i use [CODE]session_start();[/CODE] inside the header or before i include header.php on all pages? The session on my website logs out … | |
when i log in my pages move to home.php page,so i need how to relate home page with other pages,that the same person to get permission to access to other pages! | |
Hi all , below is a program i have made, and i need to know the code to compare password and password1 so they are the same value and the user hasn't made a mistake, but im not sure on how to do this, any ideas ? [CODE]<body> <table width="744" … | |
hello , Iam trying to add google map fuctionality in website dynamicallly. Iam sucessfull in but noe i want my map to be opened in lightbox .i have googled and found various results but of no use .any kind of help appreciated thanks | |
I posted previously trying to find out how to get my data that is stored in a database, but then Ive thought what if i just use arrays? I have some code here on my Wordpress Plugin Options page which allows a user to enter a value and save it. … | |
| I wan't to check if a user is listed as permitted in a particular group. How'd you do that? Should I do something like this? [CODE]group_id | permitted_users 1 | mark,jon 2 | maria,warren,mila[/CODE] now I gotta retrieve the value of permitted_user column of a specific group then separate every … |
The End.