39,323 Topics

Member Avatar for
Member Avatar for narekm

Hi . I surprised what why my lastIdRows method doesnt work .Please take alook at it's definition and tell me do you see any syntax error [code]public function process($query){ $result=mysql_query($query,$this->connection); if(!$result){ die("Database query failed".mysql_error()); } return $result; }// End "process()" method public function lastIdRows($column_set,$table_name,$last_id){ $query="SELECT '{$column_set[0]}','{$column_set[1]}','{$column_set[2]}','{$column_set[3]}' FROM '{$table_name}' WHERE id>'{$last_id}'"; …

Member Avatar for diafol
0
126
Member Avatar for tanha

Hi, I want to create Arabic to English dictionary with having pronunciation feature for the English words. How it is possible to implement using PHP and MySQL? Thank you,

Member Avatar for diafol
0
98
Member Avatar for petmol

Hi again, I am migrating my site from ASP to PHP. Things have been going OK, till I hit the login page. Can anyone please help me convert this thing to PHP? The live page is here: [url]http://www.regina.nu/visa.asp[/url] [CODE]<!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> <title>Inloggningssida</title> …

Member Avatar for timini
0
153
Member Avatar for jonnyboy12

Hello. I am ok at php. I am making a web site. The problem is that when i try to decrease the size of the browser that contains my site, the elements on the page distort and get all tangled up. how do you make the browser just cut of …

Member Avatar for diafol
0
89
Member Avatar for codegerm

Hello. I'm having the most difficult time trying to get the Paypals IPN subscription [CODE]Id. This is my IPN page. <?php // read the post from PayPal system and add 'cmd' $req = 'cmd=_notify-validate'; foreach ($_POST as $key => $value) { $value = urlencode(stripslashes($value)); $req .= "&$key=$value"; } // post …

Member Avatar for jmichae3
0
219
Member Avatar for 54uydf

my db has members, and statuses. each member can have 1 current status. I have a code that decides what status to give what member. thing is, it can give 2 possible statuses, and then the site admin should approve one of them(if at all) I made a report page …

Member Avatar for cereal
0
180
Member Avatar for geneh23

