39,323 Topics
| |
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 = … | |
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 … | |
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 … | |
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 … | |
[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 … | |
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 … | |
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. … | |
Hello Friends I am using the two forms on asingle php page form1 and form2. i am inserting the value from form1 and retrieving it into form2 into a dropdown. but in form2 it shows me second last inserted data rather than last inserted data. but after refresh the page … | |
| Hi all, I've been using ajax for a while and I've been storing my trivial php include files in the public directory tree. Then I thought, I really should be putting my classes and includes above the public document root (as I used to do before I started dabbling with … |
Hey, DaniWeb friends! I've a problem with my login.php: When an error occurred, the [CODE]mysql_error();[/CODE] doesn't appear the error. Tested the [CODE]mysql_errno()[/CODE] also, it appears as 0, saying it doesn't have any errors. Take a look at the script: [CODE] <?php $username = $_POST['username']; $pass = $_POST['password']; require "conf/connection.php"; require … | |
Error while browsing www.grahasti.com Parse error: syntax error, unexpected T_STRING in /customers/e/8/f/grahasti.com/httpd.www/apps/home/Lib/Model/UserModel.class.php on line 1 Class content: <?php class UserModel extends Model { protected $tableName='user'; var $uid; public function getUserByMap($map = array(), $field = '*', $limit = '', $order = '', $is_find_page = true) { if ($is_find_page) { return $this->where($map)->field($field)->order($order)->findPage($limit); … | |
Hey! I develop a search engine, most of the engine is finished. The only thing missing now is PageRank. Is there any type of opportunities to write a PageRank in PHP? I have saved the information / data in a MySQL database. The table looks like this: ID Title Keywords … | |
is there a way to resize an image after you have uploaded it using php? suppose i want to restrict the width and height of my images to 1000 and 800 respectively what code to i add to the following code snippet? [CODE] $tmp_file = $_FILES['file_upload']['tmp_name']; $target_file = basename( $_FILES['file_upload']['name'] … | |
Hi, I hope someone can help me with the problem I have. I want to design a simple auction site with PHP and would be grateful if someone could explain the logic of how such a site functions and if possible sample code for the bidding process to track all … | |
Hey everyone, Sorry if it seems as if I have posted something similar to this but I don't believe I have had this error before..well not really an error but anyway..so I have a change password form and I process it using php. Well, it goes through the process of … | |
Hi, I'm open to suggestions on the following project I'm trying to complete. I will post what I have currently done but I think that I'm limited in what I can do with the code as a form can only have 1 action. [B]Problem[/B] - I have a short questionnaire … | |
Hello all. got such problem. tested email function with my shared hosting and found out that i can send emails from form only to my domain emails accounts. nor @gmail.com no @yahoo.com do not receive emails from my site (domain). what kind of problem can it be? thank for any … | |
All, Im guessing this is going to be easy for any one to answer bc im such a fucking noob but here goes. I have mysql fields set to DATETIME and i just want to pull out that data and have it display in my form. And i would also … | |
Ok i have a lot of tables that are created when a user inputs information. Some info gets stored in a "Main" table while the majority is saved in its own self created table. I do not know the number of "topics" in Main table. so in way i'm trying … | |
Hello everyone, i met a real big problem and i'll really appreciate if someone can help me on this. i know there's something wrong in my file but i can't locate this problem. so the problem is i can't browse pages..for example i have 19 pages when i click on … | |
i have to make a polling sytem with multiple Questions having multiple Questions. for example Q1 - best actor A) Will Smith B) Tom Cruise Q2 - best Color A) Red B)Green Submit button.. there will be only one submit button. after submit i have to show all result on … | |
Hello, I would love to display the values of 65 columns which have been added and then display them on the screen, at the moment only 59 of the 65 columns added appear. here is my code. $result = mysql_query("SELECT SUM(segment) AS segment, SUM(funct) AS funct,SUM(pronoun) AS pronoun.............. right up … | |
what's wrong with my code? <?php error_reporting(0); // ' Send me an email' script if($_POST['submit']) { //get data from form $name = $_POST['name']; $message = $_POST['message']; if($name&&$message) { // existance check $namelen = 20; $messagelen = 300; if(strlen($name)<=$namelen&&strlen($message)<=$messagelen) // length check { // everything is ok! //set SMTP in php.ini … | |
hi all i have created a dynamic signature for a project i am working on it is working fine but i would like to also pull the users avatar as well to show inside the dynamic signature. my current dynamic code [CODE]<?php include("../system/uploadconnection.php"); include("../functions.php"); $username = $_GET['username']; // This gets … | |
Hi friends, I need to make a simple parser for parsing PHP files (classes, functions et al) and I have read both Flex and Bison manual. I have read somewhere that I must build Abstract Syntax Tree (AST) and utilize that. But I cannot find any tutorial on how to … | |
I was curious if making a javascript alert a PHP mail form and would send with that. Would it be possible, and would it be secure from email harvesters? Thanks! | |
I had a perfectly good form made with a now seemingly extinct generator. Recently it quit and my host said "Per the Systems Administrator, due to security reasons, forms can no longer send from the user: nobody. You will simply need to update your form to send from a legitimate … | |
Hello, can anyone help me on this when i try to hit an invalid link to my site it gives me this : [B]Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/nadia/public_html/showarticle.php on line 39[/B] here's my showarticle.php [CODE]<?php require_once ("includes/config.php"); require_once ("includes/functions.php"); $script_name = 'showarticle'; … | |
hi i used from regular command for showing date in php [CODE]<?php echo(Date("l F d, Y")); ?>[/CODE] that as you know the result is some things like this : Monday December 12, 2011 but i need the brief form of date some things like this one : 12/30/2011 . please … | |
can any1 tell me wats wrong in my code i cannt change my password using this code [CODE]<?php $con=mysql_connect("localhost","root",""); mysql_select_db("pras2"); if (!$con) { die('Could not connect: ' . mysql_error()); } $username = $_POST['username']; $password = $_POST['password']; $newpassword = $_POST['newpassword']; $confirmnewpassword = $_POST['confirmnewpassword']; $result = mysql_query("SELECT password FROM customer WHERE username='$username'"); … |
The End.