10,940 Topics

Member Avatar for
Member Avatar for vestervang

I'm trying to make my first gallery with PHP and I'm having some problems i can't solve. My code looks like this: <?php include_once('config.php'); //Script der uploader og omdøber billeder if(isset($_FILES['billede'])){ $errors = array(); $allowed_ext = array('jpg','jpeg','gif','png', 'bmp'); $file_navn = $_FILES['billede']['name']; $file_ext = strtolower(end(explode('.', $file_navn))); $file_tmp = $_FILES['billede']['tmp_name']; $file_size = …

Member Avatar for vestervang
0
275
Member Avatar for rayidi

I want to store my array into my database using jQuery. Here is my code i'm using serialize(); function. Its storing correctly but when i unserialize(); nothing happening. Please help here is my code. <script> $(document).ready(function(){ $("#save-skills").click(function(){ var skills = $('input[name="skills[]"]').serialize(); console.log(skills); $('#loading').css('display', 'block'); var queryString = "skills=" + skills …

Member Avatar for diafol
0
213
Member Avatar for branding4you

Ok so now I am stuck, I looked at the http://www.daniweb.com/web-development/php/threads/326436/php-read-text-file-and-save-into-databse page and understand some of it, Yet it is not what i require, substring does not count like I thought it would, like the left, right mid commands in excel. I want to count to the data I want …

Member Avatar for branding4you
0
783
Member Avatar for mikeandike22

I have seen a couple solutions to this problem but none have worked so far. here is the error. [B]Fatal error[/B]: Call to undefined function mysql_connect() in [B]C:\wamp\www\login.php[/B] on line [B]12 [/B]and the code [PHP]<?php // connect to the mysql server $link = mysql_connect(localhost, root, admin) or die ("Could not …

Member Avatar for ashishanand
0
4K
Member Avatar for Yorkiebar14

Hello, I am making a website to do with different tests so I need a script which can unlock test 2 after test 1 is completed. Then the same for 3, then 4 etc etc. I tried using MySQL to increase an INT so I could tell what the latest …

Member Avatar for Yorkiebar14
1
303
Member Avatar for SaaDwTk

How do I do that using SQL queries? I need a code to do that: For every "Name" on "names" column on DataBase, do this: { name: 'NameX', data: [Value from name X] } I need a code to display in categories, all names that theres in the "names" column …

Member Avatar for pritaeas
0
75
Member Avatar for maki.tabasa

i have this main_login.php code <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <title>Untitled Document</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> </head> <body> <table width="300" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#CCCCCC"> <tr> <form name="form1" method="post" action="checklogin.php"> <td> <table width="100%" border="0" cellpadding="3" cellspacing="1" bgcolor="#FFFFFF"> <tr> <td colspan="3"><strong>Member Login </strong></td> </tr> <tr> <td …

Member Avatar for Will Gresham
0
259
Member Avatar for Arjun_Sarankulu

I have a crontab job in which data from csv file get insert into mysql table at regular interval. Now i want the same table data to be inserted in ms sqlserver database. I know i can write code again to take data from csv to ms sqlserver database. But …

Member Avatar for rayidi
0
145
Member Avatar for davy_yg

Hello, I am trying to migrate sql file from one computer to another computer. And while trying to import the sql file these error appears why is it? I am trying to migrate sql from Joomla. Pencarian SQL: -- -------------------------------------------------------- -- -- Table structure for table `nafqc_usergroups` -- CREATE TABLE …

Member Avatar for davy_yg
0
288
Member Avatar for Shodow

Is this possible? Insert Into Customer(CustomerID, CustomerName) Values('6','test') on DUPLICATE key Update CustomerID='Select Max(customerID)+1 from Customer'

Member Avatar for adam_k
0
52
Member Avatar for PeteB247

Hi, I am currently undertaking an assignment for university. I've having quite a bit of trouble with this seemingly simple task, which is to import the data from 2 .txt files into 2 tables within an sql database via python. Here is what I've done so far. This subject is …

Member Avatar for woooee
0
2K
Member Avatar for ratanji

when new row inserting into mysql, then i want to dislplay some popup notification for few seconds in some page. so pls help me anyone ? thanx in advance :)

Member Avatar for rayidi
0
699
Member Avatar for xxy2j

I created a file in php and under this i wrote a code to lock a table with read mode. Below that file i wrote a insert operation into the same table, but as we know that read lock only supports read operation, meaning you can only view what is …

Member Avatar for diafol
0
140
Member Avatar for johnef_sh

hay how is everybody here, I have this form which should sign up users and send email to them to confirm they emails the users sign up OK but the Email don't go at all to the users email see my code and please need help on this. <?php if(isset($_POST['submited'])) …

Member Avatar for johnef_sh
0
252
Member Avatar for jordo76

