39,388 Topics
![]() | |
![]() | I am new to php and mysql I want to crate a query that does the update or adds a new table if it is not in database. I get on else for echo: Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home2/public_html/shop/dokumenti/up2.php on line 53 … ![]() |
![]() | Hey if anyone could help me out, that would be superb. It is probably something simple but i am always getting undefined index messages. This is the latest example. [B]Notice: Undefined index: savebtn in C:\xampp\htdocs\practice\editprofile.php on line 20[/B] And this is the php. [CODE] if ($username){ require ("scripts/connect.php"); if ($_POST['savebtn']){ … |
I need to send email from my local server.I lisent that it is possible through gmail server.can anybody tell me how can i send email from my local server throurgh gmail.I have searched on google and did not get appropriate answer.Thank you in advance. | |
I used this script to load the page but instead of loading the page it saved it as an .xls file header("Content-type: application/vnd.ms-excel"); header("Content-Disposition: attachment; filename=Sched.xls"); // Fix for crappy IE bug in download. header("Pragma: "); header("Cache-Control: "); Works no problem on my pc server running xampp>apache but when i … | |
Hi, I have a site under construction.It is not on line yet and I don't have a domain name yet. I test it with IIS 7 and works fine.Now I need a form to collect inmformation from visitors.The information should be sent to me by email. I looked at various … | |
Hi, With resources on the internet I have created two versions of a login page :- one with mysql_fetch_object and the other without it. I would like to understand which approach is a better and why. Following is the code with mysql_fetch_object :- <?php session_start(); include "dbconnect.php"; if(isset($_GET["op"]) == "login") … | |
hello everyone, i have read through other post but could not resolve my issues. i need someone to see to my code. i am trying mysql_real_escape_string for my datas. but the one without it can insert properly while the one with the mysql_escape does not. from my code, i am … | |
well here I go again it is probobly a minor mistake that I am missing, however I am having issues getting the 'description' that I have entered into my database to show up inside the div when the 'details' button is clicked, to follow are each page of code allong … | |
I am trying to send an email via php with an attchment. Before anyone suggests using pear or swiftmailer I am aware of all of them but have a host who refuses to install any of them on my clients hosting account. So I am stuck with writing this function … | |
ok I have a login form that works and checks but I can just pout in the url to go to a specific page inside of the website I am designing and get into it without logging in, how can I remedy this? I have gone through many tutorials and … | |
help please!!! i have installed xampp v3.1.0.3.1.0 it seems that my apache is not really working everytime i click once apache it turns yellow then says 9:39:44 PM [Apache] Status change detected: stopped 9:39:44 PM [Apache] Error: Apache shutdown unexpectedly. 9:39:44 PM [Apache] This may be due to a blocked … | |
Hi friends, I am struggle from last coup[le of days with this error. Error: `Forbidden You don't have permission to access /reports.php on this server. Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.` I tried to solve this by searching … | |
script in file 1 <?php // Check if he wants to register // - Make sure that param exists // - Check length if (isset($_POST['username']) && strlen($_POST['username']) > 0) { // Check if passwords match. // - Make sure that params exist // - Check length // - Check matching … | |
I am a traniee yet, and I've been working out on this code to let a member change his password using $_POST method, but i am missing something and i cant find out what it is, any quick help will be very appriciated. This is the page for form using … | |
Good Morning... I am running into an issue trying to run a table rebuilding script that I wrote, and I'm wondering if it is due to including a script that also includes itself multiple times, depending upon the results generated by the script itself... That may sound a bit confusing, … | |
Hello, I would like to know how to output potentally thousands of posts with pages. So that i can choose how many posts to display on a page and the ones that wont fit will note be generated there. instead on the bottom of the page there will appear links … | |
Hi, i want to create recent blog view, so i need to set Link dispaly into my recent blog view. | |
Hello everyone, I have a PHP form that connects to an oracle DB and should send data to the database when the form is submitted, but I can't figure out why it's not loading any of the data into the database, everything seems to be correct (though this is my … ![]() | |
hello guys how are you, i have an inquire about how can i put the adress if my adress contains php it is the link which i want to put <link>shownews.php?full=news&id_topic=$row->id_topic</link> here is my code <?php header('Content-Type: application/xml'); mysql_connect('localhost','root','root'); mysql_select_db('ahmad'); echo '<?xml version="1.0" encoding="utf-8"?>'?> <rss version="2.0"> <channel> <title>my articles</title> <description>News,social,media</description> … | |
Hi, I have been trying to create a login facility using PHP/mySQL and so far I have managed to get everything working apart from changing/updating the stored user password. The code I have used is basically just the registration script with a few changes so that it will update a … | |
I read several topics similar to what I'm asking, but none of them seemed to be very helpful to me. I have a form where users can generate codes that are stored in a column with a Unique constraint. The codes are strings with length of 7 characters. The users … | |
Hi friends, i want to redirection script for `www.xxxx.com/abc/` to `www.xxxx.com/` my website saved in **abc** folder. first i set the permenent redirection in Cpanel from `xxx.com` to `xxx.com/abc`. but i want to display onley website name..dont want to display folder. Now, i am using this code.. but not working... … | |
I have attached a require PHP to my html pages for my vertical navigation bar but now my problem is how do I do this and have the navigation menu side be side with my text? Here is one of the pages on my site, the home page works great … | |
1. <?php 2. $_page = null; 3. include(MODS_DIRECTORY."/client.php"); 4. $auth_url = "http://localhost/server.php"; 5. $data = file_get_contents(); 6. $result = json_decode($result); 7. if($result['valid'] != true){ 8. die("Invalid Key. Script Stopped!") 9. } 10. ?> I'm bit new to PHP. Could anyone please tell me what's wrong in the above code snippet? … ![]() | |
Hey guys, have a quick multiple database connection question I hope will be simple to answer. I've worked with this type of situation several times, but I must be missing something. I have a newspaper website that has 8 databases (news, obituaries, opinion, etc..) which can hold about 7 counties … ![]() | |
i have a excel file of hindi data. i want to convert in sql database what i do? please help me | |
Hello, I noticed some time ago a website that allows you to find ip of a site you want,, I searched a lot but I can'' not found code that allows you finding a ip just by typing the URL in the box. I really appreciate who can help's me. … | |
this works fine $view_query = mysql_query("SELECT ip_address FROM view"); but this query below give me a error $view_query = mysql_query("SELECT ip_address FROM view WHERE ip_address = $user_ip") or die(mysql_error()); error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the … | |
I have three arrays & i like to convert it in one multidimensional array. $array1=array('Kathy', 'Adam', 'Jenny'); $array2=array('student','teacher','driver'); $array3=array(2, 5, 8); $mix=array(); $mix['name']=array_values( $array1); $mix['profession']=array_values( $array2); $mix['SL']=array_values( $array3); OUTPUT: Array ( [name] => Array ( [0] => Kathy [1] => Adam [2] => Jenny ) [profession] => Array ( [0] … | |
Hi friends, I am having small doubt regarding redirection of my webpages. folder structure : **project/admin/** i want to redirect this to **project/admin/adminlogin.php** Please check the below .htaccess code and corect me plz. Below .htaccess file saved in **project/admin/** this path. Options +FollowSymLinks RewriteEngine On DirectoryIndex adminlogin.php |
The End.