-
Content Count
10 -
Joined
-
Last visited
Posts posted by sagoral
-
-
-
I'm a fan of PHP too.. Sometimes I hate PHP because i get unidentified errors a lot especially on mysql queries.. Maybe the problem is phpmyadmin.. What can i say i dont know..I started with PHP4 and waiting PHP6.. Lets see what will happen in the future,Regards
-
For Login System read this article: http://forums.xisto.com/no_longer_exists/ Excel: http://www.ibm.com/developerworks/opensource/library/os-phpexcel/
These are enough and good articles -
Simple and easy for modification, PHP script for SMS sending through HTTPhttps://sourceforge.net/projects/send-sms-script/
I examined this script and i really like it. It's simple and easy to use. And it cost 0,06 Euros for per sms(For Turkey. It can change according to your country..)
-
Okay I understand, its getting the last id of auto_increment column.
-
You have to check with isset() that the post has sent? And then you can check the fields width empty() function..
You can use more advanaced algorythm future.. But start with this.. Then develop this
You can find a lot of source about Ajax Vaidation on the Google.Com... I have wrote an article on Ajax Validation but you wont understand it.. Its in Turkish
I want to tell why its not working<?phpinclude("global.php");$username = $_POST["username"];[b]$dsiplayName[/b] = $_POST["displayName"];$pass = $_POST["password"];$pass2 = $_POST["password2"];$age = $_POST["age"];if($username==NULL || $[b]diplayName[/b](you wrote $dsiplayName)==NULL || $pass==NULL || $pass2==NULL || $age==NULL){ echo "Fine"; // You said that if the fields are empty echo "Fine". So, you should change the conditions place }else{ echo "Username not entered";}?>
Notice from rvalkass:
Posts merged and code tags added around code.
-
You can get the last id by using the mysql function mysql_insert_id "http://dev.mysql.com/doc/refman/5.7/en/getting-unique-id.html;
Here is a sample code using the function.<?php$link = mysql_connect('localhost', 'mysql_user', 'mysql_password');if (!$link) { die('Could not connect: ' . mysql_error());}mysql_select_db('mydb');mysql_query("INSERT INTO mytable (product) values ('kossu')");echo mysql_insert_id();?>
This is what i want exactly.. But i want to ask a question about using this function: Do we need to name column as "id"?
or never mind i will try it then i'll see
Thank you,
-
Don't use an asterisk (*) when you only want one column (the ID). Secondly, use the LIMIT clause to retrieve only one entry, not every single entry within the table.
Thanks for your interesting but i know these... I chose the short way while writing my message
-
Hi,
I want to get last data id after i inserted a new row.. I can do it with this code:mysql_query("INSERT INTO table VALUES(id, name)");$last_rows=mysql_fetch_array(mysql_query("SELECT * FROM table ORDER BY id DESC"));
But i want to learn is there any easy way to getting last id after i inserted a new row?
Where Did You Guys Learn Php? Any good suggestions on were i could start? (tutorials)
in Programming
Posted · Report reply
I learnt PHP by looking phpBB codes. It was an advanced level but i was trying to understand them.. I was searchin all of the functions from php.net and if i had any question i asked them in the forums.. This continued about 3 or 4 months. The I started to write my first script...Now i think i can do lots of thinq with PHP.. I love PHP and still learning PHP