Hey everyone! :) I have a line of code that I am not sure about and I get an error message that says, "Fatal error: Call to undefined function mysql_results() in C:\Program Files (x86)\EasyPHP-5.3.8.1\www\test5\func\blog.php on line 33" when the code is from here in this script: blog.php [CODE]<?php function add_post($title, …

Member Avatar for geneh23
0
230
Member Avatar for stephenaura

Hello guys.. im new to php and this is the first time im making a php website for my project i made a php code for login but its not working.. the error message pop up everytime i tried to log in [CODE]Warning: Cannot modify header information - headers already …

Member Avatar for simplypixie
0
133
Member Avatar for cossay

Hello everyone. I'm planning of implementing auto-logout in a project I have in mind and I want you guys to tell if the way I plan to do it is the best. This is how I plan doing it. I will have table in my database, say [B]cossay_tb[/B], containing three …

Member Avatar for diafol
0
139
Member Avatar for steve1969

Hi I have some code that I have written that pulls out data from a simple database into a dropdown menu. <?php mysql_connect('localhost' , 'databasename', 'password'); mysql_select_db('databasename'); $result=mysql_query("SELECT * FROM Persons"); if(mysql_num_rows($result)>0) { ?> <select name="Persons"> <?php while($rows=mysql_fetch_array($result)){ ?> <option value="<?php echo $rows['id']; ?>"> <?php echo $rows['FirstName']; ?></option> <?php } …

Member Avatar for diafol
0
162
Member Avatar for haimz

Hello, How can i get the bytes that uploaded and bytes total after i'm using the move_uploaded_file function ? Without any extension. Thanks.

Member Avatar for diafol
0
112
Member Avatar for vizz

I have 7 forms with different information to be stored in different tables. User can choose any one form at a time. How to allow user to choose one form at a time and store those values in Mysql tables using?

Member Avatar for broj1
0
98
Member Avatar for hotice47

hi need little help displaying xml data from two website need to display data like this 1-website a 2-website b 3-website a 4-website b i am using this code can any one tell me how i can display two xml data from different websites i am using this what i …

Member Avatar for cereal
0
207
Member Avatar for davedpss

I need to access an array value but don't know all the values to call until I get them from a different array value. I'm not explaining this well so I will show some of the code below (This is from a drupal based website). I want to access this …

Member Avatar for diafol
0
62
Member Avatar for Jaygould

Hey guys! I have an error with the ' and " tags, I can't work out which way they should go.. [code] <?php $uzivatel = mysql_query("SELECT * FROM ip WHERE ip = '" . $ip . "' LIMIT 1"); while($uzivatele = mysql_fetch_array($uzivatel)){ echo '<center><input type="text" value="' . $stranka . '?id=' …

Member Avatar for diafol
0
77
Member Avatar for london-G

Hello, I have implemented my php code but it says "Parse error: syntax error, unexpected $end" last line. I can't see anything wrong with my syntax. [ICODE] <?php // Connect to server and select databse. mysql_connect("$host", "$username", "$password")or die("cannot connect"); mysql_select_db("$db_name")or die("cannot select DB"); // get value of id that …

Member Avatar for london-G
0
213
Member Avatar for s0bigg

[url]http://test.gubbit.com/newgubbit/bfsearch.php?q=lenovo&submit=&R1=V7[/url] I am not sure what the problem is here.. but when I run this page on the internet explorer, it shows a completely white blank page. After looking at the source code on IE, it is exactly the same as you would see on chrome, safari or mozilla. Any …

Member Avatar for diafol
0
189
Member Avatar for mangel.murti

hi i am new to codigniter... i fetch records from db and want to access it in another functio in same class but it giving me error.. any idea... [CODE] class Usercp_Task extends CI_Controller { var $cate=array(); public function index() { $this->getCategoryDetails(); } public fun getCategoryDetails() { $array_db=result form database... …

Member Avatar for cereal
0
97
Member Avatar for WolfShield

For those of you unfamiliar with Google Documents, it is like Microsoft Word/Excel/etc. online. I would like to create a simple online document editing program where a logged-in users could edit and save a book or other text-based document. However I do not have a lot of Web Programming experience …

0
75
Member Avatar for Danny159

Hey Guys, I need some help... I have the following code: [CODE]$dueinQ = mysql_query("SELECT * FROM `invoices` WHERE `status` = '10' OR `status` = '11' OR `status` = '9'"); while($dueinR = mysql_fetch_assoc($dueinQ)){ $inv_due = $dueinR['duedate']; $eofy = $dueinR['eofy']; $datediff = $inv_due - $eofy; $days = floor($datediff/(60*60*24)); if($days > 365){ //Do …

Member Avatar for niranga
0
131
Member Avatar for jacob21

I am using below captcha.Its working fine in localhost,one server.The problem is same code is not running on different server. Need suggestion [CODE] <?php session_start(); $ranStr = md5(microtime()); $ranStr = substr($ranStr, 0, 6); $_SESSION['cap_code'] = $ranStr; $newImage = imagecreatefromjpeg("img/cap_bg1.jpg"); $txtColor = imagecolorallocate($newImage, 0, 0, 0); imagestring($newImage, 5, 5, 5, $ranStr, …

Member Avatar for jacob21
0
133
Member Avatar for kaizokupuffball

Hi! I got this image uploading script for my website, but i don't know if it's gonna work or not. I just wanted to ask if someone could take a look at it, and tell me if the code looks okay and ready to go. Thx in advance. [CODE] <?php …

Member Avatar for diafol
0
141
Member Avatar for narekm

Hi. I am developing an apllication(btw try) which requires to use methods for deleting,selecting the database rows. If you write a code for example for delete some rows from the table how would you do it ? [code]delete($table_name,$where,$limit,$asc...)[/code] how many argument do you usually use ? Can the task that …

Member Avatar for diafol
0
258
Member Avatar for ayub05

data does not come at phpmysqladmin. and also shows this warning Warning: mysql_num_rows() expects parameter 1 to be resource, boolean given in C:\xampp\htdocs\com\com.php on line 75 Thank you for submission [CODE]<?php if ( isset($_POST['username'])) { $ret = add_to_database(); if (!$ret) { print "Error: Database error"; } else { print "Thank …

Member Avatar for ayub05
0
2K
Member Avatar for gvkatashi01

i have a php code to random 1 - 50 question from database anh print it in web [CODE] $arr1=array(); for($x=0;$x<10;$x++) { while(1) { $s=rand(0,50); if(ktra($arr1,$s)==1) { $arr1[$x]=$s; break; } } } $y=0;$arr2=array(); ?> <?php for($x=0;$x<count($arr1);$x++) { $sql="select * from question where IDQuestion='".$arr1[$x]."'"; $result=DataProvider::ExecuteQuery($sql); if($result !=false) { while($row=mysql_fetch_array($result,MYSQL_ASSOC)) { $noidung=$row["Content"]; …

Member Avatar for blocblue
0
112
Member Avatar for morrisproject

Hi, What code would i need to use for my php form, so when my record is saved using my save button on my form to my mysql database, it displays a message to say "Record Saved".

Member Avatar for morrisproject
0
148
Member Avatar for davy_yg

I get this error when trying to send e-mail form with PHP Mailer 5.1: SMTP Error: Could not connect to SMTP host. Error sending: SMTP Error: Could not connect to SMTP host. [CODE] <?php require("PHPMailer5\class.phpmailer.php"); $mail = new PHPMailer(); $mail->IsSMTP(); $mail->SMTPAuth = true; $mail->SMTPSecure = 'tls'; $mail->SMTPSecure = 'ssl'; $mail->Host …

Member Avatar for davy_yg
0
1K
Member Avatar for london-G

Hello, I am currently learning PHP. I am trying to implement a sign up page. The name at the same email address of the users in the database should give me an error message. I don't know how to start with. I started this by searching the emails in the …

Member Avatar for Stefano Mtangoo
0
115
Member Avatar for rob_hartley

Hi all I've searched everywhere on the internet including Daniweb for this answer but I can't find one. I don't want to break the rules, so I've changed the real domain name to domain.co.uk I manage a website [url]www.domain.co.uk[/url] where the owner requires a subdomain called quotes.domain.co.uk He then needs …

Member Avatar for rob_hartley
0
237
Member Avatar for albo1125

Hi community, I recently started learning html and I tried to make a short feedback form. That should send the data over to a php file and that should append it to a txt file. However, every time I try to submit my form data, I keep just seeing the …

Member Avatar for SQLpower
0
120

The End.