39,326 Topics

Member Avatar for
Member Avatar for gopi17

heyy guys...really could use some help here... my table is not updating its value, but there are no errors...the syntax seem to be correct [CODE] <?php session_start(); $host="localhost"; // Host name $username=""; // Mysql username $password=""; // Mysql password $db_name="test"; // Database name $tbl_name="testing3"; // Table name $invoice_no=$_SESSION['invoice_no']; $container_no=$_SESSION['container_no']; // …

Member Avatar for gopi17
0
134
Member Avatar for Awah Mohamed

hey people please tell me what to do , when ever i use mysql_fetch_array(data) i get this error : [CODE] Warning: mysql_fetch_array() expects parameter 1 to be resource, null given in C:\xampp\htdocs\awah.biz2\classes\class_lib.php on line 34 [/CODE] please tell me what to do , here is the class_lib.php: [CODE] <?php class …

Member Avatar for bavenbabu
0
168
Member Avatar for Darkrellin

Hi, I am making a website for a car database. I made a table called Cars with fields Name,Make,Model,Color,Doors. I have also made a search function: [CODE]SELECT * FROM Cars WHERE Name LIKE '%$search%'[/CODE] This is a general search that will search the whole table, but what if I wanted …

Member Avatar for macebooks
0
182
Member Avatar for anthonyjpv

If php file cannot be viewed from users browser, what are the advantages and disadvantages of having to process a form in same php file or processing a form with a different script? ie mail_form.php or with process_mail.php thanks!

Member Avatar for anthonyjpv
1
203
Member Avatar for imonbayazid

In my website i want to download the current page's content as pdf whenever i press download button on that page.what will be the php code?? please help me..

Member Avatar for chrishea
0
83
Member Avatar for asprin

Hello everyone. First, a little about me. I started off web development in .Net (C#) and found it to be not suiting my style. Then I moved on to PHP and instantly fell in love with it. I've been practicing it for the last 40-45 days and have covered up …

Member Avatar for FreeGeezer
0
268
Member Avatar for Surfsup

I have a simple JS script (below) that on click (of the element with an id of #addClass) adds a class (.switcher) to the body tag. The script uses jquery. I would like to know if it's possible using PHP to store that info and keep it intact when the …

Member Avatar for Surfsup
0
208
Member Avatar for jacksantho

Hi, I am Using iframe for the URL masking. But it's not working for me. Am using Xampp: [B]1. [url]http://localhost/professor.html[/url][/B] (a).professor.html page in xampp htdocs folder [B](htdocs/professor.html)[/B] (b).professor.html page -> Is a authenticated Page, getting userid and the password in the professor.html page and once the login gets true, moves …

Member Avatar for diafol
0
1K
Member Avatar for irwallace

Hi Guys, I was hoping someone could point me in the right direction. I have a nusoap server that I am trying to pass an array of data to. For now I just want to simply pass this array back, before handling this data, mainly to help my learning process. …

0
482
Member Avatar for h2so4_2003

I would like to pass values in anchoring. Keeping it visible I can use <a href=xyz.php?ID=123&action=delete> In above I would like [B]action=delete[/B] to be hidden. What to do? I cannot use [B]input type=hidden[/B] as I'm not submitting the form.instead requires onclick by clicking on reference page in anchoring and passing …

Member Avatar for ko ko
0
2K
Member Avatar for ravi52542

hi friends please send some links for how to use proper css and jquery......

Member Avatar for anand01
0
92
Member Avatar for Squit

hello ppl :) i use .htaccess for my PHP site to redirect without changing the URL in the adress bar for example: [url]http://www.example.com/news/This.is.a.new[/url] my .htaccess sends from /news/ folder sends the user to [url]http://example.com/news.php?id=142151[/url] ... and i can't send another variable to the [url]http://www.example.com/news/[/url] folder because is redirected to news.php?id... …

Member Avatar for Squit
0
1K
Member Avatar for webwiz

Hi all, I'm using @copy to copy large files from one server to another and it usually works fine. Occasionally it stops mid way through though and I have to start again. So I wondered if anyone knows of a way php can read my half copied file, compare it …

Member Avatar for webwiz
0
310
Member Avatar for stevenbeatsmith

I use dreamweaver, PHP and MYSQL. I need some help and any is appreciated, I have alot of knowledge in html learnt from some college, little in php and none in mysql, I am self teaching php and mysql, so forgive me if the question is too easy. :) Ok …

Member Avatar for stevenbeatsmith
0
233
Member Avatar for bavenbabu

I wanna to know the difference between mysql_fetch_Assoc and mysql_fetch_Array..I am a little bit confused at its usage..Kindly provide with a sample example also...Any help would be appreciated

Member Avatar for pritaeas
0
175
Member Avatar for Danny159

Hey guys, I am looking to encrypt some data into a database, however it will need to be decypt to be read... I know there is the base64 commands but im looking for something a little more secure? Does anyone know of any good solutions? Dan

