Posts
 
Reputation
Joined
Last Seen
Ranked #2K
Strength to Increase Rep
+0
Strength to Decrease Rep
-0
75% Quality Score
Upvotes Received
6
Posts with Upvotes
6
Upvoting Members
6
Downvotes Received
2
Posts with Downvotes
2
Downvoting Members
2
4 Commented Posts
4 Endorsements
Ranked #397
Ranked #914
~12.8K People Reached
Favorite Tags

53 Posted Topics

Member Avatar for gamersADDA

On line 1 you are missing another right paren ) and left curly brace { at the end of the line. if (isset($_POST["password"])) { $Email = $_POST['email']; $password = $_POST['password']; $conn = new mysqli('localhost', 'root', '', 'test1'); if ($conn->connect_error) { die('Connection Failed : ' . $conn->connect_error); } else { $stmt …

Member Avatar for effu
0
187
Member Avatar for Mike_danvers

What is it you are looking for though. Do you have a specific question? What have you tried already?

Member Avatar for diafol
0
174
Member Avatar for Linddha

Another method to use is mysql DATE_SUB() Try this method: `select * from Article where date > DATE_SUB(NOW(),INTERVAL 10 HOUR)`

Member Avatar for effu
0
219
Member Avatar for rajilakshmi
Member Avatar for effu
0
71
Member Avatar for ppetree

I remembered seeing this on another site: [url]http://stackoverflow.com/questions/255312/how-to-get-a-variable-name-as-a-string-in-php[/url] Quite a few different solutions there.

Member Avatar for jj_pix
0
212
Member Avatar for ronysios

I don't believe it will output the GW_UPLOADPATH constant when it is in quotes on line 64. [CODE]echo "<strong>gw_uploadpath with screenshot 4:</strong><img src=GW_UPLOADPATH". $screenshot."><br />"; [/CODE] Should be: [CODE]echo '<strong>gw_uploadpath with screenshot 4:</strong><img src="'.GW_UPLOADPATH.$screenshot.'"><br />'; [/CODE]

Member Avatar for ronysios
0
121
Member Avatar for Tariq12010

Check out this link for Joomla Model View Controller (MVC) tutorial: [url]http://docs.joomla.org/Developing_a_Model-View-Controller_Component_-_Part_1[/url]

Member Avatar for Tariq12010
0
99
Member Avatar for digital_plunder

It could be your SQL on line 17 of your code. Try using the word AND instead of the logical operator &&. Like this: [CODE] $query="select * from latest where username='$username' AND password='$password'"; [/CODE]

Member Avatar for digital_plunder
0
152
Member Avatar for JukesK
Member Avatar for aaloo

On line 16, you never closed out that echo statement. Change line 16 to this: [CODE] </div>"; ?> [/CODE]

Member Avatar for aaloo
-1
332
Member Avatar for drugoholic

It could be caused from your "view.html.php" file looping through your entire <table>. If you want me to check it out, post the code for that. It should be in the "views" folder.

Member Avatar for drugoholic
0
434
Member Avatar for maydhyam
Member Avatar for shailendra2614
0
533
Member Avatar for sakwoya

Do you have an example of the code? Perhaps you could put up the actual error message and the print_r($_SESSION) output.

Member Avatar for sakwoya
0
1K
Member Avatar for solidrichard

I think the last reply meant session_start(); Also, try putting single quotes around the $username variable in your MySQL select statement. Example: [CODE] $resulta = mysql_query("SELECT access FROM users WHERE username='$username'"); [/CODE] [QUOTE=solidrichard;1563824]Hi i have problem in my login code. Firts someone fill in login informations this is checking code …

Member Avatar for solidrichard
0
189
Member Avatar for revathis

Make sure they are in your http doc root folder, and then load them into your browser. Example: [url]http://localhost/first.php[/url]

Member Avatar for riya...
0
202
Member Avatar for OmniX

Depending on the quality of the site... and the experience of the person/firm designing and implementing the site. It may cost anywhere from $500 to $5,000+, in addition to a monthly/yearly fee for updates. Unless the client just wants a "dumb" site with no SEO work or design. I guess …

Member Avatar for marv36
0
214
Member Avatar for chaitanya15385

It probably is enabled, but you may have an error in your JavaScript that IE is picking up. The other browsers will sometimes be more lax in their error checking.

Member Avatar for almostbob
0
163
Member Avatar for CreativeCoding

It might be a permissions issue with the folder/directory you are randomly creating. You may need to chmod it after you create it.

Member Avatar for CreativeCoding
0
123
Member Avatar for atzaman

Check your phpinfo to see if allow_url_fopen is enabled. allow_url_fopen This option enables the URL-aware fopen wrappers that enable accessing URL object like files. Default wrappers are provided for the access of remote files using the ftp or http protocol, some extensions like zlib may register additional wrappers. Note: This …

Member Avatar for atzaman
0
299
Member Avatar for kirtan_thakkar

fgets — Gets line from file pointer string fgets ( resource $handle [, int $length ] ) Gets a line from file pointer. Example #1 Reading a file line by line [code=php] <?php $handle = @fopen("/tmp/inputfile.txt", "r"); if ($handle) { while (!feof($handle)) { $buffer = fgets($handle, 4096); echo $buffer; } …

Member Avatar for rajarajan2017
0
79
Member Avatar for Sucesso

You just need to declare that variable from the form. [code=php] <form name="word" method="post" action="notSureWhatToPutHere"><fieldset> <legend>Type your word here:</legend> <input type="text" name="enterWord" id="wotd" size="77"> <input type="submit" name="Submit" value="Submit" id="submitwotd"> </fieldset> </form> <?PHP //declare the variable POSTED from the form $word = $_POST['enterWord']; //if $word is not blank then proceed. if …

Member Avatar for effu
0
125
Member Avatar for BTW8892

You could use something like this at the end of your URL - ?player_id=1111 Example: [url]http://www.website.com/profile?player_id=1111[/url] Then in your code you would have to add: [code=php] //For the current code you have on line 18 echo "<a href='profile?playerid='".$row['player_id']."'>". $row['gamertag']. ""; [/code] For the new page where it goes when they …

Member Avatar for effu
0
87
Member Avatar for bjeffries

Are you getting any errors from PHP or mysql_errors? Have you tried turning on the PHP error reporting with: [code=php] <?PHP ini_set('error_reporting',E_ALL); ini_set('display_errors','On'); ?> [/code]

Member Avatar for bjeffries
0
88
Member Avatar for saji.ka

[QUOTE=saji.ka;580679]Dear All, I am new to PHP. I would like to include video (Flash Videos) in the website using PHP. Can u please help by giving the code. Saji[/QUOTE] Here is code from a previous project of mine. Use as much or as little as you want. The function I …

Member Avatar for MalikAamir
0
824
Member Avatar for arnoldsmith
Member Avatar for Aamit

I am pretty sure you can have only one image to submit. Here is a workaround: [url]http://blogs.translucentcode.org/mick/2006/06/19/multiple-image-submit-buttons-and-ie/[/url]

Member Avatar for digital-ether
0
121
Member Avatar for mrrsx2006

I always recommend books by [URL="http://www.sitepoint.com"]www.sitepoint.com[/URL]

Member Avatar for ExplainThat
0
103
Member Avatar for ryy705

Just make sure when you access the site use the secure prefix -- [URL="http://www.webcarpenter.com"]http[COLOR="Red"]s[/COLOR]://www.webcarpenter.com[/URL] instead of [URL="http://www.webcarpenter.com"]http://www.webcarpenter.com[/URL] Note the S in HTTPS://

Member Avatar for djnzak
0
487
Member Avatar for Kavitha Butchi

[QUOTE] header("Location: userhomepage.php"); [/QUOTE] One was to pass this variable without sessions is to use the $_GET vars... like this: [code] header("Location: userhomepage.php?passit=$passit"); [/code] Then on the userhomepage.php have some code like this at the top: [code] //userhomepage.php if (isset($_GET['passit'])) { $passit = $_GET['passit']; } [/code]

Member Avatar for Kavitha Butchi
0
223
Member Avatar for Fungus1487

Some basics that most clients request are... - Add pages easily - add/update parent menu/child menu/grandchild menu - Edit page conent (flash and html) with WYSIWIG editor OR HTML - Add/mange images easily - Manage contact form submissions - Mailing list management - Product management (if e-commerce) - descriptions - …

Member Avatar for ducdeeze
0
137
Member Avatar for stonyheng

Here is an example... could you try to be more specific? This will select records with an in_date of '%-03-18' or out_date of '%-04-20': [code] SELECT * FROM table WHERE in_date LIKE '%-03-18' OR out_date like '%-04-20' [/code]

Member Avatar for jemajoign
0
98
Member Avatar for jtapp

Another way to do the same thing: This should be in a loop when you are querying the database for each "row" of data. [code] echo ($variable21 != '') ? "<p><b>Meetings:</b> $variable21</p>" : ''; [/code];

Member Avatar for jtapp
0
116
Member Avatar for justinmyoung

You could do this, make a new field on the form that is submitting to this page. [code] $email=$_POST['email']; $query = "SELECT * FROM customers WHERE job_number='$jobnumber' [COLOR="Red"]OR email='$email'[/COLOR]"; [/code] OR Use the same field on that page, but let them know that they can enter either one in that …

Member Avatar for Fungus1487
0
149
Member Avatar for Vai

PHP might be confused by the comparison operator you are using. You could be comparing a string to an integer. 1 !== "1" true but 1 != "1" false You might try changing this comparison operator: !== [QUOTE]if ($_SESSION['level'] [COLOR="Red"]!==[/COLOR] $level) [/QUOTE] to this != [code] if ($_SESSION['level'] [COLOR="Red"]!=[/COLOR] $level) …

Member Avatar for Vai
0
114
Member Avatar for Daywraith
Member Avatar for bintang

original koneksi.php [quote] $connected = mysql_connect('localhost', 'root'); if( !connected ) { die ("Connect to MySQL Server failed"); } $retval = mysql_select_db("sarana", $connected); if (!retval) { die ("Database doesn't connect"); } [/quote] A couple changes are needed in your koneksi.php: [code] $connected = mysql_connect('localhost', 'root'[COLOR="Red"], 'password'[/COLOR]); if( ![COLOR="Red"]$connected [/COLOR]) { die …

Member Avatar for bintang
0
94
Member Avatar for supriya.iiita

Were you planning on using JavaScript, Frames, or something else? If it's just plain HTML and CSS here is one method: For musings.html 1. Copy what you have. 2. Save it as musings.html 3. Change the <!-- Main content --> section to the "musings" content. 4. Re-save 5. Repeat with …

Member Avatar for effu
0
275
Member Avatar for gpdrums

[QUOTE]How do I INSERT datetime to the MySQL db from the php login script? [/QUOTE] Assuming you have the code in place to set up the username and password vars from your form: [code] //connect to database dbConnect(); //query the database $query = mysql_query("SELECT * FROM users WHERE username='$username' AND …

Member Avatar for gpdrums
0
204
Member Avatar for swapna7999

Change this: [QUOTE=swapna7999;611999] if(empty($result)) $error["result"] = "There was an error moving the uploaded file."; [/QUOTE] To this: [code] if(!$result) $error["result"] = "There was an error moving the uploaded file."; [/code] The $result variable should be true if the file is moved successfully.

Member Avatar for effu
0
112
Member Avatar for chrischirowa
Re: SQL

Structured Query Language (SQL), pronounced "sequel", is a language that provides an interface to relational database systems.

Member Avatar for jbennet
0
109
Member Avatar for vanessia_1999

Try this: [code] <script type="text/javascript"> var txtaReceipt; var txtName; function ProcessOrder() { var txtName=document.frmMain.txtName.value; document.frmMain.txtaReceipt.value=("Welcome to Dirty Deli," + txtName + "!"); alert("hi"); <!--I am only using the alert to let me know that the page is really working, that is how I check that the page is functioning--> } …

Member Avatar for vanessia_1999
0
108
Member Avatar for tefflox

If you want it to stop after 10 add LIMIT 10 to the end of your SQL query. Otherwise it will loop through all the records.

Member Avatar for effu
0
82
Member Avatar for inshi

Please post code so we can see where the problem is. You can probably use a meta refresh or header redirect.

Member Avatar for effu
0
49
Member Avatar for rickya100

Change your code to have the From: at the top of the $headers like this. Also, removed the To: in the $headers, as it is entered in another variable in the mail() function. [code] // To send HTML mail, the Content-type header must be set $headers = 'From: admin@thinksane.net' . …

Member Avatar for rickya100
0
101
Member Avatar for veledrom

[QUOTE=veledrom;597115]Hi, I need to send a SMS message or/and Email in my database project. Which one is better option for me; Shall i create database with Oracle or MySQL? Thanks[/QUOTE] Depending on the SMS messages you are sending, it could be free. If you are sending to cell phone carriers …

Member Avatar for effu
0
113
Member Avatar for charvie

Just a tip: If you are going to use the checkboxes on each record, you cannot use another form with in that table. Start the <form> at the top and insert a checkbox on each row... then add a submit button at the to and/or bottom of the table and …

Member Avatar for effu
0
161
Member Avatar for hemgoyal_1990

If you are just trying to view the source, use Notepad, Ultraedit, Dreamweaver or any other text editor. If you want to run the file... You can set up a PHP server on your own computer/box and view the PHP with that. A simple one to implement is WAMP Server …

Member Avatar for effu
0
121
Member Avatar for kings

You may also want to check if you have an auto-prepend file set on your server.

Member Avatar for effu
0
98
Member Avatar for hemgoyal_1990

> Hi All, > I Have Some Problem with my PHP Searching Code... > I Want to Create Hyperlink of Multipul Data for Ex. :- a user Found example if this query have maney data this show as hyperlink view.... > > i am using this code....... //Set the MySQL …

Member Avatar for hemgoyal_1990
0
141
Member Avatar for dottomm

[QUOTE=dottomm;579564]Hello and thanks in advance to anyone that can help. I trying a simple password recovery script that emails the password after a registered user enters their email. For testing purposes I have been able to get the variable to display on the page after submission, but the email that …

Member Avatar for dottomm
0
1K

The End.