10,946 Topics

Member Avatar for
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
326
Member Avatar for Wolxhound90

Hey guys, So, I have a CheckedListBox that will be used to choose what columns they want to select from a database. Is it at all possible to display it in the format of [Table Name].[Column Name]? So far I have this: [CODE]con.Open() theQuery.Connection = con theQuery.CommandText = strColumns theAdapter.SelectCommand …

Member Avatar for Wolxhound90
0
195
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
232
Member Avatar for Wolxhound90

Hey all, Apologies for this question, as I imagine it will be very easy. I'm creating a form that will be used to update fields in a table. I don't want the user to be able to update primary keys though, so I'm trying to disable the textbox so it …

Member Avatar for Wolxhound90
0
257
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
224
Member Avatar for bflack

Hello guys, [CODE] <?php include 'dbconnect.php'; echo 'under profile.php'; $username=$_SESSION['username']; //I think i have to put a query here like "SELECT username FROM accntinfos WHERE username='$username'". But confused since if I do there would be two queries $query="SELECT userprofile.profpic FROM userprofile INNER JOIN accntinfos ON accntinfos.accntnum=userprofile.accntnum"; $result=mysql_query($query, $DBconnect); $numrows=mysql_num_rows($result); ?> …

Member Avatar for bflack
0
149
Member Avatar for chuck_dezmond

Hi everyone, im just new in php and mysql. I have a form where i add list of member details then submit it to my db and redirect it back to the same page and echo the the list of data at the bottom. but the problem is after redirect …

Member Avatar for chuck_dezmond
0
112
Member Avatar for intelgy

Hello everyone, I'm working on adding checkboxes to the edit_profile section where members should be able choose with checkboxes the multiple options of massage techniques offered... When I checked only one, either, option 1, or option 2 or option 3 I'm able to see it in the column in the …

Member Avatar for HasNor
-1
176
Member Avatar for richaell

