39,323 Topics

Member Avatar for
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
307
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
Member Avatar for Ribamar23

Hi I'm using Auctionpress to make a ebay like website. I have over 300 categories you can list an item in. When user is listing a item it only gest a list box with all the categories..... and then has to go throught all them to find the right one. …

Member Avatar for Ribamar23
0
204
Member Avatar for my3h

Hi, I want to have multiple selection checkbox in my website, where user can check for the multiple options. But for checkbox i should get the data from the database table. $query2 = "select * from Products where CategoryID = '$CategoryName' "; mysql_query($query2) or die(mysql_error()); $array = array(); while($row = …

Member Avatar for my3h
0
129
Member Avatar for cdogstu99

Hello all, I have a wordpress site with a certain membership login plugin. When i have an expired user that logs in i get this message: (this same error repeats itself for about fifteen or so lines for pluggable-line 669, 670, 671...etc * Warning: Cannot modify header information - headers …

Member Avatar for madCoder
0
350
Member Avatar for himerus

The following script is a VERY simplified version of a script I've used to make my site more search engine friendly. To date, according to most reports, Google is one of the only search engine that will index URLs that are in the format: whatever.com/index.php?var1=value&var2=value Other Search Engine spiders may …

Member Avatar for tiggsy
0
440
Member Avatar for vindom

Hi! I have a form (which is in html(the rest of my coding done in PHP)) that prompts user to choose image, type in title and choose status and after pressing confirm button script uploads image and its details to MySQL database. I'm trying to fade whole screen or disable …

Member Avatar for vindom
0
307
Member Avatar for steven447

Hello, I have a website that uses Smarty. When I try `$oSmart->display("header.html");` I get a blank page without warnings and errors. I'v proven with `var_dump()` that the smarty object is succesfully created. I know to that the page is enterily rendered by using: echo "start"; //Smarty Stuff echo "end"; Also …

Member Avatar for steven447
0
746
Member Avatar for adsegzy

I have a popup login script in which once a visitor clicks on LOGIN link on any page, login form will popup. The script is as below. <style type="text/css"> #popupbox{ margin: 0; margin-left: 40%; margin-right: 40%; margin-top: 50px; padding-top: 10px; width: 20%; height: 150px; position: absolute; background: #FBFBF0; border: solid …

Member Avatar for moyk
0
139
Member Avatar for chris_huh

I am trying to set up a survey system. The survey questions themselves come from a database. I have created the page that pulls the questions from the mysql table into an html form but can't work out how to insert the responses into the database. I think i will …

Member Avatar for dany12
0
970
Member Avatar for uglykidjoe

I have 2 tables one storing sizes the other company names. I would like to alter my existing query to give out different results from the table depending on the product type so at the moment I have and assigning the aliases accordingly ` SELECT MAX(#__xyz_sizes.size) AS MAX, MIN(#__xyz_sizes.size) AS …

Member Avatar for Incognitus
0
123
Member Avatar for calebcook

Hi. I have been working on a project that displays data in an XML file. (It's kind of like an API). I know how to parse XML with PHP, and how to make an XML file in PHP, but they don't work together. :) Basically, I have two files: `parse.php` …

Member Avatar for Incognitus
0
230
Member Avatar for nyt1972

Hi Experts, below is my data file and I want to create form the basis of data returned by the following code. **getdata.php** <?php include ("dbConnect.php"); $examID = $_POST['examID']; $sql= mysql_query("select * from examsub where examID='1'); if(mysql_num_rows($sql)>0) { while($row=mysql_fetch_array($sql3)) { echo $row['examID'].$row['subject'].$row['thrymarks'].$row['pracmarks'].$row['subjectID']; } } ?> Below is the code from …

Member Avatar for dany12
0
161
Member Avatar for riahc3

Hey I tried to access a cookie that has a [object HTMLImageElement] but when I try to echo it, it simply prints that out: [object HTMLImageElement] I want it to display the picture. How can I do this? Thanks

Member Avatar for riahc3
0
4K
Member Avatar for vibhaJ

Hi Friends, I want to develop a website like file manager. Where user register and will get fix disk space lets say 20MB. Now user can upload their pdf, doc, txt, jpeg etc files upto their disk limit. I can develop upto this using PHP. Now my issue is if …

Member Avatar for vibhaJ
0
135
Member Avatar for riahc3

Hey When I try to interpret thru PHP, a Java web service that returns a boolean type, this error (more like a warning) pops up: Notice: Object of class stdClass could not be converted to int in C:\testing\page.php on line 29 It seems this is something PHP related. How can …

Member Avatar for riahc3
0
724
Member Avatar for BenzZz

Hi, I've just begun learning PHP and have purchased books etc and researched on websites different areas of the language however I've noticed that there is not much information available relating to the actual appearances of websites through PHP. I know the standard way is using HTML and CSS but …

Member Avatar for Ausopenxcell
0
152
Member Avatar for javacle

i'm trying to analyse this php, i noticed that whenever i enter values into textfield, like input type="text", and i retrieve the data, it is not showing in the address bar like, www.host.com/login.php?usermae="user"&password="pass". Please why is this happening, is it a new feature in php? or something else.

Member Avatar for |-|x
0
194
Member Avatar for mbarandao

Hello: Not sure if this the right forum for this question --my apology if I'm posting in error: However, I need to achieve the following implementation. I have complete php and ajax content file to outputs a multi-dropdown boxes with description to each items in the boxes. The code is …

0
81
Member Avatar for DaveyMoyes

HI everyone, I have a script running on a website that uses the facebook share.php file. <?php $title=urlencode(''.$numrows['title'].' | '. htmlentities(money_format("%10.2n", $numrows[price])).' '.$currency_code.''); $url=urlencode(''.$token.''); $summary=urlencode(''.$numrows['description'].''); $image=urlencode(''.$numrows['img1'].''); ?> <a id="button" onClick="window.open('http://www.facebook.com/sharer.php?s=100&amp;p[title]=<?php echo $title;?>&amp;p[summary]=<?php echo $summary;?>&amp;p[url]=<?php echo $url; ?>&amp;&p[images][0]=<?php echo $image;?>', 'sharer', 'toolbar=0,status=0,width=550,height=400');" target="_parent" href="javascript: void(0)"> <input type='submit' class='btn' title='Share This Item …

Member Avatar for diafol
0
926
Member Avatar for sammry

I am using the followng code, to import csv into mysql. if($_POST['sform'] == "1") { $fname = $_FILES['upload']['name']; $chk_ext = explode(".",$fname); if(strtolower($chk_ext[1]) == "csv") { $filename = $_FILES['upload']['tmp_name']; $row = 1; if (($handle = fopen($filename, "r")) !== FALSE) { while (($data = fgetcsv($handle, 1000, ",")) !== FALSE) { $row++; $data_entries[] …

Member Avatar for sammry
0
125
Member Avatar for judyhicks

i pasted this code into my child theme's functions.php file (begining on line 5, //Custom CSS styles...), which is resulting in an unexpected T_string error on my site. any ideas how to fix? <?php add_theme_support( 'builder-3.0' ); // Custom CSS styles on WYSIWYG Editor – Start if ( ! function_exists( …

Member Avatar for judyhicks
0
200
Member Avatar for mbarandao

hello: I'm pulling mysql data and want to load into an array. I getting the data in like manner: $result = mysql_query("SELECT DISTINCT item2 FROM products"); echo "var option_array = new Array(num_of_cats);\n"; $count=1; echo"option_array[0] = new Array(\"Please Select a Merchandise\");"; while($row = mysql_fetch_array($result)) { echo"option_array[".$count."] = new Array(\"--select One--\",\"\",\"\");"; $count++; …

Member Avatar for diafol
0
267
Member Avatar for DarkMonarch

hey guys, im building a small prediction software, the GUI is in PHP and i want to do the data crushing in C. (sequence, matrix and multiple variables isolation) i know the basics in C, but im no C expert. Is it possible to pass from C to PHP other …

Member Avatar for DarkMonarch
0
242
Member Avatar for Patiodude

I recently converted all my .html files to .php, and while the stylesheet they're linked to (which hasn't changed) works almost perfectly, the <h1> through <h6> tags (headings) don't work with the new .php files. The font appears the same size as the body, which is too small to be …

Member Avatar for almostbob
0
218

The End.