39,320 Topics
| |
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: ![c3e8a4ba0737f3f2c3b274bd177d4fc3](/attachments/large/3/c3e8a4ba0737f3f2c3b274bd177d4fc3.png "c3e8a4ba0737f3f2c3b274bd177d4fc3") 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 … | |
Hi I woluld lik to add date in my script. The date should not display just write it in my ip.txt like lis ip-Date <?php $ip=$_SERVER['REMOTE_ADDR']; $date= new DateTime("Y-m-d H:i:s"); $file = fopen('ip.txt','a+') or die("can't open file"); fwrite($file,$ip."\n"); echo "Your IP Address Saved: $ip\n"; echo $date->format('Y-m-d H:i:s'); ?> | |
Hi I'm working on a registration system and I've faced a problem with checking if the email is already inthedatabase this is my checking code $sql = "SELECT * FROM users WHERE email='".$email."'"; $result = mysql_query($sql); $row1 = mysql_fetch_assoc($result); $row1['email']; if($email = $row1['email']) the problem is that when I put … | |
Hello, guys.. I am actually working on a project. I can't figure out how to limit the displayed content on a table of a particular data. I have a table (tblservices) that have fields (service_id, service_name, service_content, date_created).. *the service_name* is the title of the service, *service_content* is the whole … | |
how to insert date in table by using datepicker jquery? my jquery code is as: <script language="JavaScript" type="text/javascript"> $(function() { $( "#date" ).datepicker(); }); </script> in html <tr colspan="2"> <td valign="top" align="left"> Date<font color="red">*</font></td> <td valign="top" align="left"> <input type="text" id="date" name="date" value="" readonly="readonly" autocomplete="off" size="20"> </td></tr> | |
Hi, i'm trying to select two values from my database. $nc ='North Carolina'; $t ='Hello'; $q = 'SELECT COUNT(state, title) AS c FROM all WHERE state = "' . mysql_real_escape_string($nc) . '" AND title = "' . mysql_real_escape_string($t) . '"'; $rq = mysql_query($q); $fetch = mysql_fetch_assoc($rq); $count = $fetch['c']; echo … | |
hello Dany web friends how to use cookies session in php, how to insert cookie in database table to rember user, i would like to rember what page a user viewed on my website... and i think i can use cookie for SESSION but i don't know how to use. | |
| I made a new MySQL table in Phpmyadmin in Wordpress in the same database from Wordpress but a new table. I want to make a new page and add a script in the body that allows: 1. when i insert the page title to the new page, the script should … |
Hi I have a problem with uploading files in php, and I don't know what is wrong :( this is my code : <?php //require_once('inc/config.php'); ?> <html dir="rtl"> <head> <title>تسجيل شركة جديدة</title> <meta http-equiv="content" content="type/text" charset="UTF-8" /> </head> <center> <form action="register.php" method="POST" enctype="mulipart/form-data"> <input type="text" name="username" placeholder="اسم المستخدم" /><br /> … | |
Below are 2 functions that will handle the Query and rending of the menu from MySQL Database. This function Loops through the array. Takes in 2 arguments. function loop_section($array, $parent_id = 0){ echo '<ul>'; foreach($array as $section){ echo '<li>'; echo $section->section_name; echo '</li>'; } echo '</ul>'; } This function handles … | |
Create a username that's at least 6 characters.It may include uppercase and lowercase letters. Usernames are case-sensitive. It also must include either:at least one number; or one of these symbols:_@/- | |
regular expression that accept only letters OR numbers. | |
hello can i have featured content slider dynamilcally??? if yes thn how??? |
The End.