39,326 Topics
| |
i'm trying to populate a select list from a mysql database. my line numbers on the code are 90 to 104. the error i'm getting is Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in C:\wamp\www\capstone\admin\admin_curriculum.php on line 99 my code is: [code=php] $con = mysqli_connect("localhost","root",""); $sql … | |
Ok, I got the SSI info ready on my forum, so that the membergroups 'VIP' and 'Admin' would receive a response of 'Yes', and other usergroups receive a response of 'No'. I have created a login script in VB .NET that makes the user log in. If he response from … | |
Hello Hello, Last I posted I was trying to figure out how to post a HTML confirmation page with an autoresponder after someone submits an order. Probelm solved--just about. I got everything working except when the email comes the results don't discriminate between wha tyou ordered adn didn't ordered. it … | |
i have a problem with my php code. so i really2 need somebody who a very in kind this forum to help me. here i send my database, codes and my flow chart. | |
I am doing my project "Vietnamese-English online dictionary" on PHP/MySQL. I dont know how to program speech function. Can i use MSAPI or JSAPI? Please give me some advice. | |
I searched google for days and I couldn't find anything that works for me. I would like a simple form with fields (Name, Ph number, Address) and a drop down menu with list of choices and i would like all that info to be emailed to me. I am looking … | |
404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.i'm getting this error .on appache server. | |
[code=php]print "<script language='javascript' type='text/javascript'>"; print "var a='Invalid User';"; print "document.writeln(a);";[/code] | |
Hello i want a simple calcualation which adds 2 textbox times depending on what is chosen from the two drop down lists below, for example a lesson costs £21 and if the user chooses quotestarttime 01:00 to 02:00 it would cost 21 and if the user selects 01:00 till 03:00 … | |
Hi Could anyone make any suggestions to why this is only printing the first line of data in my database?? I have 3 colums and abouts 20 rows. [CODE] <?php session_start(); if ($_SESSION['logged'] != true) { header("Location: index.php"); exit; } include "../db_con/connect.php"; ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" … | |
Can anyone tell me the name of the websites from where i can get the [B][U][COLOR="Red"]free website design templates!![/COLOR][/U][/B] including flash files!! and many more!! pls. send all the possible links!!! i am not getting the satisfactory design templates!!!!!!:( | |
pls help me!! why this code is not executing?also send me the exact code to fetch a table from a database in a table format in a web page!!!!! [code=php]<?php $con=mysql_connect("localhost","root",""); mysql_select_db("niladri",$con); $sql="SELECT * FROM `category` "; $res==mysql_query($sql); while($row==mysql_fetch_array($res)); { echo $row['cat_id']; echo $row['cat_name']; } ?>[/code] :'( :?: :icon_cry: | |
Hey all, ok, so, I am a bit weird in my questions but, that's just me. I have a fairly weird one for you. I have been using RegExSearchReplace (A Java Program) to do this the um, tedious way, but I was hoping there was an easier way to deal … | |
i made a form with 2 input buttons(for taking number inputs) and 4 radio buttons(add sub mul and divide) and one submit button(calculate) to make a simple calculator and wrote a php script which takes input values and and according to the button selected do the operation but when i … | |
Wasn't sure whether to put this in java or php, so I'm putting it here. I have a bit of java that opens a php page in a popup window, using this code: [CODE=java]<a href="javascript: void(0) "onclick="window.open ('my_form.php','linkname','height=465, width=400, left=550, top=150, scrollbars=no')">Click Here</a>[/CODE] So that code opens up "my_form.php" in … | |
I've searched through the forum, but I couldn't find an answer. How do you display a result within HTML? Such as: [CODE=php]$query = "SELECT * FROM customers WHERE job_number='$jobnumber'"; $result = mysql_query($query); while ($row = mysql_fetch_array($result)){ echo $row['first_name']; echo $row['last_name'];[/CODE] Thanks in advance. | |
Hi , I would like to use this ,but it does not work . [code] <textarea rows="2" cols="80" rows="40" readonly="false" > The cat was playing in the garden. Suddenly a dog showed up..... And you get killed by the horse . </textarea> [/code] The readonly from this one [url]http://www.w3schools.com/tags/html5_textarea.asp[/url] does … | |
Hi i'm trying to display a default value in a atext field then when user changes it im grabbing it in javascript and passing it as a hidden variable but it doesnt work [code] //javascript function function save() { var imp = document.getElementById('yesno').checked; document.getElementById("schdate").value = document.getElementById('nextsch').value; if(imp == false) { … | |
[CODE] <?php $hostname = "localhost"; $username = "hi"; $password = "bye"; $dbid = "jesus"; $link=mysql_connect($hostname, $username, $password); mysql_select_db($dbid) or die("unable to connect"); $name1=$_REQUEST['name1']; $result=("SELECT name FROM lydia WHERE nam='$name1'"); while($myrow = mysql_fetch_array($result)) { $first=$myrow[0]; echo $first; } ?> <html> <head> <script type="text/javascript"> function win() { var c='<?php echo $first; ?>'; … | |
Hi , I am new to this community and also new to PHP. My problem is that i have installed apache 2.2.6 and also have php 5.2 version. also made all the changes in conf file of apache. I also did all the neccesary things on PHP side (placing & … | |
hi friends, plz help me to change the Browser language/ system language. i've added the language in the browser setting but i couldn't change it from browser also. | |
Hi, I'm trying to write a script to allow a customer to access the status of their order. I have set up the database properly, including all the fields necessary. I have successfully written a registration script, allowing the customer to register his/her details into the database, but where I'm … | |
when i click login button it's not redirecting to another php page.it's showing error on page. my code is below. [CODE] <html> <head> function win() { var a=document.getElementById('myusername'); var b=document.getElementById('mypassword'); var temp=a.value; var temp1=b.value; window.opener.top.location.href="http://www.careerglitters.com/web_login1.php?vars=" + temp + "&varr=" +temp1; self.close(); } </head> <body> <form> <input type="text" name="myusername" style="width: 10em;"> … | |
I am trying to set up a web based POS system and have got everything working apart from printing directly to a barcode / label printer. When printing to the barode printer I need to send it a text stream of ascii characters with none printable control characters. Here's an … | |
hi frends i'm a novice in php... i just installed php and apache 2.2.x webserver and just wanted to try some very basic stuff... [CODE] <html> <body> <?php echo "Hello world"; ?> </body> </html> [/CODE] but rather than showing the output in the browser it shows the whole code.... could … | |
Hey all, posting again here as got major headaches! Basically.. I have a series of quite complicated queries, but the main problem starts right at the beginning, other than that I reckon im fine. What I want to do, is display a list of Registrations from Student's for Modules. This … | |
Hi Is it possible to overload return() function for some part of code (ie. for the scope of some class)? I would NOT like to define separate function to do 'other stuff' and use it on every return like that: return(myFunction()); Is it possible? Maybe there is some other trick? … | |
I need help I want to develop in php code to redirect the browser to one specific folder (FTP) using password upon login in that folder only that folder they can access. | |
Hi, I am a beginner in php mysql... I want to pass null values to integer from PHP file to mysql stored procedure. eg: $name = "John"; $age = $_POST['age']; // Which is a null value.. and i called the procedure like CALL InsertStudent('$name',$age); my procedure is not executing ... … | |
Hi All I have a question , i am doing small interface ( using php,mysql,IIS) , the data stored in the database as unicode data , now i want to retreive the data and display those data in php interface but it should not in unicode format ( so i … |
The End.