Posts
 
Reputation
Joined
Last Seen
Ranked #3K
Strength to Increase Rep
+6
Strength to Decrease Rep
-1
78% Quality Score
Upvotes Received
12
Posts with Upvotes
11
Upvoting Members
9
Downvotes Received
3
Posts with Downvotes
3
Downvoting Members
3
5 Commented Posts
~77.2K People Reached
Interests
Programming
Favorite Tags
Member Avatar for soomro_moon
Member Avatar for hardik
-1
3K
Member Avatar for spowel4

I'm trying to create a loop to create 20 text input fields for username & 20 text input fields for password and my current attempt is listed below. It isn't working & if I view source the $i variable doesn't seem to be expanding properly. [CODE]<?php for ($i = 0; …

Member Avatar for diafol
0
7K
Member Avatar for cossay

I have the following class that I intend to validate by passing it in the symfony validator. <?php namespace Shop; use Symfony\Component\Validator\Mapping\ClassMetadata; use Symfony\Component\Validator\Constraints as Assert; use Shop\Validation\Constraint as ShopAssert; class Country { /** * * @var int */ public $id; /** * * @var string */ public $name; /** …

Member Avatar for cossay
0
399
Member Avatar for stephen_UK

I am very new to the Mysql/php environment so would appreciate guidance here please. 1) I have a php program that uses a Form to enter data into a MySQL table. This is working OK when data is entered into the fields manually. 2) I have a short php script …

Member Avatar for Yuges
0
479
Member Avatar for fariba123

i have a form with multiple checkbox. how to get the values that are checked. pls give a quick reaply. thanks

Member Avatar for bhagyashree.bhatt2
1
1K
Member Avatar for Refrigerator

Hi, I'm currently working on a site in which a user basically clicks a button repeatedly, gaining 1 extra point each time he clicks it. Anyway, I'm trying to do a MySQL update so that when the button is clicked, it updates his score in one of the MySQL tables: …

Member Avatar for gabrielcastillo
0
296
Member Avatar for davy_yg

What's wrong with this code: <?php include('include/con_database.php'); $result2 = mysql_query("SELECT * FROM banner ORDER BY DESC"); while ($data2 = mysql_fetch_array($result2)){ echo '<td>'.$data2['images'].'</td>'.'<br>'; } ?> Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in E:\xampp\xampp\htdocs\IndonusaCMS\index.php on line 39 Line 39: while ($data2 = mysql_fetch_array($result2)){

Member Avatar for rpv_sen
0
121
Member Avatar for pebesoft

Could you please tell me why this code does not put the data in a row ? --------------- foreach ($_POST as $key => $value){ $sql = "INSERT INTO ir3 ($key) "; $sql .= "VALUES ('$value')"; if (!mysql_query($sql)) { die('Insert Row Failed!' . mysql_error()); } $sql=""; } } Thanks for any …

Member Avatar for Byzantine
0
11K
Member Avatar for macgibbo83

I'm trying to add multiple records to an attendance table in a mysql database. Having trouble building an array to check for the multiple entries with the same variables. [CODE]<?php if (isset($_POST['submitted'])) { include('connect-mysql.php'); $number = $_GET['number']; for ($i = 0; $i <= $number; $i++) { $value = $_GET['value']; $text …

Member Avatar for ramaswamy123
0
11K
Member Avatar for rubai

I want to store these submitted values. Can it be possible without database? using just array. I don't want to store values for a session. Just for long time unless deleted. <form id="form1" name="form1" method="post" action=""> <form id="form1" name="form1" method="post" action=""> <p> <label for="num1">Some text</label> <input type="text" name="num1" id="num1" /> …

Member Avatar for rubai
0
2K
Member Avatar for cossay

If I have a model called Admin_user which extends CI_Model, how do I name the file in which this model class is so that codeigniter can load it? I named the file admin_user.php and placed it in application/models directory but Codeigniter does not load the class when I try loading …

Member Avatar for cossay
0
172
Member Avatar for cossay

I'm finding it difficult to configure public link in ajaxplorer. According to their documentation, this setting can done in server/conf/conf.php but the problem is there is no such file as server/conf/conf.php in the entire application folder. I currently using ajaxplorer 4.2.3.

Member Avatar for diafol
0
62
Member Avatar for lilach.dror

here is the code of the php and the last sentence is the problem: <?php/** * The base configurations of the WordPress. * * This file has the following configurations: MySQL settings, Table Prefix, * Secret Keys, WordPress Language, and ABSPATH. You can find more information by * visiting {@link …

Member Avatar for diafol
0
2K
Member Avatar for brahle

Always use scanf() and printf(). They are much, much faster than cin and cout. Also use stl algorithms, like sort, reverse and find, especialy if they are member functions of a container class you use.

Member Avatar for neithan
0
2K
Member Avatar for cossay

I am learning to using STL, and I'm currently on vectors. I have seen a lot of examples and practiced a lot on my own using built in types, but I'm finding very difficult storing objects that I create my self in a vector. Everything works fine when I add …

Member Avatar for cossay
0
234
Member Avatar for zobadof

Hi, I am coding a website for my Parents workplace. I've got the navigation bar working, but there are white bars in it? I have moved the positioning around but nothing works. This also happens for IE but different places. I use Chrome as defautl browser. If you could please …

Member Avatar for zobadof
0
103
Member Avatar for cossay

Can anyone explain to me why this simple program won't print anything? #include <stdio.h> #include <ctype.h> char * mkUpperCase(char *); int main(void) { char name[] = "information"; printf("%s\n", mkUpperCase(name)); return 0; } char * mkUpperCase(char *s) { while(*s != '\0') { *s = toupper(*s); s++; } return s; }

Member Avatar for Banfa
0
135
Member Avatar for Tharanga05

I am creating a registration form for my web site. In my registration form, there are two select boxes to select user's district and there city. So I need to do it, when a user select their district then automatically display city select box with cities which relevant to above …

Member Avatar for broj1
0
489
Member Avatar for hwoarang69

so i have a database set up. it has 3 fields. 1 is id, 2nd is uername, and 3rd is password. i already create a one username and password. in index.php for some reason it always goes inside else statment. and it skips the if part. -------------------- index.php -------------- <?php …

Member Avatar for phorce
0
455
Member Avatar for emidevil

I really dunno wats wrong here. the firts query works but the second does not . please help... There a these connected files: save.php [CODE]<?php include_once("classes/jewelry/item.class.php"); $inum = $_POST['ItemNo']; $i=new item(); $i->ItemNo = $inum; $i->ItemName= $_POST['ItemName']; $i->CapitalPrice=$_POST['CapitalPrice']; $i->SalePrice=$_POST['SalePrice']; $i->Category=$_POST['Category']; $i->Description=$_POST['Description']; $i->save(); include_once("classes/jewelry/stock.class.php"); $j=new stock(); $j->ItemNo = $inum; $j->NumStored= $_POST['Nload']; $j->NumSold= …

Member Avatar for cossay
0
572
Member Avatar for sidra 100

m geting an unexpected error in my code plz tel me where am i wrng my code because i have wriiten mysql_num_rows many time [CODE]<?php session_start(); print_r($_POST); $con=mysql_connect("localhost","root",""); mysql_select_db("pras2",$con); $slip_no=$_POST['slip_id']; $query="SELECT * FROM `slip` WHERE slip_id='$slip_no'"; $result=mysql_query($query); if ($result) { $query1= "UPDATE `slip` SET status='accepted' WHERE slip_id='$slip_no'"; $result1= mysql_query($query1); if($result1) …

Member Avatar for cossay
0
85
Member Avatar for gandrap

Hi to everyone, I have a problem to create search engine, actually i dont have problem to create simple search engine, i have problem to create search, but with multiple criteria. I need search for recipes database. So, when u put something to search, below u have 6 options to …

Member Avatar for gandrap
0
268
Member Avatar for morrisproject

I am trying to get a searched date from one page to appear on another page, i have this code on one page so the user can search for a specific date: [CODE]<?php if(!empty($_POST['searchdate'])) { $mydate = $_POST['searchdate']; } else { $mydate = date('Y-m-d'); } $id = $_POST['id']; if(empty($id) && …

Member Avatar for morrisproject
0
306
Member Avatar for tarunfuture

Hello Friends How can i update the textbox values with new values when i have already values in textbox in php

Member Avatar for tarunfuture
0
146
Member Avatar for fredy91

hay all, I currently develop a website using php but I very newbie in php programming I have login issues here, I create a login sytem I success to make that, in my web after login page it will go to admin page but when I click browser's back button …

Member Avatar for fredy91
0
155
Member Avatar for tahirkhanafridi

Hi friends here is me with another issue i have practicing about file upload, my script working with images perfectly but if i choose mp3 audio file its not moving to the directory which i have specified in my code here is my code [CODE]<?php include ("header.html"); require ("config.php"); error_reporting(E_ALL); …

Member Avatar for tahirkhanafridi
0
113
Member Avatar for ryantoss

Hello everyone, i'm been practice C++ for a while just a new hobby in technology. i start with mathematics with numbers and some cout, cin function in other program like excel i can enter series of number and after that we can: 1. Sum them up 2. Divide them, multiple, …

Member Avatar for jmichae3
0
132
Member Avatar for cossay

I have the following CSS. This works fine but not in IE and Opera. [CODE] #content { position: absolute; left: 0; right: 0; min-width: 750px; max-width: 1100px; min-height: 700px; margin-left: auto; margin-right: auto; background-color: #FFF; top: 150px; } [/CODE]

Member Avatar for Dandello
0
98
Member Avatar for cossay

Hello everyone. I'm planning of implementing auto-logout in a project I have in mind and I want you guys to tell if the way I plan to do it is the best. This is how I plan doing it. I will have table in my database, say [B]cossay_tb[/B], containing three …

Member Avatar for diafol
0
134
Member Avatar for cossay

I have this small site that I'm developing for a friend. My problem is that elements are disappearing in ie, even the version 9. The elements that are disappearing are within another element that's been floated. Screenshots of the pages are below. The first screenshot is how the page looks …

Member Avatar for Dandello
0
90