39,316 Topics

Member Avatar for
Member Avatar for Albert Pinto

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

Member Avatar for Albert Pinto
0
554
Member Avatar for aecha

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 …

Member Avatar for code739
0
72
Member Avatar for |-|x

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 …

Member Avatar for |-|x
0
151
Member Avatar for KeithMon

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 …

Member Avatar for diafol
0
225
Member Avatar for Japri

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 …

Member Avatar for diafol
0
106
Member Avatar for Cerb21

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 …

Member Avatar for zoreli
0
431
Member Avatar for Daddy-Dope

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 = …

Member Avatar for bonsoirval
0
325
Member Avatar for princeofpersiaa

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 …

Member Avatar for princeofpersiaa
0
339
Member Avatar for riahc3

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

Member Avatar for riahc3
0
177
Member Avatar for aderogba08

I know headers should be sent to the browser before anything is sent, so does that mean headers can only be sent ONCE?.

0
56
Member Avatar for gopi17

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

Member Avatar for code739
0
139
Member Avatar for dualzNZ

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 …

Member Avatar for diafol
0
120
Member Avatar for antwan1986

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 …

Member Avatar for jopianokid
0
4K
Member Avatar for HasNor

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 …

0
81
Member Avatar for hwoarang69

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 …

Member Avatar for code739
0
238
Member Avatar for arifsuhail1

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 …

Member Avatar for IIM
0
1K
Member Avatar for BlueCharge

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 …

Member Avatar for BlueCharge
0
265
Member Avatar for khushhappy

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. …

0
85
Member Avatar for public

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 …

Member Avatar for public
0
177
Member Avatar for unikorndesigns

How many number of elements can an array in PHP hold? like 300? 10000? or 10000000000000000000000000000000000000000000000000000000 ???

Member Avatar for unikorndesigns
0
168
Member Avatar for mariaceline_21

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 …

Member Avatar for pritaeas
0
138
Member Avatar for wandie

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 …

Member Avatar for Ami_Bogus
0
168
Member Avatar for ryanpells

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 …

Member Avatar for diafol
0
140
Member Avatar for stu7mcc

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 …

Member Avatar for diafol
0
136
Member Avatar for Djmann1013

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 …

Member Avatar for diafol
0
245
Member Avatar for ElaineTeo

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

Member Avatar for ElaineTeo
0
205
Member Avatar for ferit1223

I've just started php and mysql.trying this code to check if mysql account is correct or not. <?php $usr=$_POST['username']; $psw=$_POST['passwd']; echo ' body tag, other things and a message: Logging in! '; echo $usr; $connection = myqsl_connect('localhost',$usr,$psw); if (!$connection){ die('<p>Stopped : ' . mysql_error()); echo '<br /><a href="index.html">Retry</a></p>'; } else …

Member Avatar for ferit1223
0
96
Member Avatar for gandrap

I have problem with rewrite in .htaccess I want to this link http://www.mysite.com/index.php?lang=1 look like this link http://www.mysite.com/index And it should be for every .php file to be like that I have this so far: RewriteEngine On RewriteCond %{THE_REQUEST} ^\w+\ /(.*)\.php\ HTTP RewriteRule ^ http://%{HTTP_HOST}/%1 [R=301] RewriteCond %{REQUEST_FILENAME}\.php -f RewriteRule …

Member Avatar for gandrap
0
89
Member Avatar for Patiodude

I've recently found that 1and1, my host, doesn't allow for remote access to MySQL databases and tables, and access is only possible via a slow and cumbersome web UI. Is there any workaround? I don't want to have to spend ten minutes browsing PHPMyAdmin every time I need to timestamp …

Member Avatar for JorgeM
0
306
Member Avatar for jobber15

Hi there, first off I'm relatively new to php so please forgive me if this seems a simple request! I have an existing database and menu system which works great, but I'm trying to modify it so that I have a checkbox that I can tick to determine if I …

Member Avatar for jobber15
0
116

The End.