39,316 Topics

Member Avatar for
Member Avatar for tarunfuture

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 …

Member Avatar for diafol
0
109
Member Avatar for diafol

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 …

Member Avatar for diafol
0
1K
Member Avatar for gcarvalho

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 …

Member Avatar for diafol
0
448
Member Avatar for ankit.baphna

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); …

Member Avatar for pritaeas
0
393
Member Avatar for eoop.org

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 …

Member Avatar for instinctis
0
255
Member Avatar for dinhunzvi

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'] …

Member Avatar for kamili
0
154
Member Avatar for mmnewbee

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 …

Member Avatar for mmnewbee
0
126
Member Avatar for geneh23

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 …

Member Avatar for geneh23
0
116
Member Avatar for JayJ

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 …

Member Avatar for JayJ
0
247
Member Avatar for alan_ot

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 …

Member Avatar for alan_ot
0
125
Member Avatar for Red_Rain

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 …

Member Avatar for simplypixie
0
260
Member Avatar for RazorRamon

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 …

Member Avatar for pritaeas
0
115
Member Avatar for algeriano

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 …

Member Avatar for pritaeas
0
206
Member Avatar for sam230

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 …

Member Avatar for Bufnita Ciumec
0
85
Member Avatar for kgizo

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 …

Member Avatar for kgizo
0
116
Member Avatar for gerbz

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 …

Member Avatar for alan_ot
0
115
Member Avatar for dualzNZ

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 …

Member Avatar for dualzNZ
0
154
Member Avatar for Stefano Mtangoo

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 …

Member Avatar for Stefano Mtangoo
0
2K
Member Avatar for mhull27

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!

0
82
Member Avatar for kimberly lf

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 …

0
49
Member Avatar for algeriano

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'; …

Member Avatar for algeriano
0
323
Member Avatar for mehdi.yazdani

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 …

Member Avatar for simplypixie
0
173
Member Avatar for sidra 100

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'"); …

Member Avatar for mikulucky
0
99
Member Avatar for afrogfx

[B]Form.php[/B] [CODE] <form autocomplete="off" enctype="multipart/form-data" method="post" name="form"> <p></p> <div class="form-elements-malling"> <label for="fullnamemalling">Name<br /></label> <input type="text" name="fullnamemalling" id="fullnamemalling"/> <span></span> </div> <p>&nbsp;</p> <div class="form-elements-malling"> <label for="emailmalling">Email<br /></label> <input type="text" name="emailmalling" id="emailmalling"/> <span></span> <input type="submit" value="Submit" style=" background:#0060a1; color:#FFFFFF; font-size:14px; border:0; " class="submit"/> <span class="error1" style="display:none"> Please Enter Valid Data</span> <span class="success" style="display:none"> …

Member Avatar for sidra 100
0
146
Member Avatar for richaell

Hey again, posted the same code but seems like no one really answered, solved most erros alone, but still need help. What shows up on localhost: Warning: mysql_num_rows() expects parameter 1 to be resource, boolean given in C:\xampp\htdocs\Projeto\all.php on line 71 Showing 1 - 0 results from the total of …

Member Avatar for mikulucky
-1
230
Member Avatar for klemme

Im a completely retarded person when it comes to creating regex patterns! I want to check a users input, and allow certain urls, so here I have half of a pattern I have put together - Well it is actually the whole bit, but im missing bits and parts to …

Member Avatar for klemme
0
235
Member Avatar for tieastie

hello, i want my program to have the ability to generate a graph from the existing data. it works well. but i want there's a block of text that describe the generated graph or maybe to have a link or button in the same page with the graph. i read …

Member Avatar for mikulucky
0
370
Member Avatar for prasanna123
Member Avatar for Behi Jon

Hi, How could I find a sample web application with php for a database in mysql ? I just don't know how it will look like ! thanks in advance ...

Member Avatar for mikulucky
0
220
Member Avatar for sidra 100

hey m making a project n m stuck n a problem. there are different employees that can login. i have employee table in database but am confused that how can i assign each employye the url that which page page will open when a certain employee logs in.

Member Avatar for mikulucky
-1
123

The End.