39,388 Topics
![]() | |
Hello Everyone, I have to create a temporary table for basket. I have to include certain fields from different table. Now I know the code to create a temporary table "CREATE TEMPORARY TABLE", is that right? But I dont know how to choose different fields from different table. Let me … | |
Hi folks I want to universal website crawler using PHP, so my crawler will work on any given site. By using my web application, user will input any site, will provide input, what he needs to get from given site and will click on Start button. Then my web application … | |
Read first row from csv file and create table automatically according to it(csv file fields) in mysql. Looking for PHP script? I have tried this. <?php $arr = array(array(),array()); $num = 0; $row = 0; $handle = fopen("./contacts.csv", "r"); while($data = fgetcsv($handle,1000,",")){ $num = count($data); for ($c=0; $c < $num; … | |
Hi I have this code and the code is working very well but I have an error : Notice: Undefined index: id in /var/www/core/myaccount.php on line 9 Here is my code: <?php session_start(); require_once('inc/config.php'); require_once('inc/header.php'); require_once('inc/functions.php'); login(); if(!$_GET['id']) { header("Location: index.php");} switch($_SESSION['id']) { case $_GET['id']: $id = $_GET['id']; $query = … | |
Hi there, totally confused and hoping someone can help. I have an existing article template which suddenly developed this error when viewing the article: Parse error: syntax error, unexpected $end in /home/classicr/public_html/components/com_cobalt/views/record/tmpl/default_record_library.php on line 324 My confusion is because I was previously using the template without errors, and to the … | |
hi sir! little bit lost here in php. Pls help! how can I add css file for may xml created from php? <?php bla bla bla..... ---------<?xml-stylesheet type="text/css" href="markers.css"?>-------how can i add this line? echo '<markers>'; while ($row = @mysql_fetch_assoc($result)){ echo '<marker '; echo 'name ="' . parseToXML($row['name']) . '" … | |
Hi, I want to do like: 1> [COLOR="Red"]browse file and upload .xls file only[/COLOR] (Not csv or other format) 2> save into mysql database. Any sample demo example?? Or link please? | |
Hello guys, i have been working on a new script that will import data from a TXT file to mysql. Using this code works ok: $sql = 'LOAD DATA LOCAL INFILE 'logons-16-12-2013.txt' INTO TABLE pcvsuser COLUMNS TERMINATED BY ',' OPTIONALLY ENCLOSED BY '"' LINES TERMINATED BY '\\r\\n''; But if i … | |
Hi when I run my code the loop doesn't stop! which force the browser to freez.I don't know what is wrong with the loop I have around 4 users only ! and my query select only one of them here is my code : $id = $_GET['id']; $sql = "SELECT … | |
To begin, I adore PHP. Wow. The "problems" with PHP is not PHP, it's me, honestly. I am having issues coding at times and a tad of frustration. But, I am receiving great results with reseach, help and hard work. My current issue is rather simple I believe but I … | |
Please check my PHP mail attachment program. its only sending the attachment not the mail body. I have tried to open the attachment but the attached files is corrupted. Full Code with JQuery http://pastebin.com/T0WtnxbT PHP mail Attachment Script <?php error_reporting(E_ALL ^ E_NOTICE); // hide all basic notices from PHP //If … | |
how to display errors in jquery dialog box...after validation.When i submit dialog box closes . | |
Hi I'm working on a function and it was working good until I had an error that tells me I should swich from mysql to mysqli so I did swich but I'm having a lot of errors ! (the function is working fine but I have a lot of errors!). … | |
i can not understand why is showing "Wrong Username or password" even i dont click the button always is there and dissapearing after user enter true username and password. if($count == 1) { session_register("myusername"); session_register("mypassword"); session_start(); if(session_is_registered(myusername)){ echo "<a id='user_login_info'><br>Welcome <font color='#00FF00'>$user</font></a>"; echo "<a id='user_login_info'><br>Username and Password Accepted</a>"; } } … | |
Hi I'm facing this error : Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in /var/www/core/inc/config.php on line 7 I've tried to replace mysql with mysqli but I faced some errors.So I decided to return to mysql but my … | |
This was part of the DB config i downloaded. $odb = new PDO('mysql: host=' . DB_HOST . ';dbname=' . DB_NAME, DB_USER, DB_PASS); When i try and add my stuff i get > Parse error: syntax error, unexpected T_STRING in /home/a4455684/public_html/config.php on line 7 This is what it looks like when … | |
Cannot add or update a child row: a foreign key constraint fails .this error occured then what can i do. | |
i have a .php class and access the file from FTP server and showing the data in table . i want to show the data of .php class on the google map when click on the marker and it will fetch the class .php on google map. How to give … | |
Hello, i want to download link's data or save its data on file how can i do that in PHP? AND for example: http://nseindia.com/companytracker/cmtracker.jsp?symbol=HDFCBANK&cName=cmtracker_nsedef.css from this link i want to store data of "Issued Cap" section but when I see this in view page source then it do not show … | |
I have three tables 1.course(c_id(pk),c_name,sem_no); 2.student(s_id(pk),s_name,user_name,password); 3.student_info(s_id(fk),c_id(fk)); i have logged in the student.. den i run this query select distinct sem_no from course,student_info where course.c_id=student_info.c_id and s_id='0001' order by sem_no; it shows all the semster he passed inclueding the running semster.. now i want to show the last value of … | |
This is my script. Previously was fine but after I change to PDO will pop up error message like this:  It's showing this two line got error: stripslashes($result->getColumnMeta($i))) . $csv_enclosed; and : if ($row[$j] == '0' || $row[$j] != '') Here is my script: if(isset($_SESSION['fromdate']) && isset($_SESSION['todate'])){ $filename … | |
<?php mysql_select_db("store"); $t="SELECT COLUMN_TYPE FROM INFORMATION_SCHEMA.COLUMNS WHERE TABLE_NAME = 'stoke' AND COLUMN_NAME = 'catogory'"; $q=mysql_query($t); while($r=mysql_fetch_array($q)) { $y=$r['COLUMN_TYPE']; $u=explode("','",substr($y,6,-2)); //print_r($u); ?> <select name="category" > <option value="">Select Category:</option> <?php foreach($u as $option) { print("<option>$option</option> "); } ?> </select> <?php } ?> | |
i have computer order for food and drink and i want if i click print button so automatic print in kitcen and bartender without i select printer manualy. how to make this? | |
Hi Guys, We are testing our site in Amazon AWS and site is built in PHP uses Apache and Mysql. My problem is i have 2 instances(say source and destination). I want to move file from source instance to destination instance(or say create a file on dest instance from the … | |
Hello mates i am having user table in my database i need php code to restrict users other than administrator to update and delete operations on my website and users should not able to access user management web page. | |
php code to block login of a user for 15 minutes after 3 failed attempts... please | |
<select> <option value="1">one</option> </select> now i want to get 1 and "one" both using php..so plz reply me | |
Hi I made a page which check the login information if it is true or not but the code didn't work there is no errors just empty page ! <?php session_start(); ?> <html> <head> <meta http-equiv="content" content="text/html" charset="UTF-8" /> <title>Login checking</title> </head> <body> <?php require_once('inc/config.php'); $username = $_POST['username']; $password = … | |
Hi there, I'm not a developer. I'm a graphics designer. I would like to learn about web development. For that I'm doing research in different languages. Most of them suggested PHP and Python. I know little about PHP. But Python I don't rightly know. Tell which one I can go … | |
$result123=mysql_query("select *from semdropdown"); <td><label for="textfield8">Semester </label></td> <td colspan="3"><select name="semester" value="<?php echo $semesterid; ?>"> <option value="">Select Semester</option> <?php while($row123 = mysql_fetch_array($result123)) { if($semesterid == $row123[semesterid]) { $selvar = "selected"; } echo "<option value='$row123[semesterid]' ". $selvar . ">$row123[semesterkey]</option>"; $selvar =""; } ?> </select> </p> <p></p></td> </tr> $result123=mysql_query("select *from semdropdown"); <tr> <td><label for="textfield8">Semester … |
The End.