39,310 Topics
![]() | |
Hi, I am having a problem in building a query.I want to get first 10 users that has 1000 positive feedback my table structure is something like this id(primary key) userid(name of the user) raterid(name of the rater) rate_type(type of rating for example +ve,-ve or neutral).I have used many queries … | |
Hi,I have 6 checkboxes. name,father name,city,state,dob,education What i am trying 1)if user check name,father name its shows only checked item [B]name[/B] [B]father name[/B] Mr. a Mr.abs Mr. B Mr.bcd ([B]table structure like that[/B]) 2)if user check name,father name,city its shows only checked item [B]name[/B] [B]father name[/B] [B]city[/B] Mr. a Mr.abs … | |
friends i want to create a array which contain no of unique key , it also need store in mysql database , which i have done on my wamp server but when i m running this code on web server online i getting that my page will hangup .......so please … | |
here is my code for read message but error display in my page Notice: Undefined index: message in C:\wamp\www\.....m\Mailbox\read_message.php on line 6 anyone help me for this problem.how to solve it. [CODE] CREATE TABLE `messages` ( `message_id` int(11) NOT NULL auto_increment, `from_user` varchar(65) character set latin1 collate latin1_general_ci NOT NULL, … | |
I'm new to using dreamweaver, earlier used simple text editor.Can someone please help me as to from where should I learn dreamweaver?I'm well-versed with Php basics. REgards ![]() | |
I have a problem, submit button is not working on index.php and if I copied into another page it works fine.. here is the complete code.. [CODE] <?php session_start(); if (!isset($_SESSION['username'])) { header('Location: login.php'); } ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <script type="text/javascript"> function … | |
I wrote this code in php, it's purposes is to update the user record in mySQL database. There's already a script view.php which displays all records in the database, in the view file there's a edit link which sends the user id information to edit.php via get method. on the … | |
Hy , i`m new on the forum , so Hello to all , I want to make a "mini robot" that autocalls it self every night at 12 o`clock , and calls a php function that deletes some records form database on some criteria.My problem is not what the php … | |
Hi I get this fatal error when I am upgrading from php4 to php5: Fatal error: Function name must be a string in /home/test5/www/sok-om-billan.php on line 54 My code is (line 54) : [CODE] if(isset($_POST["submit"]) && $_POST("submit") == "Legg til medsøker"){ [/CODE] Do i have to define it as a … | |
The following id my php code [CODE]<html> <head> Checking ! </head> <body> <?php $errors_array=array(); if(isset($_REQUEST["welcome_already_seen"])){ check_data(); if(count($error_array)!=0){ show_error(); show_welcum(); } else{ handle(); } } else { show_welcum(); } function show_welcum(){ echo "<form method='post'>"; echo "What's your ice cream flavour?"; echo "<br>"; echo "<input name='flavor' type='text'>"; echo "<br>"; echo "<input type='submit' … | |
Hello ...I just was trying to output the file names of different folders in my PC using PHP code...But I found that it outputs actually more than visible files in that particular folder..So what did I mean by visible that when I count the number of files in my folder … ![]() | |
Hi everyone, Im relatively new to PHP. Im required to create a database to store all the courses taken by a student and his/her grades. i have created the database and able to store and display all the data stored in the database. I have a problem here: Im required … | |
hello, i have to find google co=ordinates from given address. so i am displaying google map in popup box but i don't know why google map not loading in popup. but it is working fine in new page.when i am trying to display in popup then only i am getting … ![]() | |
i'm trying to get a clean url for my about page. i want to change [url]http://www.example.com/about.php[/url] to [url]http://www.example.com/about[/url] i put my htaccess file as this [code]RewriteEngine On RewriteBase / RewriteRule ^(.+)/([0-9]+)/?$ about.php[/code] it's not working though, i get the 404 not found error. | |
I have a PHP shopping cart system and it's using MS SQL for the backend. Currently it's using the mssql driver. Now I want to move it to Windows Azure and I'm required to change the driver to sqlsrv 2 in order for it to work there. Can anybody tell … | |
Hello to everyone and wish for a Happy New Year. I have an html code from which I want to execute various php files (with various parameters). Say the html file is called htmlcode.html. Say one php file is called phpfile1.php and a second php file called phpfile2.php Everything works … | |
Hello everyone i'm getting the following error message. [COLOR="Red"]Fatal error: Call to a member function prepare() on a non-object in C:\xampplite\htdocs\Prepared_Statements.php on line 20[/COLOR] My code so far [B]connection.php[/B] [CODE]$db_server = "localhost"; $db_user = "root"; $db_password = ""; $db = "test"; $connection = mysql_connect($db_server,$db_user,$db_password,$db); if(!$connection){ die("Database Connection Failed".mysql_error()); } $select_database … | |
Hello I get this message : Notice: Undefined index: id in *****7index.php on line 26 when we go from php4 to php5. My code on line 25-35 is : [code] <?php if($_GET["id"] == "web"){ echo "<link rel='stylesheet' href='css/style.css' media='screen'/>"; echo "<link rel='stylesheet' href='css/style.css' media='handheld, only screen and (max-device-width:480px)' />"; echo … | |
please correct this problem [CODE] id -- int user_id -- int friend_id -- int [/CODE] [CODE] <? session_start(); //starts session mysql_connect("localhost", "root", ""); mysql_select_db("admin"); if ($user_id= $_SESSION['logged']){ //check if user is logged in if($_GET['user_id']){ //gets userid $friend_id=$_GET['user_id']; //friend $by = $user_id; //me $query = "INSERT INTO friend_req ( 'friend_id , … ![]() | |
Hey, I have some php code that I cant seem to get working... Here is the code... This is the javascript that changed the ?show in the url to what the user selects.. [CODE]<script type="text/javascript"> function show(){ var e = document.getElementById("select"); var strUser = e.options[e.selectedIndex].value; window.location = "?show="+strUser; } </script> … | |
in my admin i'm at feed item content type and i've set the comment settings to read/write, but when i load a specific feed item on my page such as mydomain.com/node/137941 there is no comments. i did some research and i came across some code that u can use to … | |
how do i create an html to pdf converter ![]() | |
Hi, I have an array (2=>50, 231=>63, 235=>121) How do I change the second item? Thanks, Dave | |
how to calculate the exceeds time. $due_date=strtotime("July 5,2011,8:00 am"); $today=strtotime("July 5,2011,9:00 am"); example i borrow a book so the due date is = ($due_date), then i return the book at ($today) how can i caculate the munites exceed from $due_date to $today...the munites exceed is 60 munites. how can i … | |
Hi,I am uploading CSV file.its working fine. but an extra record(blank record) added with all csv records Need help for above [CODE]<?php session_start(); if (!isset($_SESSION['username'])) { header('Location: login.php'); } ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <style type="text/css"> table, th { border:1px solid #666666; font-family:Verdana; … | |
Hi guys another newbie here want to know and learn about NGINX :) how can i use that in my next project ? Any help would be greatly appreciated Thanks in advance. | |
Hello everyone I haeve tried to understand the capabilities of python in web development. Have gone throuhg forums and online tutorials. Nevertheless I am not able to find any topic which can give me some insite along with basic examples of how to send http get data from an xp … | |
I was following a tutorial and i copied word by word i don't know why i get the error. Error >> Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/*****/public_html/download/url/search.php on line 36 [CODE]<?php $results = $_GET['results']; $terms = explode(" ", $results); $query = "SELECT * … | |
Hi, In have created a smallm cms, and I would like to offer customers to download it, instead of only getting access to it, if I design a website for them, AND "attach" the backend to the site. How can I create a download function, so that the whole "system"/CMS, … ![]() | |
Hi all, [CODE]<?php $con = mysql_connect('localhost','root',''); if (!$con) { die("Could not connect: " . mysql_error()); } mysql_select_db('users',$con); $sql="SELECT username FROM users_info"; $user = $_POST[username] if($sql != $user) { die("Error: Username is not in our database! Make sure you check the spelling."); } else { redirect('/users/' ->$user); } mysql_close($con); ?>[/CODE] The … |
The End.