39,316 Topics

Member Avatar for
Member Avatar for snehil_khanor

hi, php have thi svery nice function strtoime() int strtotime ( string $time [, int $now ] ) The function expects to be given a string containing an English date format and will try to parse that format into a Unix timestamp (the number of seconds since January 1 1970 …

Member Avatar for Sergey.Smirnov
0
767
Member Avatar for edmundoswald
Member Avatar for nika201

hello, I have a simple problem. I need to create a new table "smaller" using the data from an old table "larger" table. When I say smaller I mean it will have the exact structure as the older table but will have only a few records. Now, i know that …

Member Avatar for pritaeas
0
104
Member Avatar for Aeterna

can anybody help me with a mod_rewrite rule real quick? RewriteRule ^(.*) index.php?category=$1 [L] its working but my file data.php which is being loaded into index.php via jquery get isnt outputting anything and I think its being routed to index.php?category=data.php which is wrong obviously. so how can I redirect things …

Member Avatar for pritaeas
0
133
Member Avatar for phpDave

Hi, I'm trying to write a script that allows me to insert a file into MySql. I would like it to work under the user's session. I am getting error:(You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right …

Member Avatar for lyrico
0
111
Member Avatar for kamaludeen
Member Avatar for girlinthesun

I'm trying to get my Captcha to work. It works, but if the user does it correctly I want them to go to my thanks.html page, and I'm doing something wrong. Help? [CODE] <? require_once('recaptchalib.php'); $privatekey = "Private Key numbers"; $resp = recaptcha_check_answer ($privatekey, $_SERVER["REMOTE_ADDR"], $_POST["recaptcha_challenge_field"], $_POST["recaptcha_response_field"]); $to = 'myemail@myemail.com'; …

Member Avatar for girlinthesun
1
131
Member Avatar for alhindasi

PHP Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/xxxxxx/public_html/classes/users.php on line 162 PHP Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/xxxxxx/public_html/classes/user.php on line 62 Here is users.php [CODE=php]<?php class user{ var $user=array(); var $random_id; var $random_link; var $currentpoint; var $minspoint; …

Member Avatar for alhindasi
0
341
Member Avatar for komanche

I am building a website that connects to a mysql database. When I include the file that holds the connection to the database I get an error message. If I write the code in each page the connection works fine and displays records held in database. Here is my code; …

Member Avatar for komanche
0
196
Member Avatar for scarcella

I have a website which dynamically gets images and then displays it but i have sub image which has to update the main image, but this main image is a lightbox which uses href link so i am wondering if someone can show me how to update this href using …

Member Avatar for Ezzaral
0
145
Member Avatar for aitha

Hai Can any one knows how to use php badbehavior for web site security Thanks in advance

Member Avatar for chrishea
0
74
Member Avatar for Mogradjinn

I'm developing an ordering system relying on PHP and MySQL; the problem I have is essentially HTML, though, and specifically with Google Chrome (no issue with Firefox or IE). If an order already exists for a customer, items are listed with input boxes but with the maxlength attribute (a variable …

Member Avatar for Mogradjinn
0
144
Member Avatar for Craig2231

Hi guys hope your all well, im having a problem with a register page on my website, Dreamweaver is saying there are no syntax errors, but when the information gets submitted, the check page isnt doing anything :( This is the code i have: [code=php]<?php session_start(); include_once"includes/dbconnect.php"; if ($_POST['Submit']){ $user …

Member Avatar for Craig2231
0
174
Member Avatar for rokape

Hi Guys, As the title says really... Sounds simple, it is. But....! I'm dealing with huge numbers here. I'm dragging bandwidth from a logging system I am developing for a client and it returns it in BYTES... Very accurate :| This is the sort of number I'm dealing with here... …

Member Avatar for rokape
0
2K
Member Avatar for Shankye

Hello everyone .. Im learning PHP on my own .. I installed Apache on Windows XP and trying install PHP, tried both installer and manual way but its not working :( PHP scrips getting downloaded .. Can any one give me a good link for step by step installation ?

Member Avatar for Shankye
0
150
Member Avatar for cfhjag

Hi all, I basically want to create a personal (probably password protected) webspace to which I can easily save images to, similar to svpply.com and ffffound.com. The way they work is that you create an account, you get a link which you keep in your bookmark bar and when you …

Member Avatar for anandsri85
0
148
Member Avatar for severman

Hi all. is it possible to alter a form after an ajax call? what i want to do is this: i have a form with some textfields and a select box with 2 options. what i want to do is when a person chooses one option, i will unset some …

0
72
Member Avatar for mbhanley

Can anyone see where im going wrong with this code I keep hitting a brick wall with it. Its doing my head in. I think its more the sql code, It keeps showing all data instead of just showing the data based on the user_id which should be limited to …

Member Avatar for mbhanley
0
148
Member Avatar for MooGeek

Hi guys wassup? do you know how to get a time stamp like facebook? 3 minutes ago 4 hours ago 3 days ago 4 weeks ago thank you! :D

Member Avatar for madCoder
0
86
Member Avatar for jonnypixel

Hi, I have searched high and low and cant find a similar issue to what i have. I am a beginner so please forgive my clunky query structure. I am trying to: ( have attached screen grab below ) Query the [B]photos table[/B] to get the id based on category …

Member Avatar for diafol
0
156
Member Avatar for Bliksempie

Hi everyone, I have a very large CSV file. 51427 lines to be exact. I need to import the entire file into a MySQL database, however, the script times out due to server settings and slow connection (and maybe other reasons that I am not aware of). So - I …

Member Avatar for pakkupakku
0
1K
Member Avatar for imran_newid

I just want to know which is the best FREE Web Hosting provider which has max uptime (uptime really important) with cpanel, php, mysql and softachoculos. (just these I need) I want to use free address from dot.tk as my primary site address.(I already have dot.tk no problem with that …

Member Avatar for imran_newid
0
131
Member Avatar for EvolutionFallen

Hello, I'm trying to create a button that allows the user to d/l info from a DB into a CSV. The button works fine, the download window appears and asks if I want to save/open the csv file. But when the file opens, there is nothing in it, and I …

Member Avatar for EvolutionFallen
0
110
Member Avatar for scarcella

I have a website which dynamically gets images and then displays it but i have sub image which has to update the main image, but this main image is a lightbox which uses href link so i am wondering if someone can show me how to update this href using …

-1
72
Member Avatar for phpDave

Hi, I have a script that uploads images into MySQL but I am have trouble resizing the image on upload. Can anyone help? Here is my code so far: [CODE]<?php require_once('Connections/connAdmin.php'); ?> <?php //file properties $file = $_FILES['content']['tmp_name']; if (!isset($file)) echo "please select an image."; else { $content = addslashes …

Member Avatar for mbhanley
0
84
Member Avatar for sundeep_g

Hello guys any one help me in joomla. i have a problem with create an article. A new article doesn't create with media file like video, audio, flash. etc....can any one help me...... Thankyou Sundeep

Member Avatar for Kraai
0
100
Member Avatar for jogieglenmait

i have a notepad that i made into a database. i want to know if a username and a password are valid combination. but if i run it, the 10th entry, for example, gives 10 different outputs until it finds the perfect match. suggestions would be nice. <?php $user=$_POST['user']; $pass=$_POST['pass']; …

Member Avatar for jogieglenmait
0
150
Member Avatar for mbhanley

Not sure if its the sql query or what, but I have a pagination class and a function I am trying to put together if some one would be able to point be in the wright direction it will be very appreciated. :) The following is the function which I …

Member Avatar for pauper2thedemon
0
201
Member Avatar for Frankey

Hi there, i am struggling with my code to read xml with php. it is giving the following error: Fatal error: Call to a member function attributes() on a non-object on line [COLOR="Red"]red[/COLOR]. The weird part of it is that the output is good/as it should be. [CODE] if( ! …

Member Avatar for thez0mbie
0
3K
Member Avatar for attism

Hi.. I'm having problem with my website, and I just cannot figure it out what's the problem with my code. Any ideas? Thanks. [CODE=PHP] // get related files from database if ($settings['related_files'] == 1) { $related_query = mysql_query('SELECT f.fileid, f.title, f.description, f.icon, f.iconlocation, f.timesplayed from '. $tbl_prefix .'related AS r …

Member Avatar for attism
0
245

The End.