I keeep getting this error: mysql_num_rows() expects parameter 1 to be resource, boolean given in C:\xampp\htdocs\Projeto\search.php on line 7 How do I fix? [CODE] if (isset($_POST['action']) == 'Search') { $search = $_POST['search']; require 'conf/connection.php'; $selection = mysql_query("SELECT * FROM users WHERE name '%$search%'"); $number = mysql_num_rows(mysql_query("SELECT * FROM users WHERE …

Member Avatar for richaell
0
113
Member Avatar for tuse

Hi all! I am trying to connect to a remote MySQL database in a VB.NET application. This database is located on my LAN at the address 192.168.1.2. I am using MySQL Connector/ODBC 3.51 (MyODBC 3.51) for the connection. The connection string that I am using is the following- Driver={MySQL ODBC …

Member Avatar for pritaeas
0
255
Member Avatar for felix001

Ive been developing a new website for the last few months. Initalling I configured all my databases to use the root account. Now I need to change all the passwords along with changing the web UI login. Ive tried changing the password for root within the gui but it doesnt …

0
74
Member Avatar for rotten69

I'm trying to make a table and mysql is giving me this error: [QUOTE] #1005 - Can't create table 'likes.users' (errno: 150) [/QUOTE] That would be great to see a website that explains mysql errors like this for oracle [url]http://ora-code.com/[/url] [CODE] CREATE TABLE IF NOT EXISTS `users` ( `user_id` int(2) …

Member Avatar for rotten69
0
164
Member Avatar for sidra 100

i want to increase the size of the column [CODE]ALTER TABLE employee ALTER COLUMN department_name VARCHAR(50)[/CODE]

Member Avatar for pritaeas
0
87
Member Avatar for sidra 100

hey m making a projec in one of its page i want to get the data from the table and display it on screen in the form of table. allthough the data appears but how can i display the headings. [CODE] $num=mysql_num_rows($result); print "<table width=600 border=1>\n"; while ($get_info = mysql_fetch_row($result)) …

Member Avatar for pritaeas
0
92
Member Avatar for bflack

Hey guys, Can you all help and teach me how to retrieve image file which is stored on database?.. I had an image stored on database in the column i called 'profpic'. By the way, I am needing this information for profile picture on a users page. I've started testing …

Member Avatar for bflack
0
209
Member Avatar for rotten69

Hi everyone, I have created tables and deleted some rows and then inserted new rows. The IDs of the later created rows didn't start at 0 or 1. I dropped my entire database then recreated the same one with the same tables and fields. Unfortunately, newly entered rows started from …

Member Avatar for rotten69
0
178
Member Avatar for kgizo

Hi I need to represent data from my mysql table into a graphical format. I summed all the columns I needed then I need to represent the addition of each individual column onto a graph, but I want to print the correct data onto my screen first then represent the …

Member Avatar for kgizo
0
158
Member Avatar for RazorRamon

I have a variable [ICODE]$topic = $POST_['topic'][/ICODE] that is entered by the user, it can possibly have spaces. I want to create a table based on this variable. Right now the code creates the table but only uses the first word. [CODE] $create="Create TABLE $topic (I know this part works)"; …

Member Avatar for pritaeas
0
95
Member Avatar for joy39

i am starting to learn to connect a cprogram to a mysql database. i have got this elementary program to connect to server , create a database and disconnect from it. [code]#include <stdio.h> #include<windows.h> #include <mysql.h> static char *opt_host_name = NULL; /* server host (default=localhost) */ static char *opt_user_name =NULL; …

Member Avatar for pritaeas
0
200
Member Avatar for garyjuano

i had a database with 4 column and each column has a value, below are the sample. ---------------------- col1-col2-col3-col4 -- 1------4-----7--------- 5------3----------10--- 6------------5----12--- my question is how can i get the lowest value in each row? here's an output that i wanted to get: 1 3 5 and here's my …

Member Avatar for pritaeas
0
144
Member Avatar for MeeDeggi

I need some help with radio button data and how to code it in PHP to insert the data into MySQL. Here is my [B]Form Code[/B]: [CODE]<form method="post" action="update.php"> First Name: <br /> <input type="text" name="fname" size="35" /><br /> Last Name: <br /> <input type="text" name="lname" size="35" /><br /> Phone …

Member Avatar for Red_Rain
0
217
Member Avatar for PF2G

Hi, I'm doing an app that adds info to a MySQL BD [CODE] Imports MySql.Data.MySqlClient Public Class curso_add Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click OpenFileDialog1.Filter = "Ficheiros de Imagem |*.jpg;*.bmp;*.png;*.gif" OpenFileDialog1.FilterIndex = "2" OpenFileDialog1.Title = "Escolha uma imagem..." OpenFileDialog1.InitialDirectory = "C:\" OpenFileDialog1.ShowDialog() End Sub …

Member Avatar for PF2G
0
233
Member Avatar for RockyMtnHi

I have a loop that writes out data for franchises. It works the first time through, but not the 2nd. Here is the page where the data is written out: [URL="http://184.172.137.97/~royl21st/1.php"]http://184.172.137.97/~royl21st/1.php[/URL] Here is the code that spits out the wrong data after the first successful loop. Any ideas? [code] $areaCodeData …

Member Avatar for pritaeas
0
217
Member Avatar for rotten69

Hi all, I haven't changed anything in the config file in phpMyAdmin folder. I don't know why the WAMP server gives me this error. Although everything was working perfectly yesterday. Does anyone know how I can fix this problem? [CODE] You don't have permission to access /phpmyadmin/ on this server. …

Member Avatar for rotten69
0
107
Member Avatar for Pravinrasal

hi, I developed one web application and I have created div in JavaScript and on that div I have created more than one images and when I click on save button i want to save all images on to the database and when I retrieve that image from database as …

Member Avatar for stultuske
0
196
Member Avatar for billmudry

Before I really dig in ----- HAPPY NEW YEAR EVERYONE! A few of you may remember that I have been working on producing a large wood knowledge base (woodsoftheworld.org). It is totally none profit. I am getting much closer to having enough working that soon I hope to be able …

Member Avatar for urtrivedi
1
2K
Member Avatar for PsychicTide

Hello fellow daniwebians, I seem to have run into a problem echoing MySQL/HTML and am hoping one of you may be able to point me in the right direction. I'm trying to echo portions of HTML(if there is an event for that date) inside HTML that's not echoed, so it …

Member Avatar for PsychicTide
0
150
Member Avatar for rotten69

I created a foreign key on a table just using this statement. When I wanted to drop it, phpMyAdmin didn't allow me to do so. Would anyone suggest a nice way of getting away with it? [code] ALTER TABLE `likes` ADD CONSTRAINT (fk_user_id) FOREIGN KEY REFERENCES `users` (user_id); [/code] This …

Member Avatar for rotten69
2
6K
Member Avatar for issaru07

hi everyone, i encounter problem when trying to create a form page to upload images to images folder and imagelocation will store information for the pathname where the image will be located ( will be used for display image in future) the code below does not have any error when …

Member Avatar for diafol
0
189
Member Avatar for sirlink99

I am getting an access denied error when I am writing to the database I am using this line [CODE] LOAD DATA INFILE 'upload.txt' REPLACE INTO TABLE Test FIELDS TERMINATED BY ',' [/CODE] I have made sure I allowed remote SQL, and I made sure to give the user all …

Member Avatar for smantscheff
0
88
Member Avatar for nathanpacker

Hey, I'm running a mysql query, and would like to run a script if the query returns no results. But what do I use to test for no results? Something like: [PHP] if (!$query) { do this } [/PHP] But just not sure how to implement it. Little help?

Member Avatar for BradChesney79
0
2K
Member Avatar for joy39

hi! another query! i want to insert values into the table 'employee' for the 'adddress' field in such a way that the large address comes in two or three lines like this [code] empid empname address mobile grade basic Joyban1 Joy banerjee 5/67, 1234567890 2000 10000 nehru colony, kolkata 700045 …

Member Avatar for hericles
0
96
Member Avatar for wolf29

I have a very simple wish, to dump all databases so I can lock up a backup of the databases, tables, users and so on. It looked like [CODE]mysqldump -v --all-databases -u root -p secret > "${directory2}""$h"_mysql_dumpall.sql[/CODE] worked, however the file contained a little error message telling me I had …

Member Avatar for wolf29
0
435
Member Avatar for liphoso

is it possible to move a database from one machine to another? maybe like copying the tables...

Member Avatar for drjohn
0
82
Member Avatar for gilgil2

Hi I have a database of information and the code to get that data out of the database based on the url, it will be some like [url]www.website.com/thekooks[/url] and then will display the information in the database for them. The bit I am struggling with is where do I put …

Member Avatar for phorce
0
130
Member Avatar for gilgil2

Hi, I am trying to make a link based on info stored in MySQL, the code I have got so far is [CODE] if (isset($_POST['search_now'])) { $result = mysql_query("SELECT * FROM bands WHERE BandName LIKE '%$BandName%'"); $page = "<a href=\"http://www.website.com/$row['PageName']\">$row['BandName']</a>"; while($row = mysql_fetch_array($result)) { echo 'Band Name: '; echo $row['BandName'] …

Member Avatar for gilgil2
0
150
Member Avatar for joy39

i am creating a table employee which looks like this [code]use employeemaster; drop table if exists employee; create table employee ( serial int unsigned NOT NULL auto_increment, empid tinytext NOT NULL , empname varchar(255) NOT NULL, address text NOT NULL mobile bigint unsigned NOT NULL, grade char(2) NOT NULL, basic …

Member Avatar for joy39
0
112
Member Avatar for NullReturned

So I'm having this weird issue, where I can do SELECT statements and INSERT statements just fine, but when I do this UPDATE statement, it sorta works. It runs without errors, and even outputs that 1 row is affected. But when I check the MySQL, nothing is updated. I've echo-ed …

Member Avatar for mikulucky
0
288
Member Avatar for jacob21

I need a tooltip where I can show content dynamically using (Query String [B]demo.php?id=12[/B]; id will change) jQuery, AJAX and MySQL.

0
60
Member Avatar for Octipus

All right. So i have child, parent, activity and register table and i want know how much money a parent will pay for his child if the child have 1 or more activities. So i came out with this code: [CODE]SELECT CONCAT_WS (' ', parent_title, parent_fname, parent_sname) AS 'Parent/Carer Name', …

Member Avatar for Octipus
0
218
Member Avatar for inni2626

Hello everyone, I haven been trying to connect to my database but i have been getting this error: Error message: SQLSTATE[28000] [1045] Access denied for user 'mgs_user'@'localhost' (using password: YES) Does anyone know what is causing this error? please advice thanks

Member Avatar for pritaeas
0
67
Member Avatar for peterpa

WELL I AM TRYING TO DO THIS BUT NOT GETTING ANY RESPONSE FORM SERVER DELIMITER // CREATE PROCEDURE getchgp(in ol varchar(100),in nw varchar(100),in sch varchar(100),out res varchar(100)) BEGIN SELECT pass INTO res FROM registration WHERE pass=ol AND schno=sch; UPDATE registration SET pass=nw WHERE schno=sch AND pass=ol; END // DELIMITER ; …

Member Avatar for smantscheff
0
60
Member Avatar for roottybrian

Am trying to restore a MySQL database using the 'mysql -u root db < my_db' command. In vb's process.start. it gives me the default output you get when you type MySQL - help. Can someone tell me what's up. I guess it cannot see the < symbol. Regards.

Member Avatar for roottybrian
0
116
Member Avatar for xecure

I have a database full of user. This is roughly how the database looks: [CODE]| username | sex | birthdate | zip_code | |----------+-----+------------+----------| | coolUser | M | 02-14-1987 | 90210 | | blueUser | F | 06-16-1982 | 10011 | | . | . | . | . …

Member Avatar for Sogo7
0
396
Member Avatar for sakarora

please help me..!! i urgently need a php script which would send email to a recipient if changes/insert occur in database. Details: suppose i have table name employee with fields: emp_id name email status 1 abc abc@xyz Yes 2 xyz xyz@acb NO now, say if status of emp id changes …

Member Avatar for sakarora
0
129
Member Avatar for xecure

I have a database full of user. This is roughly how the database looks: [CODE]| username | sex | birthdate | zip_code | |----------+-----+------------+----------| | coolUser | M | 02-14-1987 | 90210 | | blueUser | F | 06-16-1982 | 10011 | | . | . | . | . …

Member Avatar for smantscheff
0
184
Member Avatar for fahimcse2k9
Member Avatar for showman13

I know this sounds strange, but I messed up in a 'Manual' change to a DB table, and need to find a couple of records that I have no pathway to find... Explanation We have a member table called 'members' several different position tables, one for each level called position_1, …

Member Avatar for showman13
0
201
Member Avatar for jabeen123

if column name is course and check this column to db mysql that if course is match with text field name course so not enter this record in mysql db for exmple i m entering already csc1 course and im type csc 1 again then show message "you are already …

Member Avatar for diafol
0
78
Member Avatar for morrisproject

Is there anyway i can link a session to a particular table within my database, well i think this is how i need to do it. I have different tables which hold information for different shifts. The user selects the Site from one page, then selects the shift from another …

0
72

The End.