39,402 Topics
![]() | |
Hey there everybody! Me and a couple of others are currently making a CMS but we got a problem :( Here is the code: [code=php] function ImportSQL() { $conn = mysql_connect($_POST['host'] . ":" . $_POST['port'], $_POST['user'], $_POST['pass']); mysql_select_db($_POST['vision_db'], $conn); $db_content = @file_get_contents("../sql/Database.sql"); $query = mysql_query($db_content); if(!$query){ return mysql_error(); }else{ return … | |
ex: If user=1 send to user1.php page or if user=2 send to user2.php. else redirect to user page login page. ![]() | |
Hello. I am designing a php forum but one of the things i can't seem to work out or find is how you do the icons on the left side such as 'New' 'No new posts' etc. What i can't work out about it is how you tell php if … | |
I have a page I am putting together that has a drop down box, and allows me to choose an item from the drop down, and then it queries the database matching from the drop down to a table field and then grabs all database entries that match. That part … | |
Hello, I am wondering, is there any way to create a form inside of a php page? If so, how? thanks, -l. | |
I created a php script: [ICODE]#!/usr/local/bin/php <html><head><title>PHP Test</title></head> <body> <?php print( "Hello World<br />"); ?> </body></html> [/ICODE] created an htacces file [ICODE]AddHandler cgi-script .php DirectoryIndex index.html index.php [/ICODE] changed the permission [ICODE]chmod 711 hello.php chmod 644 htaccess [/ICODE] This does not work: [url]http://xyz/~username/hello.php[/url] By making the hello.php to hello.txt the … | |
Can somebody plz tell me why this function of php now() doesn't work properly. Someday it doesn't work properly like I have date validation that compares two dates one of server and another of user given date. But today it doesn't compare so results were null. So can anybody tell … | |
Here is the code that counts all the image files from a group of folders in the binary folder. The problem is that when it counts the file, if i have 1 file in the first folder(88x31) and another one in a second folder (120x60) it will count 3 instead … | |
Hello, [LIST] [*]I want to protect my external javascript(and css also) from outside people, who steal my javascript. [/LIST] [LIST] [*]but this is impossible using client-side language. [/LIST] [LIST] [*]so can anyone tell me a method to [B]hide external javascript(and css) by using sever-side language???[/B] [/LIST] thank you | |
I am new to PHP so please explain to me like you would to a child ^_^. I am trying to write a simple php script and keep getting this error: Parse error: syntax error, unexpected T_STRING in /home/alertsfortraders/www.addictedtotrading.com/wp-content/plugins/exec-php/includes/runtime.php(42) : eval()’d code on line 14 [code=php] <?php $wpusername = $_POST['wpusername']; … ![]() | |
Hi everyone. I am trying to figure out if it's possible to write a PHP or JavaScript that changes the background image every time the browser refresh button (or F5) is pressed. I haven't seen it done this way, however I have seen it done for banners and other images. … | |
Hi, can you pl help me on the submission of a form when submit button clicked the form content have to send as a mail. | |
![]() | Hey everyone I'm new to php and I was wondering what does the * mean in php? I tried to search for it on google but it searches for anything if I put in a * Is that what it means in php? anything? ![]() |
I want to Learn PHP and MySQL, plz tell me from where I have to start and is there any good software for php and mysql sites creation ? | |
Hi, I'm creating an upload section that limits users to upload the following file types: .pdf .zip .rar .doc .jpeg .gif When getting the type for .pdf files, it comes up as: application/force-download and for .rar files it comes up as: application/x-download If I do a check that says: if … | |
I'm creating a control panel and am currently developing the user authentication system. Is using php sessions the most secure method of doing this? I know I can't use SSL encryption or any of those fancy things because not only does it cost more money, but I'm going to use … | |
Below are the codes for viewing the database and updating the database.... There are some errors which i m not understanding and i am confused... Please help me out Code for viewing the database is below. [[CODE]<html> <body> <?php $con = mysql_connect("localhost","root","manish"); if (!$con) { die('Could not connect: ' . … | |
I have adauga_tablou_db.php who contain this php script: [CODE]<html> <head> <link rel="stylesheet" href="/style/MYSTYLE.CSS" type="text/css"> <meta name="verify-v1" content="52vQ/BcSvsm6MlAsynpikrmlr2b9x0Q5Xam38QWYKcc=" > </head> <body> <table bgcolor="#ffffff" width="100%" height="100%" align="center" border="0"><tbody valign="top"><tr><td width="100%" height="100%" align="center"> <form name="formular" action="adauga_tablou_db.php" method="POST"><table><tbody valign="top"><tr><td><p>Nume tablou</p></td><td><input type="text" name="nume_tablou" /></td><td></tr> <tr><td><p>Numar inregistrari</p></td><td><input type="text" name="numar_inregistrari" /></td><td></tr> <tr><td></td><td><input type="submit" name="adauga_tablou" value="Adaugă"/><input type="reset" name="reset" … | |
i have write a html code in dreamweaver i just make built in table in a form, by 4 coloumn and 2 row 1st row for the titling of part in row below each coloumn of second row containing 3-4 radio button that each radio button representation a value number … | |
I am looking for away to Generate Name a from Text Document on Server. Example would be: If I save a text document in the server like at [url]www.example.com/txt/names.txt[/url] How would I be able to generate 1 name at random? | |
1) Simplicity. Mysqli is object oriented. It's simple to use. You create an object and pass your database information to the constructor. And you're all set. [CODE] $mysqli = new Mysqli("localhost", "username", "password", "database"); $query = $mysqli->query("YOUR QUERY"); $row = $query->fetch_object(); echo $row->result; [/CODE] 2) Speed. Mysqli is newer and … | |
When members upload a picture to their profiles if the extension is .jpg, or .png everything is fine; however, if the extension is all uppercase .JPG or .PNG, the photo still uploads but doesn’t display. What could be causing this? I’ve pasted some code below but I’m not sure if … | |
hello pls somebody help me with this,i am trying to use a session to insert in to the database a user_id of a user who is posting a topic in to the topic table to act as a foreign key in the topic table. but i kept getting 0 in … | |
I've just launced a site and members sign up and create profile pages. We are discovering if they type the "&" symbol and/or other symbols like "<" it results in a catchable fatel error when you try to go to that members profile page. Please Help! | |
hi all, i had a php page which contains a list of images in a table. When i click on submit button i those values should be inserted into database. I need this by using ajax. I had tried something but i am not getting values inserted into database. so … | |
We have three different accounts on our website that members can sign up to but one login page. How can I set it up so when a user logs in they are taken to the correct account based off their user id? Right now when someone logs in they are … | |
I am having a problem with uploading an mp3 file on my site. It works fine in firefox but not in IE and I cant figure out why. Here is the code i have in the tracks.php file: [CODE]if(Footprint::$Errors->Count() == 0 && $inpAction == "Upload") { //create new track Footprint::$DB->SQLCommand … | |
I am looking job board php script...any one know please, must be free... Thanks! | |
can anyone tell me how to use the Select = "selected" option for a simple dropdown. for example when someone chooses c it will have a code like <option selected="">c</option> (am I doing it right, well if you got a firebug some site with dropdowns offers that option) so can … | |
Hi, I need help passing variables in php. I have an html page describing a job with an id number(jobdescription.html). -when the user clicks on a submit button, I want to open another html page (jobsubmit.html) with a form and have the job id autofill into a form field named … | |
Hi, I have a small question. I am developing a php code and it has nested if else statements and it has like 7-8 nested if and else statements. I am looking to reduce the nested if else to reduce the complexity of understanding the code. Is there a better … | |
Sorry not to formely present my self but I'm in need. I need to insert the following code: [CODE]<?php readfile('http://output94.rssinclude.com/output?type=php&id=136641&hash=61b747f31efc47d0a66790b2fe8d8f1b')?>[/CODE] on my web site it is a php code rss feed. Problem is I am using xtreemhost.com for my hosting and they support php but not this exact code for … | |
Hi everyone, So i have the following code which is used so i don't have to have .php at the end of my files and also more importantly to view members profiles by having there username after my domain. Unfortunately if the user has a space in their name you … | |
Hi There I may be asking a question about something that is not do-able, but, here's my question Does anyone know if it is possible to let a visitor to my website upload a file to my server, without using the normal form file upload? maybe upload with ftp. I … | |
Hello everyone, I am doing a login form in ExtJS + PHP, but it does not work. (authentication failed each time) . Here's the code: ExtJS part: [CODE] <script type=text/javascript> Ext.onReady(function() { Ext.QuickTips.init(); var loginForm = new Ext.FormPanel({ url: 'login.php', title: 'Login to goodTalk', frame:true, bodyStyle:'padding:5px 5px 0', width: 252, … | |
Hi all, I'm hoping I'm posting this in the correct forum. I'm working on a project where a user purchases a downloadable item via Paypal. Once the user has made the purchase, he or she is return back to the site where the purchase is recorded to the database. Everything … | |
Hey guys, i've been having a go at / learning some php for the last 4 weeks or so. its been really interesting. ive however hit a problem that i cannot find a solution to. Here is the website in question http://apnb.du-z.com/ every sixth or so refresh in the 'Hot … ![]() | |
this probably has a simple solution but i cant seem to see whats wrong with it [CODE]<?php //Form Data //error seems to occur here echo "<h1>Registration</h1>"; $submit = $_POST['submit']; $fullname = $_POST['fullname']; $username = $_POST['username']; $password = $_POST['password']; $repeat_password = $_POST['repeat_password']; if ($submit) { } ?> //between these two points … ![]() | |
fck editor image upload failing in my server. images are not uploading. but it is working in my localhost.....plz tell me what to do? | |
So basically, as soon as my page loads I need to have a pre-loaded date to my drop-down boxes and in my textfields that came from my database as you will see if you go over my code. My drop-down boxes are auto-filled with the months-days-years because of my javascript. … | |
Hi everyone, have visited the site a few times as a lurker and found answers to most questions. At the moment I'm stuck with a piece of code, I can't see why it won't work. The page below has the variable $Repair_No posted to it from another page, the code … | |
Can anyone tell me the upload script using mysql and php. Also can we insert images in mysql database? | |
well i ve been trying to format my email form from a few days... how do i bring the form to the center of the page? | |
hi guys,.need help.. want to have a simple bar graph in html/php that should display the basic legends, -x and y data -graph title -x and y ranges.. please help..tnx in advance ^^ | |
I have a number of text files each with 4 pieces of data on each line: name, date, time and comment. I have used $fh to open and read the data and put them in 1 long variable called $AllComments. I then need to sort them by date and time … | |
Let's say a user submitted some information through a form into a MySQL database. The data was timestamped. The user is given a certain number of days to submit an additional chunk of data into the database. If he doesn't submit it by the required date, an email has to … | |
Hi all, My site is on dedicated server by fasthosts.co.uk. i get email from host server that my site has been placed on the Spamhaus SBL. below is the content for that: [CODE] >> Web bot: port 80 >> IP address 217.174.241.205: on fasthosts.co.uk/live-servers.net >> Canadian Pharmacy spammer[s] are using … | |
I have problem with my mini blog since 2 days until now [URL="http://blog.soccerass.com/"]http://blog.soccerass.com/[/URL] Here the latest error log --> [B][Tue Aug 03 03:51:43 2010] [crit] [client 87.250.254.243] (13)Permission denied: /home/socc*****/public_html/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable [/B] I have 2 domains called soccerpropick.com and soccerass.com both … | |
Hi, i have made a rss feed that automatically updates, what i done use php to grab information from the database as new content is added in xml. Everything seems okay but when i click subscribe to rss feed it displays "Failed to load feed". My extension is .php is … | |
Hi All Hope You All Are Fine And Happy... i am here in search of solution to my problem... i want to use yahoo tab view in my blogspot... blog Add This Script in the head tag [CODE]<link rel="stylesheet" type="text/css" href="http://yui.yahooapis.com/combo?2.7.0/build/tabview/assets/skins/sam/tabview.css"> <script type="text/javascript" src="http://yui.yahooapis.com/combo?2.7.0/build/yahoo-dom-event/yahoo-dom-event.js&2.7.0/build/element/element-min.js&2.7.0/build/tabview/tabview-min.js"></script>[/CODE] In Body tag : [CODE]<body class=yui-skin-sam> … |
The End.