Member Avatar for pritaeas
0
101
Member Avatar for hg_fs2002

I'm developing a website and I want to change the image of a page when NEXT button is clicked. I retrieve the images from my database and of course I do not want to retrieve repetitive images. This is my NEXT button: [CODE]<input type="submit" value="Next" onclick="synchronousAJAX()" style="position: absolute; left: 1085px; …

Member Avatar for diafol
0
2K
Member Avatar for Persi

Hi I need the code to use Calendar Date Picker in PHP. Can anyone help please? Thank You

Member Avatar for diafol
0
97
Member Avatar for sagarrayudu

This is my xml file [CODE]<CATALOG> <category> <name>Engineering</name> <subject>Civil Works</subject> <subject>Water Supply</subject> <subject>Street Lighting</subject> </category> <category> <name>Public Health</name> <subject>Sanitation</subject> <subject>Dispensaries</subject> <subject>Maternity Services</subject> </category> <category> <name>Town Planing</name> <subject>T.P.S</subject> <subject>T.P.B.O</subject> <subject>Tracer</subject> <subject>Chairmen</subject> </category> <category> <name>Administration</name> <subject>Ministerial Manager</subject> <subject>Revenue R.O.</subject> <subject>Accounts Accountant</subject> </category> </CATALOG>[/CODE] I have to get the all subject names in …

Member Avatar for veedeoo
0
208
Member Avatar for mayreeh

someone tell me where am going wrong <?php class myclass { var $config; function getname() { $q=mysql_query("select * from users"); while($row=mysql_fetch_array($q)) { $row[]=$minutes; } return $minutes; } .......................................... hers how i call <?php $name=new myclass; $new->getname(); foreach($new as $news) {echo $news; }

Member Avatar for mayreeh
0
117
Member Avatar for darianculbert

Hello, I have a site built with Wordpress and I want to create a form but I'm facing some troubles now. I want to have a form which can get the title of the post where I put the form, and more than one form fields on the same line …

Member Avatar for darianculbert
0
118
Member Avatar for R.Manojkumar

hi friends i use a htaccess file on my linux hoting server to change the "upload_max_filesize" and some other settings. but it shows the internal server error 500. how to change this setting on my server, Plz help me:( htaccess file code. php_value upload_max_filesize 50Mb php_value post_max_size 50Mb php_value max_execution_time …

Member Avatar for karthik_ppts
0
2K
Member Avatar for h2so4_2003

Hi, How do I set loginpage. Should I take loginpage.php page individually besides index.php or should I put loginpage in index.php itself? What to do? What's the proper method to go?

Member Avatar for scarcella
0
73
Member Avatar for Persi

I have two tables in one form and a button in another form. So the two tables must be displayed first and then the button. But for me the button is displayed between the two tables. Can anyone help me?? This is my code [CODE]<form action="choirEvedit.php5" method="post"> <?php $con = …

0
83
Member Avatar for jacob21

I want to retain selected value of city drop down list after refresh(any error occour). Need help Javascript code [CODE]<script type="text/javascript"> function showUser(str) { if (str=="") { document.getElementById("txtHint").innerHTML=""; return; } if (window.XMLHttpRequest) {// code for IE7+, Firefox, Chrome, Opera, Safari xmlhttp=new XMLHttpRequest(); } else {// code for IE6, IE5 xmlhttp=new …

Member Avatar for jacob21
0
247
Member Avatar for Tristan2036

I am adding a csv file upload script for my webid auction site. I tested it outside the webid script in a simple test database and it worked fine. I need to make some changes to it. It should catch the user's id and create an auto increment item id. …

Member Avatar for Tristan2036
0
170
Member Avatar for mohamedasif18

Hello Every One ! i started to learn CakePHP, i have installed it and working fine, now i need to learn how to run my applications and where i want to save my php files and how to run it?? Normally we run PHP files localhost/folder/index.php or something else, But …

Member Avatar for mohamedasif18
0
113
Member Avatar for Waardii

hi, I am currently making a website and was wondering how to make it so that when a button is clicked it will update a field in the database by +1. This is sort of a 'like' system for photos so someone can view a photo and then press this …

Member Avatar for karthik_ppts
0
3K
Member Avatar for gopi17

Okay this is my code, i can't get the else statement part to work...can anyone kindly assist me...i find nothing wrong with the syntax...thank u... ps: no error... [CODE]<?php session_start(); $host="localhost"; // Host name $username=""; // Mysql username $password=""; // Mysql password $db_name="test"; // Database name $tbl_name="testing"; // Table name …

Member Avatar for scarcella
0
92
Member Avatar for timwhelan

I need helping thinking though something. I am pulling dates, Year, Month of that year and an amount. I then want to go to the next year. So, 2010 then 12 rows of the months with amounts, then 2011 then 12 rows of the months printed out with amounts... Ex: …

Member Avatar for timwhelan
0
248

The End.