39,316 Topics

Member Avatar for
Member Avatar for vishalkhialani

Goal: Get values which are unique in $resultSecond So I have two objects. $result->>entity_id $resultSecond>entity_id I want to get values which are unique to $resultSecond and are NOT in the $result. I tried to use array_diff(). It did not work as they are objects. I think. Below is the code …

Member Avatar for vishalkhialani
0
157
Member Avatar for tgiwa

I'm new to OOP php and I am trying to load objects into an array. I followed the syntax I found [URL="http://www.daniweb.com/web-development/php/threads/286967"]here[/URL] and it works but only for the first object :sad: Here is the code i am using for the class [ICODE] class category { // Variables var $id, …

Member Avatar for tgiwa
0
217
Member Avatar for shushi

Hi guys, I think I need a help. My teacher gave us a activity on Postgres and PHP to query what's inside the database file and code it to PHP to view the results. I have a screenshot on the Database of the Postgre. [URL="http://theoutdatedblogger.com/Email-Newsletters-Template/database.png"]http://theoutdatedblogger.com/Email-Newsletters-Template/database.png[/URL] What I need to do …

Member Avatar for shushi
0
286
Member Avatar for sidra 100

hi i am writing a program which take the value from form and then execute a error "failed" each time. which means there is some error in my query but i cant find the problem. here is the code [CODE]<?php session_start(); //print_r($_POST); $name=$_SESSION['SESS_CUSTOMER_ID']; $con=mysql_connect("localhost","root",""); mysql_select_db("pras2"); $product_id=$_POST['P_list']; echo "$product_id"; $quantity=$_POST['quantity']; $query= …

Member Avatar for pritaeas
0
138
Member Avatar for Whilliam

I'm using CODEIGNITER framework. My situation is this. I have a list of data. The user selects which record to delete (through checkboxes). I have to do it in ajax because my client doesn't want to see the system refreshing. I've successfully transferred the data through JSON. Now, my problem …

Member Avatar for pritaeas
0
140
Member Avatar for HasNor

How to connect my website into domain database? I have to use the username and password from domain database but i dont know how to connect. Help me..

Member Avatar for pritaeas
0
36
Member Avatar for sthakre624

[CODE]<input type="hidden" name="site" value="<?php echo $pro['site_url']?>/thanks.php"> [/CODE]

Member Avatar for pritaeas
0
74
Member Avatar for sidra 100

hi m making a program n i want that when i want to add update a stock it get the name of product from data base and show it in drop down list so that i can select one of them which i want to update. my code for that …

Member Avatar for sidra 100
0
172
Member Avatar for davBro

Hi Guys, I have a problem with posting a news article. I use FCK Editor, and when I enter an article and want to use the apostrophe in a string like this: This is a test article. It can't be done right. The display reads as: This is a test …

Member Avatar for diafol
0
189
Member Avatar for Chub97

Hi guys I was just wondering if any of you could help me as I am currently developing a html5 video sharing site dedicated towards gaming and technology. Anyway basically I use wamp server to test all of my code. I have just set up ffmpeg and the upload form …

Member Avatar for Chub97
0
133
Member Avatar for Ribamar23

hi hi want to launch a price comparison website, i was wondering if it's possible and if there is some script that i specify a few link and it automatically retrieves information and stores it and them compares it. cheers

Member Avatar for Ribamar23
0
56
Member Avatar for sidra 100

hi i m a beginner. m student of mcs n making a project. its about a brush manufacturing company. i have GUI of my software. and also database of it. but don't have any idea what to do next? can any1 guide me please. i m using wamp server.

Member Avatar for sidra 100
0
107
Member Avatar for sidra 100

