39,320 Topics
| |
if i have a given date so how can i find in what date sun and sat comming ... ? i store 0 for sat and 6 for sun in database. | |
hi guys working on a little basic forum for collage but i keep getting this error kinda driving me crazy i know its something small but i cant spot it. any help would be great [B]Notice: Undefined index: topic_id in /users/2014/daf1/public_html/cs1109/lab18/showit.php on line 14 Warning: mysql_num_rows(): supplied argument is not … | |
Hi, I'm using a javascript messagebox, but i'm having trouble with the delete: <html> <head> <title>AdminstraĆ§Ć£o</title> <!----------------------------------------------> <script type="text/JavaScript"> function confirmDelete() { var agree=confirm("Tem a certeza que quer remover?"); if (agree) { return true; <?PHP $del="DELETE FROM content_lang WHERE id_content = '".$row_lang['id_content']."'"; $q_del=mysql_query ($del, $connect); ?> } else { return … | |
Hi I have a MYSQL DB hosted on a Win 2003 server on my LAN and a Mysql DB on a dedicated (linux) server at our ISP. I would like to dump a few tables to a .sql file and ftp it to the server and then import the .sql … | |
Hi People, need some help Actually I wanna block an IP address from a certain country... I don't want them to access my home page which is index.php.... so I've included a file "country-redirect.php" this file is placed at beginning of my index.php.... index.php code is like <?php require('country-redirect.php'); ?> … | |
Hello everyone! I know this is very numb question. But can anyone please help me on seeking the error? I already search the error for the past few days but still cannot find where it is wrong. Anyway there is no error come when its debug but the data not … | |
Is anyone familiar with PDFlib? I'm having trouble geting it to run. Running a WAMP server, PHP 5.2.16, followed the instructions to install the appropriate version of the DSO, the PHP monitor recognises that the extension is loaded, but when I try to use it I just get undefined function … | |
I'm getting an error when I run this. I'm sure it's simple. Any thoughts? Code: mysql_query("INSERT INTO leads `facility` = '{$facility}' , `leadAdded` = '{$today}' , `updatedBy` = '{$username}' , `manager` = '{$username}' , `name` = '{$_POST['name']}' , etc... ") or die(mysql_error()); Error: "You have an error in your SQL … | |
Hello all, nice to know this helpfull forum, I'm a totally newbie and I need advice, I want to import a CSV to a table in sql, but the problem is the CSV has very strange format. ================================== Telephone,=,'88213839 Name,=,John Doe Currency,=,USD Date,Information,Source,Total,,Balance '30/04,ATM 28/04 ,'0000,000000000500000.00,DB,1.171892966E7 '30/04,DEBIT 28/04 LAWSON,'0000,000000000092100.00,DB,1.162682966E7 '30/04,DEBIT … | |
So, I am working on this site and for some reason I can not figure this out. I keep getting the error Warning: Cannot modify header information - headers already sent by (output started at /home/site/public_html/header.php:42) in /home/site/public_html/index.php on line 68 I have checked everything and maybe I need new … | |
Okay, so I'm getting a MySQL Error that says "Column count doesn't match value count at row 1". I'm not sure what the problem is. Here is the code <?php if( !preg_match( "/index.php/i", $_SERVER['PHP_SELF'] ) ) { die(); } if( $_GET['id'] ) { $id = $core->clean( $_GET['id'] ); $query = … | |
Hi guys, I have a php crop issue, I am using Jcrop (JQUERY plugin) to allow users crop their user profile picture jquery doesnt have an issue (is easy to select) but when processing image crop in PHP, image crop doesnt work and all i get is an empty page … | |
Hey I have this code........ /*MORE THINGS ABOVE*/ <?php foreach ($_options as $_option) : ?> <?php print_r($_option);?> /*MORE THINGS BELOW*/ That print_r gives me this (the first time around, other times its the same but it just gives me different Xs and Ys which is expected): Array ( [label] => … | |
I know headers should be sent to the browser before anything is sent, so does that mean headers can only be sent ONCE?. | |
hey guy, i need some help in reading a file across my network... this is what i did... $myFile = fopen("\\10.102.216.129\backup\Gatepass\Gate_Pass.csv",'r') or die("cannot connect"); $rows = file("$myFile")or die("cannot connect"); but each time i'm getting an error : failed to open stream: No such file or directory can someone help me | |
Hi all i am a bit stuck lol I am trying to get the file extention from a url say yoursite.com/file.zip in the data base the full link will be there, i am looking for a function that will take the full url take ".zip" and then will output "(file … | |
Hi everyone and thanks for reading. This problems been driving me nuts for the last day and I'm completely stuck. I made a dummy table of users to test out SQL connections but everytime I echo out the information, it keeps dropping the first record, and jumps straight to record … | |
Dear experties, i got bad new.. and biggest problem when my system is not stable after go live.I'm using PHP. My system not catch the information that entered by user correctly. I don't know why.. Which part actually I need to check? somnetime it work ok but sometime it work … | |
tring to create a website where user can upload image. i have 2 database 1-user(database) 1- which has user_id, email, passwod 2-image(database) 2-which has image_id, user_id, image(store image here), image_name ...etc on upload.php page user has to fill this form hit sumbit. and it will run php code on upload.php … | |
Hello, I know very little about programming, means what ever learn, i learnt it from the you tube, so in order to explain my problem i am writing every thing so when i get the reply i can understand it. first i try to download apache, mysql and phpmyadminn but … | |
Hello, Basically, I am trying to loop though an OPF document which is an XML document to link 2 children of different nodes together. If I do not use an if statement in the second for each loop, I can display all children from <manifest>, however I need the if … | |
Dear experts, I am having a problem with my query as i am working in php myadmin sql . **Problem:-** Actually i want to show the record of fill and unfilled i.e NULL values in the table but only the record with the id is shown leaving the NULL fields. … | |
I'm trying to set up a GPT-site. When I want to test the redeem method, I get the following error: > Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in (blabla-link, not imporant)/redeem.php on line 39 I've tried some stuff, but nothing seems to be working. Does … | |
How many number of elements can an array in PHP hold? like 300? 10000? or 10000000000000000000000000000000000000000000000000000000 ??? | |
help im getting this Deprecated: Assigning the return value of new by reference is deprecated in C:\xampp\php\PEAR\Config.php on line 80 Deprecated: Assigning the return value of new by reference is deprecated in C:\xampp\php\PEAR\Config.php on line 166" <?php error_reporting(0); ini_set('display_errors', 'On'); //ob_start("ob_gzhandler"); error_reporting(E_ALL); // start the session session_start(); // database connection … | |
Can someone please help me I have made an example, of an cookies I have added a value 45 but i have created another page that displays. This prob is when i run the code that has the value 45 its suppose to give me a blank page byut i … | |
I am sure I just cannot get the syntax correct. I have a table that is populated with names from a database. I want to make it so when the user click the hyperlink uses the link in the database to direct the user to the new page. Once on … | |
Hi, I have a backup script for a reseller hosting account. The idea is that all the accounts in a reseller account can be backed up every day to an external server. The only problem is the scripts seems to start backing up all the accounts at once. Is it … | |
What is wrong with this signup code? > process.php: <?php $host=""; // Host name $username=""; // Mysql username $password=""; // Mysql password $db_name=""; // Database name $tbl_name=""; // Table name // Connect to server and select database. mysql_connect("$host", "$username", "$password")or die("Cannot connect to server. Try again later."); mysql_select_db("$db_name")or die("Cannot connect … | |
if(empty($_POST['txtEmail'])) { if (!mysql_query($sql,$con)) { die('Error: ' . mysql_error()); } $page='SignUp.php'; header('Location:'.$page); } else { $page='SignUp.php?emptyusr=1'; header('Location:'.$page); } |
The End.