hi guys i keep getting this error message 1046 - No database selected select configuration_key as cfgKey, configuration_value as cfgValue from configuration DATABASE_TEP_DB_ERROR and also at the end of the insulation i get this message any help please its doing my head in Warning: mysql_num_rows(): supplied argument is not a …

Member Avatar for LastMitch
0
279
Member Avatar for ismael ahm@d

i have three db tables products product_id- Name 1 | hairoil 2 | lotion 3 | cream Countries country_id- Name 1 | UAE 2 | France 3 | UK Now i wanna that when select multiple countries for one product from Html form, then in third db table should insert …

Member Avatar for ismael ahm@d
0
9K
Member Avatar for HunainHafeez

guys, i developed Students alumni project,in php + mysql where students registers and check their online status and view his academic records, i completed evaluated my project on local host, WAMP(apache), and my project worked fine, all db connection, data access everthing is fine on local host but on Online …

Member Avatar for HunainHafeez
0
211
Member Avatar for nit8899

I am getting this error "Fatal error: Call to undefined function mysql_connect() in /var/www/html/test1.php on line 8" for the following code: <?php $host = "localhost"; $user = "user12"; $pass = "34klq*"; ini_set ('display_errors', 1); $r = mysql_connect($host, $user, $pass); if (!$r) { echo "Could not connect to server\n"; trigger_error(mysql_error(), E_USER_ERROR); …

Member Avatar for nit8899
0
1K
Member Avatar for ajay.motah

hi all, i am actually working on a project. But the mysql_real_escape_string() is not working on my php5 codes. Can anyone suggest me an alternative to avoid sql injection, plz! Thank you!

Member Avatar for iamthwee
0
111
Member Avatar for mionazraelmiranda

How can I avoid negative numbers from being inserted in my database table? i have a code that works but will not prompt until the value itself in the table is below 0. $nega = mysql_query ("SELECT * from `bgl` where product_code = '$product_code' and stock > 0"); $row = …

Member Avatar for mionazraelmiranda
0
231
Member Avatar for edsweng

Is it possible to embed variable in longtext data field? **For instance:** the field name is "description" and it contains... The date is $date_var. **In PHP/MySQL Query:** $date_var = date('m/d/Y'); echo $row['description']; **The output should be:** The date is 10/14/2012. please advise.

Member Avatar for edsweng
0
106
Member Avatar for bluecloudburst

I have admins who can login to view employment applications. I'd like to have a column which indicates the application has been reviewed by each specific admins. Session variable is holding the admin's login user_id. Is it possible to use one query to select and display list of applicants, plus …

Member Avatar for bluecloudburst
0
108
Member Avatar for Shodow

how can i change the value of data in crystal report base on the selected item in listview? i am using mysql and visual studio 2012

Member Avatar for Shodow
0
908
Member Avatar for carmzy

hi...I need some help from you guyz. I'm still begginners on database design. I was ask to make an inventory system database. what are the tables that I need to build?. So far, these are my tables that i make.but i think this is wrong.and i am confuse on this …

Member Avatar for Dili1234
0
3K
Member Avatar for azegurb

Hi all. i would like to have fulltext search in my news site. I have added fulltext to the **text** column in my news table. but though it cannot grab two or more phrases at a time from database. the engine is MyISAM. what might be the problem? if possible …

Member Avatar for azegurb
0
133
Member Avatar for yeeitsneo

i have a problem with editing and updating my data on my database. i cant pass or echo the data from the database into text boxes. heres the php script. // this script is for displaying the information oof the logged in member. and contains the link to edit the …

Member Avatar for mmcdonald
0
294
Member Avatar for Ctechnology24

I know that its very simple to save an image source in a MySQL database but my problem is that how can I save an image source and add it to my project's resources so that I can call it easier even if I transfer my Application to other PC, …

Member Avatar for Ctechnology24
0
289
Member Avatar for yeeitsneo

there seems to be a problem with adding records to my database. heres the code. //this redirects the logged in user to the create php whereas the idnum of the user is already //echoed in a textbox. <?php $result1 = mysql_query("select * from info where idnum = ".$_SESSION['valid'],$conn); while($row = …

Member Avatar for HunainHafeez
0
216
Member Avatar for handry.wiranata

i've problem with login, if login always appear error 1.Warning: mysql_num_rows() expects parameter 1 to be resource, boolean given in.... 2.Warning: mysql_fetch_array() expects parameter 1 to be resource, boolean given in.... coding php: <?php include ("config/koneksi.php"); include ("config/library.php"); $pass = md5($_POST['password']); $login = mysql_query("SELECT * FROM user WHERE id_user='$_POST[username]' AND …

Member Avatar for Bachu
0
211
Member Avatar for mrabrar09

Hello Everyone... Am little bit confuse whether this post is come under Jsp or MySQl... but am posting in JSP because am thinking that it jsp..not Mysql query I created one report but the report is not coming perfectly so i need your help My actual report format is like …

Member Avatar for mrabrar09
0
218

The End.