hey can any1 tel me the eror in my code part of code where problem lies is [CODE] if($result) { if (mysql_num_rows($result)==1) { session_regenerate_id(); $employee = mysql_fetch_assoc($result); $_SESSION['SESS_EMP_ID'] = $employee['employee_id']; $_SESSION['SESS_NAME'] = $employee['employee_name']; $_SESSION['SESS__dept']=$employee['department_id']; $_SESSION['SESS_rank']=$employee['rank']; session_write_close(); if ($_SESSION['SESS_rank']==$employee.rank("admin") { header("location: administrator.php"); exit(); } elseif($_SESSION['rank']==$employee.rank("shift incharge") { header ("location: Shift_incharge.php"); exit(); …

Member Avatar for sidra 100
0
63
Member Avatar for sidra 100

hi i have made a html page in which i have a drop down list whose code is [CODE]<p>Please select the product you want to add <label> <select name="menu1" onchange="MM_jumpMenu('parent',this,0)"> <option>Nylon Blisters</option> <option>PP plastic</option> </select> </label> </p>[/CODE] Now my main aim is that when a certain product is added and …

Member Avatar for sidra 100
0
96
Member Avatar for sidra 100

hi i want to make a page for the user to take the orders from the user. i want that user select one product from the drop down list then select its size and then color. then submit it. this data about first product appears in the table then he …

Member Avatar for sidra 100
0
218
Member Avatar for Thevenin

Hi all, I'm trying to use the jQuery datepicker to create a booking date selection thingy on a personal plugin I'm trying to develop. This is the code I'm using to take an "arrival" date and a "departure" date, after click on the submit button the user is redirected to …

Member Avatar for Thevenin
0
419
Member Avatar for polinolin

someone there who can help me about the session not? I have a page the user A and user B.. on every page there InputBox user. If the user A has to fill the input box means that when the A log back he does not need to fill in …

Member Avatar for diafol
0
128
Member Avatar for bisibee82

[CODE] $query = "SELECT item, description, price, imageData, status, username, item_id FROM items"; $result = mysql_query($query) or die(mysql_error()); $z=0; while($row = mysql_fetch_array($result)) { //echo other columns here// echo "<td><div id=status$z></div></td>"; <script type=text/javascript> function updatestatus(itemnum) { var url="updatestatus.php?auc=<?php echo $row['item_id']; ?>"; jQuery('#status' + itemnum).load(url); } setInterval("updatestatus(<? echo $z?>)", 1000); </script> <? …

Member Avatar for diafol
0
189
Member Avatar for showman13

Hi, I have been searching for a couple of days now for a resolution to this issue, and while I find a few references to it in google, nothing really defines the entire process. I have a MySql table called 'product_distribution' When a customer orders a product, all pertinent information …

Member Avatar for showman13
0
1K
Member Avatar for Ritesh_4

Hello I've installed phpmyadmin using the command apt-get install phpmyadmin, however am unable to open its login page in my web-browser when I type [url]http://localhost/phpmyadmin[/url] Installation was done properly and I can view the MySQL server from the webmin page. Error is: Not Found The requested URL /phpmyadmin was not …

Member Avatar for tinker
0
782
Member Avatar for accra

Am trying to insert in to the same table two values from the same form. if counter equals to 1, do an update , else do an insert. only the insert part is working, it looks like my counter script is not working,any help? [CODE] $counter=0; $sre_log_num = 0; $sre_log_result …

Member Avatar for simplypixie
0
137
Member Avatar for michellecrossle

When businesses use a particular strategy to further their interests, it is obvious that they want to measure the exact return on their investment. In my opinion, key factors that indicate the effect of social media marketing on the customers are loyalty towards brand, customer satisfaction, and revenues generated through …

Member Avatar for Matthew Anton
0
288
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
115
Member Avatar for ichinpogs1

Hi sir pls help i have an error in line 13 .. and still i don't no where can i find this error... Warning: mysql_num_rows() expects parameter 1 to be resource, boolean given in C:\wamp\www\login.php on line 13 [CODE]<?php $username = $_POST['username']; $password = $_POST['password']; if ($username&&$password) { $connect = …

Member Avatar for ruby21
0
308
Member Avatar for atp_mqk

Hi everyone how are you? I want to share my php problem with you. Please! help me if you can. I am making a database for employees’ record. I want to keep Experience head just one time, and if anyone wants to add more experience, he/she just click on add …

Member Avatar for cereal
0
278
Member Avatar for zacharysr

I am building a search engine and trying to get the title to be a link and in the code it looks like this [CODE=php]echo("<img src='$Thumbnail' width='90' height='75> <a href=\"watchvideo.php?ID=$id\">$title</a><br /> $description<br />");[/CODE] and i want the "watchivideo.php?ID=$id" to have the ID of the video in the database, and the …

Member Avatar for broj1
0
165
Member Avatar for Xufyan

I've the following code for the two radio buttons but it isn't working i don't know why :S If 'On' is selected it displays 'ON is selected' and so on but it isn't working :S and i want one button to be selected at a time but when i run …

Member Avatar for aadesh.aakash
0
1K
Member Avatar for asif49

[url]http://feeds.bbci.co.uk/news/rss.xml[/url] ^^ I'm extracting data from the above website. I can extract most actual elements using the following code: [CODE] $xml="http://feeds.bbci.co.uk/news/rss.xml"; $xmlDoc = new DOMDocument(); $xmlDoc->load($xml); //get elements from "<channel>" $channel=$xmlDoc->getElementsByTagName('channel')->item(0); $channel_title = $channel->getElementsByTagName('title') ->item(0)->childNodes->item(0)->nodeValue; $channel_link = $channel->getElementsByTagName('link') ->item(0)->childNodes->item(0)->nodeValue; $channel_desc = $channel->getElementsByTagName('description') ->item(0)->childNodes->item(0)->nodeValue; [/CODE] ...but I can't read the attributes …

Member Avatar for asif49
0
1K
Member Avatar for Xufyan

Ok, I have two radio buttons 'A' and 'B' and user have a choice to select anyone of them, by default button 'A' is selected but when user come to my website and selects 'B' then selection changes to button 'B' however the problem is, when the user move to …

Member Avatar for diafol
0
170
Member Avatar for phplover

Hello, I am going to be building a blog and have rattled my brains out on this but could someone please explain in much detail as possible how i would go about building a blog archive ? I don't mean i want the php code just the logic behind it. …

Member Avatar for phplover
0
154

The End.