Hello,
that was just in hurry while posting, that S, nut when i code is all right . coding is not problem, if any code wrong then , script does not run.
you try with same sql query for num rows and while(),
try it i am running all my db system, thing is if it work proper then i had not to run two different sql query...
thanks
User Profile
Collapse
-
while($row = ) fetch row from table show not complete result..
when we do mysql_query with while and mysql_num_rows( ) together then while do no show the first row from table in database..
example :
<?
$conn = mysql_connect($ DBhost,$DBuser, $DBpass) or die("Unable toconnect to database");
@mysql_select_d b("$DBName") or die("Unable to select database $DBName"); $sqlquery = "SELECT * FROM $table WHERE opinion = 'is great'";
$result... -
open file in read and write mode..w+
There is big or problem in open file in read and write mode..
coding is not problem, The problem is file modifier as mention in PHPCode:$file = "data.txt"; $fp = fopen($file,"w+"); $line = fgets($fp,"120"); // i need only 1st line to read and upto 120 bytes echo $line; fclose($fp);
use " w+ " for read the data in file and then overwrite the new data.... -
Basically i want to run a counter by the use of session
As on first request i set the session_counter = 1
then i want whenever other different user send request he found the session_counter = 1 and after his request it become session_counter = 1++;
i do not want to use any file and database system, as with them i can do that. but i am looking from sessions ....
how to.....??Leave a comment:
-
how to share a Session
hello !
i am to share a same session value used by different user request to a script.
> as when first request come then session is created and then other request come with the same subject and then another session is created with other session id,
.but i want to use the same session value created at first request for other same request by different user later ..how this can be done..
...
No activity results to display
Show More
Leave a comment: